Back

MEDIUM

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

Published May 8, 2026

Description

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.

Affected products

Remediation

No remediation recorded yet.

References (4)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published May 8, 2026
Updated May 8, 2026
Reserved Apr 21, 2026
CISA Vulnrichment
Updated May 8, 2026
NVD
Status Analyzed
Modified Aug 26, 2026
Red Hat
Severity n/a
Public date n/a
ENISA EUVD
Assigner GitHub_M
Published May 8, 2026
Updated May 8, 2026
Exploited since n/a
EUVD-2026-28790 GHSA-X9FJ-57FH-C8WQ