CVE-2021-39199
Remark-html vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Remark-html. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Remark-html runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a350478c1 · Patch
- github.com/remarkjs/remark-html/releases/tag/14.0.1 · Patch
- github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947m · Patch
- www.npmjs.com/package/remark-html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-39199
- cve.org/CVERecord?id=CVE-2021-39199
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.