CVE-2026-41591

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

MEDIUM
6.4
CVSS Score
Published: May 8, 2026 at 03:22 PM UTC
Updated: August 26, 2026 at 07:31 PM UTC
3 products affected across 2 vendorsMarko /runtime TagsMarkoMarko

Using marko by marko-js?

Get instant alerts when new vulnerabilities affect marko - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.4
Exploit prediction
EPSS 0.2%
SSVC
PoC

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.38.36
Affected range stops below 5.38.36, so it looks safe — our inference, not a vendor statement
v < 6.0.164
Affected range stops below 6.0.164, so it looks safe — our inference, not a vendor statement
v < 5.38.36v < 6.0.164
Affected range stops below 5.38.36, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.0.164, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

x_refsource_CONFIRMExploitMitigationPatchVendor Advisory
Source: cverecord
https://github.com/marko-js/marko/security/advisories/GHSA-x9fj-57fh-c8wq

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.4MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card