VulnerabilityAnalyzed
CVE-2025-23061
Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection.
CRITICAL 9.8EPSS 7.28%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (7.28%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 7.28% probability · 94th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- mongoosejs/mongoose
- Source
- cve@mitre.org
References
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.mdRelease Notes
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bcPatch
- https://github.com/Automattic/mongoose/releases/tag/8.9.5Release Notes
- https://www.npmjs.com/package/mongoose?activeTab=versionsProduct
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.