Skip to content
OpenAdvisories
Medium · 6.4 CVE-2026-41591 EUVD-2026-28790GHSA-x9fj-57fh-c8wq

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

Published May 8, 2026 · Updated May 8, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
marko-js marko marko < 5.38.36, @marko/runtime-tags < 6.0.164 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @marko/runtime-tags < 6.0.164 6.0.164 GHSA-x9fj-57fh-c8wq
npm marko < 5.38.36 5.38.36 GHSA-x9fj-57fh-c8wq

References