Skip to main content
← All vulnerabilities
CVE-2026-41591GHSA-X9FJ-57FH-C8WQ

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.38.36, 6.0.164
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

Marko is a declarative, HTML-based language for building web apps. Prior to marko version 5.38.36 and prior to @marko/runtime-tags 6.0.164, 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. and inject arbitrary HTML/JavaScript, resulting in cross-site scripting. This issue has been patched in marko version 5.38.36 and @marko/runtime-tags 6.0.164.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • marko-js marko

    marko < 5.38.36, @marko/runtime-tags < 6.0.164

  • markonpm

    fixed in 5.38.36

  • @marko/runtime-tagsnpm

    fixed in 6.0.164

References 1

GitHub · marko-js/marko