CVE-2021-39199
10.0 CRITICALremark-html is an open source nodejs library which compiles Markdown to HTML
Published: 2021-09-07 · Last updated: 2026-06-17
Severity and scoring
- CVSS
- 10.0 CRITICAL
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- CWE
- CWE-79
Affected products
| Vendor | Product |
|---|---|
| remark | remark-html |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2021-39199
- [Patch]https://github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a350478c1
- [Patch]https://github.com/remarkjs/remark-html/releases/tag/14.0.1
- [Patch]https://github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947m
- [Other]https://www.npmjs.com/package/remark-html
- [Patch]https://github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a350478c1
- [Patch]https://github.com/remarkjs/remark-html/releases/tag/14.0.1
- [Patch]https://github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947m
- [Other]https://www.npmjs.com/package/remark-html
Related CVEs
Same CWE
- CVE-2026-12425 — Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in PowerSchool Employee Access ...
- CVE-2024-30476 — PowerStore contains a Stored Cross-Site Scripting Vulnerability in the PowerStore Manager (5.4 MEDIUM)
- CVE-2026-54198 — Unauthenticated Cross Site Scripting (XSS) in Media LIbrary Assistant <= 3.35 versions (7.1 HIGH)
- CVE-2026-54191 — Unauthenticated Cross Site Scripting (XSS) in Pods <= 3.3.8 versions (7.1 HIGH)
- CVE-2026-39437 — Unauthenticated Cross Site Scripting (XSS) in Min Max Step Quantity Limits Manager for WooCommerce <= 5.2.2 versions (7.1 HIGH)