{"id":"CVE-2024-53900","published":"2024-12-02T00:00:00Z","modified":"2025-01-06T17:43:08Z","title":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection","vendor":null,"product":null,"tier":"core","eol":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-12-03T14:52:55.858117Z","from":"CISA ADP","provenance":"source"},"description":{"text":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is in Mongoose, the MongoDB object modeling library, before version 8.8.3, where the $where operator can be improperly used within match. An attacker who can supply input to a query built this way can inject search logic, a weakness categorised as improper neutralisation of special elements in a query command.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:11:56Z"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02653,"percentile":0.86378,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2025-11-27","exploitedFirstSeen":"2025-11-27","ransomware":false,"evidence":[{"url":"https://app.crowdsec.net/cti/cve-explorer/CVE-2024-53900","date":"2025-11-27"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2024-53900","date":"2026-09-18"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://www.npmjs.com/package/mongoose?activeTab=versions","tags":[]},{"url":"https://github.com/Automattic/mongoose/releases","tags":[]},{"url":"https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md","tags":[]},{"url":"https://github.com/Automattic/mongoose/commit/c9e86bff7eef477da75a29af62a06d41a835a156","tags":[]},{"url":"https://github.com/advisories/GHSA-m7xq-9374-9rvx","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"npm","package":"mongoose","vulnerableRanges":[">=8.0.0-rc0, <8.8.3",">=7.0.0-rc0, <7.8.3",">=6.0.0-rc0, <6.13.5",">=3.6.0-rc0, <5.13.23"],"patched":["8.8.3","7.8.3","6.13.5","5.13.23"],"from":["GHSA-m7xq-9374-9rvx"],"provenance":"source"}],"advisories":[{"id":"GHSA-m7xq-9374-9rvx","url":"https://github.com/advisories/GHSA-m7xq-9374-9rvx","severity":"HIGH","ecosystem":"npm","package":"mongoose","vulnerableRanges":[">=8.0.0-rc0, <8.8.3"],"patched":["8.8.3"],"provenance":"source","from":"GHSA"},{"id":"GHSA-m7xq-9374-9rvx","url":"https://github.com/advisories/GHSA-m7xq-9374-9rvx","severity":"HIGH","ecosystem":"npm","package":"mongoose","vulnerableRanges":[">=7.0.0-rc0, <7.8.3"],"patched":["7.8.3"],"provenance":"source","from":"GHSA"},{"id":"GHSA-m7xq-9374-9rvx","url":"https://github.com/advisories/GHSA-m7xq-9374-9rvx","severity":"HIGH","ecosystem":"npm","package":"mongoose","vulnerableRanges":[">=6.0.0-rc0, <6.13.5"],"patched":["6.13.5"],"provenance":"source","from":"GHSA"},{"id":"GHSA-m7xq-9374-9rvx","url":"https://github.com/advisories/GHSA-m7xq-9374-9rvx","severity":"HIGH","ecosystem":"npm","package":"mongoose","vulnerableRanges":[">=3.6.0-rc0, <5.13.23"],"patched":["5.13.23"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-3487","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-3487","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2025-04-03","earliestUrl":"https://github.com/Gokul-Krishnan-V-R/CVE-2024-53900","repos":[{"name":"Gokul-Krishnan-V-R/CVE-2024-53900","url":"https://github.com/Gokul-Krishnan-V-R/CVE-2024-53900","stars":0,"created":"2025-04-03"}]},"nuclei":[{"id":"CVE-2024-53900","name":"Mongoose < 8.8.3 - Remote Code Execution","severity":"critical","path":"http/cves/2024/CVE-2024-53900.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-53900.yaml"}],"first":{"date":"2025-04-03","source":"PoC-in-GitHub","url":"https://github.com/Gokul-Krishnan-V-R/CVE-2024-53900"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-12-02","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-53900","provenance":"source"},{"date":"2025-04-03","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/Gokul-Krishnan-V-R/CVE-2024-53900","provenance":"source"},{"date":"2025-11-27","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://app.crowdsec.net/cti/cve-explorer/CVE-2024-53900","provenance":"source"}],"speed":{"daysToPublicExploit":122,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":68.6,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 363 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":17.28,"detail":"percentile 0.8638"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.37,"detail":"base score 9.1"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-mongoosejs-mongoose-cve-2024-53900","children":[{"from":"CVE-2024-53900","to":"CVE-2025-23061","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.","from":"CVE.org","in":"CVE-2025-23061"},{"kind":"osv-related","provenance":"source","id":"GHSA-vg7j-7cwx-8wgw","via":"reference","url":"https://github.com/advisories/GHSA-m7xq-9374-9rvx"},{"kind":"version-step","provenance":"source","package":"npm:mongoose","fromFixed":"6.13.5","toFixed":"6.13.6","daysApart":44},{"kind":"version-step","provenance":"source","package":"npm:mongoose","fromFixed":"7.8.3","toFixed":"7.8.4","daysApart":44},{"kind":"same-code","provenance":"machine","files":["lib/helpers/populate/getModelsMapForPopulate.js"],"commits":["https://github.com/Automattic/mongoose/commit/c9e86bff7eef477da75a29af62a06d41a835a156","https://github.com/Automattic/mongoose/commit/33679bcf8ca43d74e3e8ecd4cc224826772d805b","https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc"],"basis":"shared function","functions":["_virtualPopulate","getModelsMapForPopulate"]}]}],"packageHistory":[{"cve":"CVE-2019-17426","published":"2019-10-10","fixed":"5.7.5","kev":false},{"cve":"CVE-2022-2564","published":"2022-07-28","fixed":"6.4.6","kev":false},{"cve":"CVE-2023-3696","published":"2023-07-17","fixed":"7.3.3","kev":false,"link":{"from":"CVE-2023-3696","to":"CVE-2024-53900","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mongoose","fromFixed":"6.11.3","toFixed":"6.13.5","daysApart":504},{"kind":"version-step","provenance":"source","package":"npm:mongoose","fromFixed":"5.13.20","toFixed":"5.13.23","daysApart":504}]}},{"cve":"CVE-2024-53900","published":"2024-12-02","fixed":"8.8.3","kev":false},{"cve":"CVE-2025-23061","published":"2025-01-15","fixed":"8.9.5","kev":false},{"cve":"CVE-2026-42334","published":"2026-05-14","fixed":"9.1.6","kev":false},{"cve":"CVE-2026-73562","published":"2026-08-13","fixed":"9.7.2","kev":false}],"package":"npm:mongoose"}}