Vulnerability · Published Jan 15, 2025 · Assigned by mitre
CVE-2025-23061
Critical 9.0
In plain English
A critical-severity code injection in Mongoose from mongoosejs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 7.2% (higher than 94% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.0Critical
Exploit odds (30 days)7.2%top 5.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling2Nuclei, Public PoC
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | mongoose | 8.9.5 | GHSA-vg7j-7cwx-8wgw |
| npm | mongoose | 7.8.4 | GHSA-vg7j-7cwx-8wgw |
| npm | mongoose | 6.13.6 | GHSA-vg7j-7cwx-8wgw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mongoosejs | Mongoose | 6.0.0 – before 6.13.67.0.0 – before 7.8.48.0.0 – before 8.9.5 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H