PT-2021-22454 · Unknown · Remark-Html
Matthieusieben
·
Published
2021-09-07
·
Updated
2021-09-14
·
CVE-2021-39199
CVSS v3.1
10
Critical
| Vector | AV: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}).Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Remark-Html