Description
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
www-spam/CVE-2024-53900 ★ 0 · Aug 19, 2025
-
Gokul-Krishnan-V-R/CVE-2024-53900 ★ 0 · Apr 3, 2025
Mongo Vulnub Lab...Try to Hack IT.....!
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Mongoose < 8.8.3 - Remote Code Execution http/cves/2024/CVE-2024-53900.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | mongoose | >= 8.0.0-rc0, < 8.8.3 | 8.8.3 | GHSA-m7xq-9374-9rvx |
| npm | mongoose | >= 7.0.0-rc0, < 7.8.3 | 7.8.3 | GHSA-m7xq-9374-9rvx |
| npm | mongoose | >= 6.0.0-rc0, < 6.13.5 | 6.13.5 | GHSA-m7xq-9374-9rvx |
| npm | mongoose | >= 3.6.0-rc0, < 5.13.23 | 5.13.23 | GHSA-m7xq-9374-9rvx |
References
- 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/commit/c9e86bff7eef477da75a29af62a06d41a835a156
- https://github.com/advisories/GHSA-m7xq-9374-9rvx