CVE-2025-23061: mongoosejs mongoose Code Injection
CVSS: 9.8v3.1CriticalAnalyzed
AliasesGHSA-vg7j-7cwx-8wgwBIT-mongoose-2025-23061
Published 15-01-2025Last modified 15-01-2025
Vulnerability summary
CVE-2025-23061 is a critical (CVSS 9.8) Code Injection vulnerability in mongoosejs mongoose. EPSS estimates a 7.28% chance of exploitation in the next 30 days, higher than 94.3% of scored vulnerabilities.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
7.28%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 15-01-2025PublishedVulnerability first disclosed.
- 15-01-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 versionCritical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSources3 sources · 9.0–9.8
- CVE.orgCNA9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDiffers
- OSV · NpmEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDiffers
EPSS trend
Probability
7.28%
Chance of exploitation in the next 30 days
Percentile
94%
Versus all other CVEs
30-day change
0.00 pp
From 7.28% on 21-09-2026
21-09-202621-10-2026
EPSS score7.28%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Mongoosejs1 product
- mongoose≥ 6.0.0, < 6.13.6 | < 6.13.6 | ≥ 7.0.0, < 7.8.4 | ≥ 8.0.0, < 8.9.5
Npm1 product
- mongoose≥ 8.0.0-rc0, < 8.9.5 | ≥ 7.0.0-rc0, < 7.8.4 | < 6.13.6
2 vendors · 2 products