CVE-2025-23061
Mongoose search injection vulnerability
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami.
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | mongoose | 6.13.6, 7.8.4, 8.9.5 |
| npm::GitHub Security Advisory npm | mongoose | 8.9.5, 7.8.4, 6.13.6 |
| seal npm::Seal Security Database | @seal-security/mongoose, mongoose | 5.3.3-sp999 |
Show all 4 entries from 3 sources
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | mongoose | 6.13.6, 7.8.4, 8.9.5 |
| npm::GitHub Security Advisory npm | mongoose | 8.9.5, 7.8.4, 6.13.6 |
| seal npm::Seal Security Database | @seal-security/mongoose | 5.3.3-sp999 |
| seal npm::Seal Security Database | mongoose | 5.3.3-sp999 |
References
- https://github.com/Automattic/mongoose
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc
- https://github.com/Automattic/mongoose/compare/6.13.5...6.13.6
- https://github.com/Automattic/mongoose/compare/7.8.3...7.8.4
- https://github.com/Automattic/mongoose/compare/8.9.4...8.9.5
- https://github.com/Automattic/mongoose/releases/tag/6.13.6
- https://github.com/Automattic/mongoose/releases/tag/7.8.4