CVE-2026-41591 PUBLISHED

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

Assigner: GitHub_M
Reserved: 21.04.2026 Published: 08.05.2026 Updated: 08.05.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
CVSS Score: 6.4

Product Status

Vendor marko-js
Product marko
Versions
  • Version marko < 5.38.36 is affected
  • Version @marko/runtime-tags < 6.0.164 is affected

References

Problem Types

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE