# CVE-2020-24391: Remote code execution in mongo-express

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 75.1%, higher than 99% of CVEs (2026-12-01)
- Published: 2021-03-30T20:52:58.000Z
- Modified: 2026-06-17T03:05:28.967Z
- Also known as: GHSA-hxmg-hm46-cf62
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

mongo-express before 1.0.0 offers support for certain advanced syntax but implements this in an unsafe way. NOTE: this may overlap CVE-2019-10769.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mongodb-query-parser (npm): before 2.0.0
- mongo-express_project mongo-express: up to 0.54.0

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/mongo-express/mongo-express/commit/3a26b079e7821e0e209c3ee0cc2ae15ad467b91a> (patch, third-party-advisory, web)
- <https://github.com/mongodb-js/query-parser/issues/16> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-24391> (advisory)

## Sources

- CVE List: [CVE-2020-24391](https://www.cve.org/CVERecord?id=CVE-2020-24391), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-hxmg-hm46-cf62](https://github.com/advisories/GHSA-hxmg-hm46-cf62), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-24391](https://nvd.nist.gov/vuln/detail/CVE-2020-24391), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-24391 · Whole record: https://cve.day/CVE-2020-24391.json · Rebuilt by cve.day 2026-11-25T22:57:57.681Z
