{"id":"CVE-2025-23061","aliases":["BIT-mongoose-2025-23061","GHSA-vg7j-7cwx-8wgw"],"url":"https://o3.security/vulnerability/CVE-2025-23061","summary":"Mongoose search injection vulnerability","details":"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:00Z","modified":"2026-07-15T01:49:16.699979248Z","cvss":{"score":9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"mongoose","fixedVersion":"8.9.5"},{"ecosystem":"npm","name":"mongoose","fixedVersion":"7.8.4"},{"ecosystem":"npm","name":"mongoose","fixedVersion":"6.13.6"}],"fix":{"url":"https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc","label":"Automattic/mongoose@64a9f97"},"references":[{"type":"WEB","url":"https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/Automattic/mongoose/releases/tag/8.9.5"},{"type":"WEB","url":"https://www.npmjs.com/package/mongoose?activeTab=versions"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23061.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23061"},{"type":"FIX","url":"https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:16.699979248Z"}}