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

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-22T19:55:51.000Z
- Modified: 2026-08-26T19:16:01.883Z
- Also known as: GHSA-x9fj-57fh-c8wq
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- marko-js marko: marko < 5.38.36; @marko/runtime-tags < 6.0.164
- marko (npm): before 5.38.36
- @marko/runtime-tags (npm): before 6.0.164
- openjsf marko: before 5.38.36
- openjsf marko/runtime-tags: before 6.0.164

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://github.com/marko-js/marko/security/advisories/GHSA-x9fj-57fh-c8wq> (exploit, mitigation, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41591> (advisory)
- <https://github.com/marko-js/marko> (package)

## Sources

- CVE List: [CVE-2026-41591](https://www.cve.org/CVERecord?id=CVE-2026-41591), CVE Terms of Use, modified 2026-05-08
- GitHub Advisory Database: [GHSA-x9fj-57fh-c8wq](https://github.com/advisories/GHSA-x9fj-57fh-c8wq), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-41591](https://nvd.nist.gov/vuln/detail/CVE-2026-41591), Public domain, modified 2026-08-26

---

Page: https://cve.day/CVE-2026-41591 · Whole record: https://cve.day/CVE-2026-41591.json · Rebuilt by cve.day 2026-11-25T22:59:21.094Z
