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.
Metrics
CVSS 3.1 9.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| mongoosejs | Mongoose | >= 6.0.0, < 6.13.6; >= 7.0.0, < 7.8.4; >= 8.0.0, < 8.9.5 |
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
Timeline
- Published
- Jan 15, 2025
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed