{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21422","published":"2021-06-21T19:15:07.947000Z","last_modified":"2026-06-17T03:35:32.683000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:mongo-express_project:mongo-express:*:*:*:*:*:node.js:*:*","part":"a","vendor":"mongo-express_project","product":"mongo-express","version_end_including":"0.54.0"},{"criteria":"cpe:2.3:a:mongo-express_project:mongo-express:1.0.0:alpha1:*:*:*:*:*:*","part":"a","vendor":"mongo-express_project","product":"mongo-express","version":"1.0.0"},{"criteria":"cpe:2.3:a:mongo-express_project:mongo-express:1.0.0:alpha3:*:*:*:*:*:*","part":"a","vendor":"mongo-express_project","product":"mongo-express","version":"1.0.0"}],"cpes_truncated":false,"vendors":["mongo-express_project"],"products":["mongo-express_project/mongo-express"],"epss":{"score":0.0157,"percentile":0.75729,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-7p8h-86p5-wv3p","ecosystem":"npm","name":"mongo-express","purl":"pkg:npm/mongo-express","ranges":[{"introduced":"0","fixed":"1.0.0-alpha.4"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2021-21422/","html_en":"/en/cve/CVE-2021-21422/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21422","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21422"},"untrusted":{"vendor_name":"Mongo-express Project","product_name":"Mongo-express","desc_en":"mongo-express is a web-based MongoDB admin interface, written with Node.js and express. 1: As mentioned in this issue: https://github.com/mongo-express/mongo-express/issues/577, when the content of a cell grows larger than supported size, clicking on a row will show full document unescaped, however this needs admin interaction on cell. 2: Data cells identified as media will be rendered as media, without being sanitized. Example of different renders: image, audio, video, etc. As an example of type 1 attack, an unauthorized user who only can send a large amount of data in a field of a document may use a payload with embedded javascript. This could send an export of a collection to the attacker without even an admin knowing. Other types of attacks such as dropping a database\\collection are possible.","affected":[{"untrusted_vendor":"mongo-express","untrusted_product":"mongo-express","versions":[]}],"references":[{"url":"https://github.com/mongo-express/mongo-express/commit/f5e0d4931f856f032f22664b5e5901d5950cfd4b","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/mongo-express/mongo-express/issues/577","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/mongo-express/mongo-express/security/advisories/GHSA-7p8h-86p5-wv3p","tags":["Exploit","Third Party Advisory"]}]}}