CVE-2026-142595

Source
https://cve.org/CVERecord?id=CVE-2026-142595
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142595.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142595
Aliases
  • GHSA-25v4-hrwm-qj9f
Published
2026-12-02T21:47:03Z
Modified
2026-12-02T23:00:10Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N CVSS Calculator
Summary
Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`
Details

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.13, 7.8.14, 8.24.10, and 9.12.2, Mongoose's sanitizeFilter rejects only a small named set of top-level operators and does not recursively inspect undocumented operators such as $_internalSchemaXor and $_internalSchemaCond. Applications that pass attacker-controlled filter keys to queries while relying on sanitizeFilter can therefore accept nested selectors such as $ne or $regex, allowing authentication bypass, disclosure of protected values through boolean queries, or unintended updates and deletions. Applications that construct filters from individual primitive values are not affected by this bypass. This issue is fixed in versions 6.13.13, 7.8.14, 8.24.10, and 9.12.2.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-943"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142595.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "6.0.0"
                        },
                        {
                            "fixed":  "6.13.13"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StringRangeExpression"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/automattic/mongoose

Affected ranges

Type
GIT
Repo
https://github.com/automattic/mongoose
Events
Show 4 more events Show fewer events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "7.0.0"
                },
                {
                    "fixed":  "7.8.14"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "8.0.0"
                },
                {
                    "fixed":  "8.24.10"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "9.0.0"
                },
                {
                    "fixed":  "9.12.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "34e76947cc8a9ceb916c233aec01aea060bc3dba"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "3e5f4c8b30ef42db1ab9f2794dc77c95f21d3835"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "4627d2fc572a943ee7afe26a1bcebe493dbd2508"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "c6a4c95f9b15d81a352f2934c91b64ece583c2db"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "7.8.14",
            "range":  [
                {
                    "fixed":  "73e3db443cff3a18371d94a8ee667992cf9a81e2"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "8.24.10",
            "range":  [
                {
                    "fixed":  "f8666d81080a6699e5274d8488c690b4c8171ed6"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "9.12.2",
            "range":  [
                {
                    "fixed":  "a8204d30c4db4ba1138bc75a879c79cf5127670d"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

7.*
7.0.0
7.0.1
7.0.2
7.0.3
7.0.4
7.0.5
7.1.0
7.1.1
7.1.2
7.2.0
7.2.1
7.2.2
7.2.3
7.2.4
7.3.0
7.3.1
7.3.2
7.3.3
7.3.4
7.4.0
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.5.0
7.5.1
7.5.2
7.5.3
7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.1
9.3.2
9.3.3
9.4.0
9.4.1
9.5.0
9.6.2
9.6.3
9.7.0
9.7.1
9.7.2
9.7.3
9.7.4
9.8.0
9.8.1
9.9.0
9.9.1
9.9.2
9.9.3
9.9.4
9.9.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142595.json"