Vulnerability 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.
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Remark | Remark-Html | < 13.0.2 |
Related Weaknesses (CWE)
References
- https://github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a3PatchThird Party Advisory
- https://github.com/remarkjs/remark-html/releases/tag/14.0.1PatchRelease NotesThird Party Advisory
- https://github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947mPatchThird Party Advisory
- https://www.npmjs.com/package/remark-htmlProductThird Party Advisory
- https://github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a3PatchThird Party Advisory
- https://github.com/remarkjs/remark-html/releases/tag/14.0.1PatchRelease NotesThird Party Advisory
- https://github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947mPatchThird Party Advisory
- https://www.npmjs.com/package/remark-htmlProductThird Party Advisory
FAQ
What is CVE-2021-39199?
CVE-2021-39199 is a vulnerability with a CVSS score of 10.0 (CRITICAL). 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 w...
How severe is CVE-2021-39199?
CVE-2021-39199 has been rated CRITICAL with a CVSS base score of 10.0/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2021-39199?
Check the references section above for vendor advisories and patch information. Affected products include: Remark Remark-Html.