{"cve":"CVE-2026-42334","nvd":{"published":"2026-05-14T18:16:47.747","modified":"2026-10-26T14:10:00.130","status":"Analyzed","description":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.9, 7.8.9, 8.22.1, and 9.1.6, a vulnerability allows bypassing Mongoose’s sanitizeFilter query sanitization mechanism via the $nor operator. When sanitizeFilter is enabled, Mongoose wraps query operators in $eq to neutralize them. However, prior to the fix, $nor was not included in the set of logical operators that are recursively sanitized. Because $nor accepts an array (like $and and $or), and arrays do not trigger hasDollarKeys(), malicious operators such as $ne, $gt, or $regex could be injected inside a $nor clause without being sanitized. This vulnerability is fixed in 6.13.9, 7.8.9, 8.22.1, and 9.1.6.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-74"],"references":["https://github.com/Automattic/mongoose/security/advisories/GHSA-wpg9-53fq-2r8h"],"products":["mongoosejs:mongoose"],"source":"nvd","synced_at":"2026-10-26T14:27:29.784594657+00:00"},"epss":{"cve":"CVE-2026-42334","score":0.00274,"percentile":0.19606,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-wpg9-53fq-2r8h","url":"https://osv.dev/vulnerability/GHSA-wpg9-53fq-2r8h","summary":"Mongoose's Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection","modified":"2026-05-18T08:11:23.589007268Z","packages":[{"ecosystem":"npm","name":"mongoose","purl":"pkg:npm/mongoose","ranges":["<6.13.9"],"fixed":["6.13.9"]},{"ecosystem":"npm","name":"mongoose","purl":"pkg:npm/mongoose","ranges":[">=7.0.0 <7.8.9"],"fixed":["7.8.9"]},{"ecosystem":"npm","name":"mongoose","purl":"pkg:npm/mongoose","ranges":[">=8.0.0 <8.22.1"],"fixed":["8.22.1"]},{"ecosystem":"npm","name":"mongoose","purl":"pkg:npm/mongoose","ranges":[">=9.0.0 <9.1.6"],"fixed":["9.1.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}