CVE-2021-39199Cross site scripting via unsafe defaults in remark-html
- 10.0CriticalCVSS base score
- 1.1%Exploitation in 30 daysEPSS · top 34% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
remark-html is an open source nodejs library which compiles Markdown to HTML. In affected versions the documentation of remark-html has mentioned that it was safe by default. In practice the default was never safe and had to be opted into. That is, user input was not sanitized. This means arbitrary HTML can be passed through leading to potential XSS attacks. The problem has been patched in 13.0.2 and 14.0.1: `remark-html` is now safe by default, and the implementation matches the documentation. On older affected versions, pass `sanitize: true` if you cannot update.
Timeline
ID reserved
By GitHub_M
- 22 days later
· 22 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.1% · top 34% of all CVEs (16 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 10.0.
Affected products
- affected >= 14.0.0, < 14.0.1
- affected < 13.0.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmremark-htmlGHSA-9q5w-79cv-947m (opens in a new tab)
References
References4
- https://github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947m (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a350478c1 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/remarkjs/remark-html/releases/tag/14.0.1 (opens in a new tab)x_refsource_MISCx_transferred
- https://www.npmjs.com/package/remark-html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-2027 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-9q5w-79cv-947m (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-39199)Record last updated .