CVE-2026-41591 Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping
MediumCVSS 6.4
EPSS 0.23%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| marko-js marko | = marko < 5.38.36 | No fix listed |
| marko-js marko | = @marko/runtime-tags < 6.0.164 | No fix listed |
| npm marko(npm) | < 5.38.36 | 5.38.36 |
| marko @marko/runtime-tags(npm) | < 6.0.164 | 6.0.164 |
| openjsf marko | < 5.38.36 | 5.38.36 |
| openjsf markoruntime-tags | < 6.0.164 | 6.0.164 |
References
- https://github.com/marko-js/marko/security/advisories/GHSA-x9fj-57fh-c8wq exploit mitigation patch vendor-advisory
- nvd.nist.gov third-party-advisory
- github.com