{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-23061","id":"CVE-2025-23061","title":"Mongoose search injection vulnerability","description":"Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.","descriptionLong":"Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.","published":"2025-01-15T00:00:00.000Z","updated":"2026-10-28T02:31:14.595683727Z","reserved":"2025-01-10T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"mitre"},"metrics":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"mitre"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"mitre.org"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["mongoosejs Mongoose"],"affectedProducts":[{"vendor":"mongoosejs","product":"Mongoose","defaultStatus":"unknown","versions":[{"lessThan":"6.13.6","status":"affected","version":"6.0.0","versionType":"semver"},{"lessThan":"7.8.4","status":"affected","version":"7.0.0","versionType":"semver"},{"lessThan":"8.9.5","status":"affected","version":"8.0.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"mongoose","purl":"pkg:npm/mongoose","ranges":[">=8.0.0-rc0 <8.9.5",">=7.0.0-rc0 <7.8.4","<6.13.6"],"fixed":["8.9.5","7.8.4","6.13.6"],"advisory":"GHSA-vg7j-7cwx-8wgw"}],"cwes":["CWE-94"],"aliases":["BIT-mongoose-2025-23061","GHSA-vg7j-7cwx-8wgw"],"references":[{"url":"https://www.npmjs.com/package/mongoose?activeTab=versions","tags":["Product","web"]},{"url":"https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md","tags":["Release Notes","web"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/8.9.5","tags":["Release Notes","web"]},{"url":"https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc","tags":["Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23061.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23061","tags":["advisory"]},{"url":"https://github.com/Automattic/mongoose","tags":["package"]},{"url":"https://github.com/Automattic/mongoose/compare/6.13.5...6.13.6","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/compare/7.8.3...7.8.4","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/compare/8.9.4...8.9.5","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/6.13.6","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/7.8.4","tags":["web"]},{"url":"https://github.com/advisories/GHSA-m7xq-9374-9rvx","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.07236,"epssPercentile":0.94454,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-23061","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23061","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-23061","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vg7j-7cwx-8wgw","ok":true,"note":"GHSA-vg7j-7cwx-8wgw"},{"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-2025-23061","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}