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)

Published · last modified .

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.

EPSS exploit prediction

EPSS: 0.011 (63.9th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 64th percentile — 63.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-39199: held from 0.011 to 0.011.

EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000

Affected products

Weakness classification (CWE)

References

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.