CVE-2024-53900
Mongoose search injection vulnerability
Also known as BIT-mongoose-2024-53900, GHSA-m7xq-9374-9rvx
Mitigation
- Upgrade mongoose to one of 8.8.3, 7.8.3, 6.13.5, 5.13.23 (or later in the same release line).
Who should check
- Projects that depend on npm package mongoose (>= 8.0.0-rc0, < 8.8.3)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running automattic mongoose < 8.8.3
Vulnerability facts
- Affected
- mongoose >= 8.0.0-rc0, < 8.8.3
- Fixed in
- 8.8.3, 7.8.3, 6.13.5, 5.13.23
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 2.65% chance of exploitation in 30 days (percentile 86, 2026-11-26)
- CWE
- CWE-89
- Modified
Description
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm mongoose | >= 8.0.0-rc0, < 8.8.3 | 8.8.3, 7.8.3, 6.13.5, 5.13.23 | osv |
| n/a | — | — | nvd |
| automattic mongoose | < 8.8.3 | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-53900. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-53900.md Affected: mongoose >= 8.0.0-rc0, < 8.8.3 Fixed in: 8.8.3, 7.8.3, 6.13.5, 5.13.23 Steps: 1. Search this machine and project for mongoose (npm), n/a, automattic mongoose: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/Automattic/mongoose/commit/c9e86bff7eef477da75a29af62a06d41a835a156
- https://github.com/github/advisory-database/pull/6769
- https://github.com/github/advisory-database/pull/6776
- https://github.com/Automattic/mongoose/commit/33679bcf8ca43d74e3e8ecd4cc224826772d805b
- https://github.com/Automattic/mongoose/commit/bbb6fa7ecb44bbaf5bea955d886378a1247bce0b
Other
- https://www.npmjs.com/package/mongoose?activeTab=versions
- https://github.com/Automattic/mongoose/releases
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md
- https://github.com/Automattic/mongoose
- https://github.com/Automattic/mongoose/compare/6.13.4...6.13.5
- https://github.com/Automattic/mongoose/compare/7.8.2...7.8.3
- https://github.com/Automattic/mongoose/compare/8.8.2...8.8.3
FAQ
Is CVE-2024-53900 being exploited?
There is no confirmed exploitation: CVE-2024-53900 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.65% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-53900?
Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-53900?
mongoose >= 8.0.0-rc0, < 8.8.3.
Is there a fix for CVE-2024-53900?
Yes. Fixed in 8.8.3, 7.8.3, 6.13.5, 5.13.23. Upgrade mongoose to one of 8.8.3, 7.8.3, 6.13.5, 5.13.23 (or later in the same release line).
How do I check if I'm affected by CVE-2024-53900?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.