XSS in Remark Remark-Html
CVE-2021-39199
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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.011 (62.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N.
Affected products
- Remark Remark-html
- Remarkjs Remark-html — versions >= 14.0.0, < 14.0.1, < 13.0.2
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Patch, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC, Release Notes)
- security-advisories@github.com (Product, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2021-39199?
- CVE-2021-39199 is a critical-severity vulnerability in Remark Remark-Html, classified under Cross-site Scripting. CVSS score: 10.0/10. Published 2021-09-07.
- How severe is CVE-2021-39199?
- Critical severity. CVSS v3 base score is 10.0 out of 10.