CVE-2025-23061 — Vulnerability in mongoose — CVE Details
Mongoose search injection vulnerability
Summary
Advisory Timeline
- First published January 15, 2025 (635 days ago).
- Last revised October 3, 2025 — 261 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install mongoose@6.13.6
npm install mongoose@7.8.4
npm install mongoose@8.9.5
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: npm (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-23061ADVISORY
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bcWEB
- https://github.com/Automattic/mongoosePACKAGE
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.mdWEB
- https://github.com/Automattic/mongoose/compare/6.13.5...6.13.6WEB
- https://github.com/Automattic/mongoose/compare/7.8.3...7.8.4WEB
- https://github.com/Automattic/mongoose/compare/8.9.4...8.9.5WEB
- https://github.com/Automattic/mongoose/releases/tag/6.13.6WEB
- https://github.com/Automattic/mongoose/releases/tag/7.8.4WEB
- https://github.com/Automattic/mongoose/releases/tag/8.9.5WEB
- https://github.com/advisories/GHSA-m7xq-9374-9rvxADVISORY
- https://www.npmjs.com/package/mongoose?activeTab=versionsWEB
Frequently Asked Questions
- What is CVE-2025-23061?
- Mongoose search injection vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.0/10).
- How do I check if my project is affected by CVE-2025-23061?
- CVE-2025-23061 affects mongoose. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-23061 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2023-3696CRITICAL
Mongoose Prototype Pollution vulnerability
- CVE-2026-107722CRITICAL
fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion
- CVE-2026-108261CRITICAL
TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
- CVE-2024-53900HIGH
Mongoose search injection vulnerability
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies