CVE-2026-41591

MEDIUM

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

Title source: cna
STIX 2.1

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.

References (1)

Core 1
Core References

Scores

CVSS v3 6.4
EPSS 0.0001
EPSS Percentile 1.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-79
Status published
Products (4)
marko/runtime-tags 0 - 6.0.164npm
marko-js/marko @marko/runtime-tags < 6.0.164
marko-js/marko marko < 5.38.36
npm/marko 0 - 5.38.36npm
Published May 08, 2026
Tracked Since May 08, 2026