CVE-2025-23061

CRITICAL CVSS 3.1: 9.8 EPSS 7.24%
Updated Oct 31, 2025
Mongoosejs
Parameter Value
CVSS 9.8 (CRITICAL)
Affected Versions 7.0.0 — 8.9.5
Fixed In 6.13.6
Type CWE-94 (Code Injection)
Vendor Mongoosejs
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 3

Configuration From (including) Up to (excluding)
Mongoosejs Mongoose
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
— 6.13.6
Mongoosejs Mongoose
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
7.0.0 7.8.4
Mongoosejs Mongoose
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
8.0.0 8.9.5

Related Vulnerabilities