Mongoose - SQLi (CVE-2024-53900)
Description
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
psychologyCrowdSec Analysis
CVE-2024-53900 is a high-severity vulnerability in Mongoose prior to version 8.8.3 that allows improper use of the $where operator in match queries, resulting in search injection. This flaw could enable remote attackers to inject malicious JavaScript code into database queries, potentially leading to unauthorized data access or manipulation.
CrowdSec has been tracking this vulnerability and its exploits since 26th of November 2025.
Data from the CrowdSec community indicates that exploitation of CVE-2024-53900 is highly selective and intelligence-driven. Threat actors use advanced reconnaissance and carefully choose their targets, often as part of sophisticated campaigns or advanced persistent threat operations. CrowdSec network telemetry also shows that exploitation of CVE-2024-53900 has significantly declined over the past week. Attack volumes are well below the long-term average, suggesting attackers are rapidly losing interest. The vulnerability appears to be falling out of active use across most threat landscapes.
Attackers exploit endpoints that accept user-controlled query parameters such as view[match][$where] to inject malicious JavaScript expressions, often targeting URLs with patterns like ?view[path]=...&view[match][$where]=... to achieve remote code execution via NoSQL injection in vulnerable Mongoose applications.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2024-12-02 |
| Rule Released | 2025-11-26 |
| CrowdSec First Seen | 2025-11-27 |
Remediation & Protection
External References
- https://github.com/Automattic/mongoose/releases
- https://github.com/advisories/GHSA-m7xq-9374-9rvx
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md
- https://github.com/Automattic/mongoose/commit/c9e86bff7eef477da75a29af62a06d41a835a156
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-53900.yaml