PT-2021-22454
CVE-2021-39199
·
Published
2021-09-07
·
Updated
2021-09-14
Description by
CVSS 3.1
10
CriticalMetricsAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions
remark-html versions prior to 13.0.2
remark-html versions prior to 14.0.1
Description
The documentation of remark-html mentioned that it was safe by default, but in practice, the default was never safe and had to be opted into. This means user input was not sanitized, allowing arbitrary HTML to be passed through, leading to potential XSS attacks.
Recommendations
For versions prior to 13.0.2, update to version 13.0.2 or later.
For versions prior to 14.0.1, update to version 14.0.1 or later.
On older affected versions, pass
sanitize: true to mitigate the issue, for example, by using .use(remarkHtml, {sanitize: true}). Found an issue in the description? Have something to add? Feel free to write us 👾