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
Related 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
You might also like:
- Tags:
- npm
- remark-html
Anything's wrong? Let us know Last updated on February 01, 2023


