Vulnerability library
Security checkFebruary 01, 2023

Unsafe defaults in `remark-html`

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmremark-html

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated February 01, 2023