RCE in Mongoosejs Mongoose
CVE-2025-23061
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.0 (Critical). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.072, 94.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Mongoosejs Mongoose — versions 6.0.0, 7.0.0, 8.0.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
3 public repositories with exploit or proof-of-concept code for this CVE:
- amikanev/CVE-2025-23061-LAB (last pushed 2026-04-06)
- dajneem23/CVE-2025-23061 (last pushed 2025-12-11): CVE-2025-23061 - Mongoose Command Injection
- open-flaw/CVE-2025-23061 (last pushed 2025-12-11): CVE-2025-23061 - Mongoose Command Injection
Also mentioned in 3 other repositories (ARPSyndicate/cve-scores, DeepOchhane/Dev-Sec-Ops-Project, NamhyeonKo/mongoose-cve-lab). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
This CVE has public exploit evidence. See the latest CVEs with public exploits.