CVE-2021-39199
published critical CVSS 3.1 · 10.0Cross site scripting via unsafe defaults in remark-html
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| remarkjs | — | remark-html>= 14.0.0, < 14.0.1 · < 13.0.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| remarkjs | remark-html | >= 14.0.0, < 14.0.1 (affected)< 13.0.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
4Provider assertions
2GitHub_M · cna
Cross site scripting via unsafe defaults in remark-html
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 753b3311bfebd78c85d8a86e6cf8ea67f07c067dfa136d8e4e38f90322c5bbc3
- Ingested
- 23 Sep 2026, 07:55:36 UTC
- Source record
- Official CVE record