CVE-2026-41591
MEDIUM 6.4CVSS 3.1Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping
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.
- Published
- 8 May 2026
- Last modified
- 26 Aug 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-x9fj-57fh-c8wq
- Sources
- NVDJSONOSV GHSA-x9fj-57fh-c8wqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openjsf | markocpe:2.3:a:openjsf:marko:*:*:*:*:*:node.js:*:* |
< 5.38.36 | 5.38.36 |
| NVD | openjsf | marko/runtime-tagscpe:2.3:a:openjsf:marko\/runtime-tags:*:*:*:*:*:node.js:*:* |
< 6.0.164 | 6.0.164 |
| OSV | npm | marko | < 5.38.36 | 5.38.36 |
| OSV | npm | @marko/runtime-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, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41591 · ADVISORY
- https://github.com/marko-js/marko · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 8 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Apr 2026)