Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| marko-js | marko | marko < 5.38.36; @marko/runtime-tags < 6.0.164 | — | No fix listed | CNA |
| — | marko (npm) | before 5.38.36 | 5.38.36 | Patch available | GHSA-x9fj-57fh-c8wq |
| — | @marko/runtime-tags (npm) | before 6.0.164 | 6.0.164 | Patch available | GHSA-x9fj-57fh-c8wq |
- marko Vendormarko-js Affected marko < 5.38.36; @marko/runtime-tags < 6.0.164 Fixed in — No fix listed CNA
- marko (npm) Vendor— Affected before 5.38.36 Fixed in 5.38.36 Patch available GHSA-x9fj-57fh-c8wq
- @marko/runtime-tags (npm) Vendor— Affected before 6.0.164 Fixed in 6.0.164 Patch available GHSA-x9fj-57fh-c8wq
Remediation
- Fix · GHSA-x9fj-57fh-c8wq marko (npm) Fixed in 5.38.36 Advisory →
- Fix · GHSA-x9fj-57fh-c8wq @marko/runtime-tags (npm) Fixed in 6.0.164 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41591
- 2026-10-03 Alias added: GHSA-x9fj-57fh-c8wq
References
Sources
- CVE-2026-41591 · CVE Program
- CVE-2026-41591 · NVD
- FIRST EPSS
- GHSA-x9fj-57fh-c8wq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences