Vulnerability library
Security checkOctober 27, 2026

LiquidJS's strip_html filter bypass via newline characters in HTML tags enables XSS

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

Medium severitynpmliquidjs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The strip_html filter in liquidjs is intended to remove HTML tags from a string before rendering, and is widely used as an XSS sanitizer. The implementation uses a regex whose catch-all branch (<.*?>) does not match line terminators, so any HTML tag containing a \n or \r character passes through unmodified.

Recommendation

Update the liquidjs package to the latest compatible version. Followings are version details:

  • Affected version(s): < 10.26.0
  • Patched version(s): 10.26.0

References

Could your website be exposed too?

SmartScanner can check your website for LiquidJS's strip_html filter bypass via newline characters in HTML tags enables XSS and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 27, 2026