CVE-2025-23061 json
Mongoose search injection vulnerability
published 2025-01-15 21 mo ago modified 2026-09-10 1 mo ago also BIT-mongoose-2025-23061 , EUVD-2025-0106 , GHSA-vg7j-7cwx-8wgw
- cvss
- 9.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.2%
- EPSS 7.2% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
- npm mongoose 6.13.6, 7.8.4, 8.9.5
- bitnami mongoose 6.13.6, 7.8.4, 8.9.5
- mongoosejs Mongoose 6.13.6, 7.8.4, 8.9.5
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
7.24% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Mongoose - NoSQL Injection nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mongoose | >=8.0.0-rc0, <8.9.5 >=7.0.0-rc0, <7.8.4 <6.13.6 |
8.9.5 7.8.4 6.13.6 |
| bitnami | mongoose | >=6.0.0, <6.13.6 >=7.0.0, <7.8.4 >=8.0.0, <8.9.5 |
6.13.6 7.8.4 8.9.5 |
Affected products
- mongoosejs Mongoose
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc
web, patch
-
npmjs.com
/package/mongoose?activeTab=versions
web, product
-
github.com
/Automattic/mongoose/blob/master/CHANGELOG.md
web, release-notes, article
-
github.com
/Automattic/mongoose/releases/tag/8.9.5
web, release-notes, article
-
nvd.nist.gov
/vuln/detail/CVE-2025-23061
advisory, web
-
github.com
/Automattic/mongoose
package
-
github.com
/Automattic/mongoose/compare/6.13.5...6.13.6
web
-
github.com
/Automattic/mongoose/compare/7.8.3...7.8.4
web
-
github.com
/Automattic/mongoose/compare/8.9.4...8.9.5
web
-
github.com
/Automattic/mongoose/releases/tag/6.13.6
web
-
github.com
/Automattic/mongoose/releases/tag/7.8.4
web
-
github.com
/advisories/GHSA-m7xq-9374-9rvx
advisory
Sources
- CVE List CVE-2025-23061
- GitHub Advisory GHSA-vg7j-7cwx-8wgw
- NVD CVE-2025-23061
- OSV BIT-mongoose-2025-23061
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.