CVE-2025-23061
CRITICAL 9.8CVSS 3.1Mongoose search injection vulnerability
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
- 15 Jan 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- BIT-mongoose-2025-23061GHSA-vg7j-7cwx-8wgw
- Sources
- NVDJSONOSV GHSA-vg7j-7cwx-8wgwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongoosejs | mongoosecpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* |
< 6.13.6 | 6.13.6 |
| NVD | mongoosejs | mongoosecpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* |
>= 7.0.0, < 7.8.4 | 7.8.4 |
| NVD | mongoosejs | mongoosecpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* |
>= 8.0.0, < 8.9.5 | 8.9.5 |
| OSV | npm | mongoose | >= 8.0.0-rc0, < 8.9.5 | 8.9.5 |
| OSV | npm | mongoose | >= 7.0.0-rc0, < 7.8.4 | 7.8.4 |
| OSV | npm | mongoose | < 6.13.6 | 6.13.6 |
References
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md · Release Notes, WEB
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc · Patch, WEB
- https://github.com/Automattic/mongoose/releases/tag/8.9.5 · Release Notes, WEB
- https://www.npmjs.com/package/mongoose?activeTab=versions · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-23061 · ADVISORY
- https://github.com/Automattic/mongoose · PACKAGE
- https://github.com/Automattic/mongoose/compare/6.13.5...6.13.6 · WEB
- https://github.com/Automattic/mongoose/compare/7.8.3...7.8.4 · WEB
- https://github.com/Automattic/mongoose/compare/8.9.4...8.9.5 · WEB
- https://github.com/Automattic/mongoose/releases/tag/6.13.6 · WEB
- https://github.com/Automattic/mongoose/releases/tag/7.8.4 · WEB
- https://github.com/advisories/GHSA-m7xq-9374-9rvx · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 15 Jan 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Jan 2025)