Security mailing lists by PureSourceCode

CVE-2026-142595

MEDIUM 6.5CVSS 3.1

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

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.

Published
2 Dec 2026
Last modified
4 Dec 2026
Assigned by
security-advisories@github.com
NVD status
Awaiting Analysis
Weakness
CWE-943
Also known as
GHSA-25v4-hrwm-qj9f
Sources
NVDJSONCVE ListJSONOSV GHSA-25v4-hrwm-qj9fJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
CVE List GitHub_M CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
CVE List CISA-ADP SSVC Exploitation: poc; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Automattic mongoose = >= 6.0.0, < 6.13.13; = >= 7.0.0, < 7.8.14; = >= 8.0.0, < 8.24.10; = >= 9.0.0, < 9.12.2
OSV npm mongoose < 6.13.13 6.13.13
OSV npm mongoose >= 7.0.0, < 7.8.14 7.8.14
OSV npm mongoose >= 8.0.0, < 8.24.10 8.24.10
OSV npm mongoose >= 9.0.0, < 9.12.2 9.12.2

References

History

  • 4 Dec 2026 01:56 UTC · OSV: first stored (published 4 Dec 2026)
  • 3 Dec 2026 17:56 UTC · NVD: 1 reference added
  • 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
  • 2 Dec 2026 22:21 UTC · NVD: first stored (published 2 Dec 2026)
  • 2 Dec 2026 22:00 UTC · CVE List: first stored (published 2 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.