{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-42334","id":"CVE-2026-42334","title":"Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection","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 l","descriptionLong":"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.","published":"2026-05-14T18:03:43.196Z","updated":"2026-10-28T02:31:02.262799152Z","reserved":"2026-04-26T13:26:14.514Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["Automattic mongoose"],"affectedProducts":[{"vendor":"Automattic","product":"mongoose","defaultStatus":null,"versions":[{"version":"< 6.13.9","status":"affected"},{"version":">= 7.0.0, <= 7.8.8","status":"affected"},{"version":">= 8.0.0, <= 8.22.0","status":"affected"},{"version":">= 9.0.0, <= 9.1.5","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"mongoose","purl":"pkg:npm/mongoose","ranges":["<6.13.9",">=7.0.0 <7.8.9",">=8.0.0 <8.22.1",">=9.0.0 <9.1.6"],"fixed":["6.13.9","7.8.9","8.22.1","9.1.6"],"advisory":"GHSA-wpg9-53fq-2r8h"}],"cwes":["CWE-74"],"aliases":["BIT-mongoose-2026-42334","GHSA-wpg9-53fq-2r8h"],"references":[{"url":"https://github.com/Automattic/mongoose/security/advisories/GHSA-wpg9-53fq-2r8h","tags":["x_refsource_CONFIRM","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42334.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42334","tags":["advisory"]},{"url":"https://github.com/Automattic/mongoose","tags":["package"]},{"url":"https://mongoosejs.com/docs/api/mongoose.html#Mongoose.prototype.sanitizeFilter()","tags":["web"]},{"url":"https://thecodebarbarian.com/whats-new-in-mongoose-6-sanitizefilter.html","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00274,"epssPercentile":0.2013,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-42334","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42334","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-42334","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wpg9-53fq-2r8h","ok":true,"note":"GHSA-wpg9-53fq-2r8h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42334","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}