{"cve":"CVE-2021-21422","nvd":{"published":"2021-06-21T19:15:07.947","modified":"2026-06-17T03:35:32.683","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/mongo-express/mongo-express/commit/f5e0d4931f856f032f22664b5e5901d5950cfd4b","https://github.com/mongo-express/mongo-express/issues/577","https://github.com/mongo-express/mongo-express/security/advisories/GHSA-7p8h-86p5-wv3p","https://github.com/mongo-express/mongo-express/commit/f5e0d4931f856f032f22664b5e5901d5950cfd4b","https://github.com/mongo-express/mongo-express/issues/577"],"products":["mongo-express_project:mongo-express"],"source":"nvd","synced_at":"2026-10-19T21:20:07.141963181+00:00"},"epss":{"cve":"CVE-2021-21422","score":0.0157,"percentile":0.75374,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7p8h-86p5-wv3p","url":"https://osv.dev/vulnerability/GHSA-7p8h-86p5-wv3p","summary":"Cross-site scripting","modified":"2026-07-08T06:29:33.325350636Z","packages":[{"ecosystem":"npm","name":"mongo-express","purl":"pkg:npm/mongo-express","ranges":["<1.0.0-alpha.4"],"fixed":["1.0.0-alpha.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}