CVE-2026-41591 Details
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.
A cross-site scripting vulnerability has been identified in Marko versions prior to 5.38.36 and @marko/runtime-tags versions prior to 6.0.164. The issue arises when dynamic text is interpolated into <script> or <style> tags. The Marko runtime fails to properly sanitize the input, allowing an attacker to break out of the tag using non-lowercase closing tags, such as </SCRIPT> or </Style>. This could lead to the injection of arbitrary HTML or JavaScript. The vulnerability is present in any Marko template that interpolates untrusted data into <script> or <style> blocks, especially if the data comes from user input that is later rendered in these tags.
Users should upgrade to Marko version 5.38.36 or @marko/runtime-tags version 6.0.164. As a temporary workaround, untrusted data can be pre-sanitized to remove any closing tag references before interpolation, or avoid using direct interpolation in <script> or <style> tags altogether.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/marko-js/marko/security/advisories/GHSA-x9fj-57fh-c8wq | CISA-ADP | ExploitMitigationPatchVendor Advisory |
| https://github.com/marko-js/marko/security/advisories/GHSA-x9fj-57fh-c8wq | [email protected] | ExploitMitigationPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| openjsf marko | < 5.38.36 |
CPE
Remediation
| |
| openjsf marko/runtime-tags | < 6.0.164 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 26, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 8, 2026 | CVE Modified | CISA-ADP |
| May 8, 2026 | New CVE Received | [email protected] |