Vulnerability library
Security checkMay 13, 2026

Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping

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

Medium severitynpm@marko/runtime-tags

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

When dynamic text is interpolated into a <script> or <style> tag the Marko runtime failed to prevent tag breakout when the closing tag used non-lowercase casing. An attacker able to place input inside a <script> or <style> block could break out of the tag with </SCRIPT>, </Style>, etc.

Recommendation

Update the @marko/runtime-tags package to the latest compatible version. Followings are version details:

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

References

Could your website be exposed too?

SmartScanner can check your website for Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2026