Description
The documentation of remark-html has mentioned that it was safe by default. In practise the default was never safe and had to be opted into. This means arbitrary HTML can be passed through leading to potential XSS attacks.
Recommendation
Update the remark-html package to the latest compatible version. Followings are version details:
Affected version(s): **= 14.0.0 < 13.0.2** Patched version(s): **14.0.1 13.0.2**
References
Could your website be exposed too?
SmartScanner can check your website for Unsafe defaults in `remark-html` and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Uncontrolled Resource Consumption in ansi-html - CVE-2021-23424
- Fake objects feature vulnerability allowing to execute JavaScript code using malformed HTML. - CVE-2021-37695
- Improper Input Validation in sanitize-html - sanitize-html - CVE-2021-26540
- phoenix_html allows Cross-site Scripting in HEEx class attributes - CVE-2021-46871


