{"id":"CVE-2026-41591","published":"2026-05-08T15:22:50Z","modified":"2026-05-08T21:26:58Z","title":"Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping","vendor":"marko-js","product":"marko","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00227,"percentile":0.13674,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/marko-js/marko/security/advisories/GHSA-x9fj-57fh-c8wq","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":2.73},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"marko-js","affectedVersions":[{"vendor":"marko-js","product":"marko","versions":["marko < 5.38.36","@marko/runtime-tags < 6.0.164"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-08T17:08:43.350843Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"marko","vulnerableRanges":["<5.38.36"],"patched":["5.38.36"],"from":["GHSA-x9fj-57fh-c8wq"],"provenance":"source"},{"ecosystem":"npm","package":"@marko/runtime-tags","vulnerableRanges":["<6.0.164"],"patched":["6.0.164"],"from":["GHSA-x9fj-57fh-c8wq"],"provenance":"source"}],"summary":{"text":"The Marko runtime's HTML escaping for dynamic text interpolated into <script> and <style> tags, in the marko product (including the @marko/runtime-tags component), fails to block breakout when the closing tag uses non-lowercase casing such as </SCRIPT> or </Style>. An attacker who can place input inside a script or style block, with low privileges and no user interaction, can break out of the tag to inject arbitrary HTML and JavaScript, resulting in cross-site scripting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:26Z"},"euvd":{"id":"EUVD-2026-28790","exploited":false,"provenance":"source"}}