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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-08 · Modified: 2026-05-08
- Aliases: GHSA-x9fj-57fh-c8wq
- Record: https://cvemate.com/vulnerability/CVE-2026-41591 · JSON: https://cvemate.com/vulnerability/CVE-2026-41591/json

## Description

```text
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.
```

## Signals

- CVSS: 6.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- EPSS: 0.227%, percentile 14.269%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- marko-js marko: marko \< 5.38.36 \| @marko/runtime-tags \< 6.0.164
- Npm marko (Npm): \< 5.38.36
- @marko runtime-tags (Npm): \< 6.0.164
- openjsf marko: \< 5.38.36
- openjsf marko\\/runtime-tags: \< 6.0.164

## References

- <https://github.com/marko-js/marko/security/advisories/GHSA-x9fj-57fh-c8wq>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41591>
- <https://github.com/marko-js/marko>

---

Data as of 2026-12-05T04:38:40.444Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
