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
- Advanced Content Filter (ACF) vulnerability allowing to execute JavaScript code using malformed HTML - CVE-2021-41164
- Improper Input Validation in sanitize-html - CVE-2021-26539
- Improper Input Validation in sanitize-html - sanitize-html - CVE-2021-26540
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - CVE-2021-23346


