CVE-2025-23061
criticalpriority · attend · 52EPSS 0.072 · 94 %ileexploit · PoCEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (2)
Public proof-of-concept and weaponised exploit code.
- amikanev/CVE-2025-23061-LABamikanev/CVE-2025-23061-LABPoC · poc_in_github
- open-flaw/CVE-2025-23061CVE-2025-23061 - Mongoose Command InjectionPoC · poc_in_github
affected products (15)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-vg7j-7cwx-8wgwMongoose search injection vulnerability2025-01-15ghsa · osvUS
Mongoose versions prior to 8.9.5, 7.8.4, and 6.13.6 are vulnerable to improper use of the `$where` operator. This vulnerability arises from the ability of the `$where` clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.
- BIT-mongoose-2025-230612025-09-25vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/Automattic/mongoose/releases/tag/8.9.5Patchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-23061cnnvd
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.mdenisa_euvd
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bcenisa_euvd
- https://github.com/Automattic/mongoose/releases/tag/8.9.5enisa_euvd
- https://www.npmjs.com/package/mongoose?activeTab=versionsenisa_euvd
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.mdRelease Notesnvd
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bcPatchnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan