CVE-2024-53900
Mongoose search injection vulnerability
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
9.1
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
- Record
CVE-2024-53900- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-89
- Updated
- 2026-11-02
EUVDEUVD-2024-3487
9.1
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
- Record
EUVD-2024-3487- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-m7xq-9374-9rvx
8.7
Mongoose search injection vulnerability
Mongoose versions prior to 8.8.3, 7.8.3, 6.13.5, and 5.13.23 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.
- Record
GHSA-m7xq-9374-9rvx- CVSS 4.0
- 8.7 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
NVD
9.1
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
- Record
CVE-2024-53900- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-89
- Updated
- 2026-11-02
OSV
9.1
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
- Record
CVE-2024-53900- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVGHSA-m7xq-9374-9rvx
8.7
Mongoose search injection vulnerability
Mongoose versions prior to 8.8.3, 7.8.3, 6.13.5, and 5.13.23 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.
- Record
GHSA-m7xq-9374-9rvx- CVSS 4.0
- 8.7 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
Show 4 moreShow less
OSVBIT-mongoose-2024-53900 No score
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
- Record
BIT-mongoose-2024-53900- Updated
- 2026-11-02
OSVCLSA-2026-1774916718 No score
TuxCare security update for mongoose (1 CVE)
TuxCare rebuilt mongoose to address 1 CVE. Fixed in 6.12.2-tuxcare.1.
- Record
CLSA-2026-1774916718- Updated
- 2026-11-02
OSVCLSA-2026-1786374654 No score
TuxCare security update for mongoose (2 CVEs)
TuxCare rebuilt mongoose to address 2 CVEs. Fixed in 7.8.8-tuxcare.3.
- Record
CLSA-2026-1786374654- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2024-53900 No score
CVE-2024-53900 in mongoose - Patched by Root
Root has patched CVE-2024-53900 in the mongoose package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2024-53900- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mongoosenpm |
8.0.0-rc0 up to 8.8.3 | 8.8.3 |
mongoosenpm |
7.0.0-rc0 up to 7.8.3 | 7.8.3 |
mongoosenpm |
6.0.0-rc0 up to 6.13.5 | 6.13.5 |
mongoosenpm |
3.6.0-rc0 up to 5.13.23 | 5.13.23 |
mongooseBitnami |
before 6.13.5, 7.0.0 up to 8.8.3 | 6.13.58.8.3 |
mongooseTuxCare:npm |
6.12.2-tuxcare.0 up to 6.12.2-tuxcare.1, plus listed versions 6.12.2 |
6.12.2-tuxcare.1 |
mongooseTuxCare:npm |
7.8.8-tuxcare.0 up to 7.8.8-tuxcare.3, plus listed versions 7.8.87.8.8-tuxcare.17.8.8-tuxcare.2 |
7.8.8-tuxcare.3 |
mongooseRoot:npm |
before 6.9.1-aikido.4 | 6.9.1-aikido.45.13.23-aikido.1 |
@rootio/mongooseRoot:npm |
before 6.9.1-root.io.4 | 6.9.1-root.io.45.13.23-root.io.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Nuclei | Mongoose < 8.8.3 - Remote Code Execution | |
| PoC in GitHub | Gokul-Krishnan-V-R/CVE-2024-53900 | 2025-04-03 |
| PoC in GitHub | www-spam/CVE-2024-53900 | 2025-08-19 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-53900 is a critical vulnerability (CVSS 9.1) in Automattic Mongoose, published December 2, 2024. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 3.98%, the 90th percentile. Fixed in mongoose 8.8.3.
References
npmjs.com/package/mongoose?activeTab=versions
github.com/Automattic/mongoose/releases
github.com/Automattic/mongoose/blob/master/CHANGELOG.md
github.com/Automattic/mongoose/commit/c9e86bff7eef477da75a29af62a06d41a835a156
github.com/advisories/GHSA-m7xq-9374-9rvx
nvd.nist.gov/vuln/detail/CVE-2024-53900
Show 9 moreShow less
github.com/Automattic/mongoose/commit/33679bcf8ca43d74e3e8ecd4cc224826772d805b
github.com/Automattic/mongoose/compare/6.13.4...6.13.5
github.com/Automattic/mongoose/compare/7.8.2...7.8.3
github.com/Automattic/mongoose/compare/8.8.2...8.8.3
github.com/github/advisory-database/pull/6769
github.com/github/advisory-database/pull/6776
github.com/Automattic/mongoose/commit/bbb6fa7ecb44bbaf5bea955d886378a1247bce0b
github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53900.json
github.com/Automattic/mongoose