cvelo
P3 · MediumCVSS 6.5EPSS 0.8%

Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`

  • CVE-2026-142595
  • GHSA-25v4-hrwm-qj9f
  • EUVD-2026-141930

Description

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.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Automattic mongoose

    Affected versionsFixed in
    >= 6.0.0, < 6.13.13none stated
    >= 7.0.0, < 7.8.14none stated
    >= 8.0.0, < 8.24.10none stated
    >= 9.0.0, < 9.12.2none stated
  • mongoosenpm

    Affected versionsFixed in
    from 9.0.0 to before 9.12.29.12.2
    from 8.0.0 to before 8.24.108.24.10
    from 7.0.0 to before 7.8.147.8.14
    before 6.13.136.13.13

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.