{"answers":{"affected":"4 open source packages ship an affected version, including @marko/runtime-tags and marko. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41591 exists.","fix":"Upgrade @marko/runtime-tags to 6.0.164 or later.","what":"CVE-2026-41591 is a medium-severity cross-site scripting vulnerability in marko-js marko, published on 8 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41591 and fix it if it is affected.\n\nWhat it is: CVE-2026-41591 is a medium-severity cross-site scripting vulnerability in marko-js marko, published on 8 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41591 exists.\n\nAffected packages and fixed versions:\n- @marko/runtime-tags (npm): affected all versions; fixed in 6.0.164\n- @marko/runtime-tags (npm): affected all versions; fixed in 6.0.164\n- marko (npm): affected all versions; fixed in 5.38.36\n- marko (npm): affected all versions; fixed in 5.38.36\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-41591/ (Markdown: https://insights.sbomify.com/CVE-2026-41591/index.md)","id":"CVE-2026-41591","markdown":"https://insights.sbomify.com/CVE-2026-41591/index.md","name":"CVE-2026-41591","record":{"aliases":["GHSA-x9fj-57fh-c8wq"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Marko JavaScript library","requires_auth":"low_privilege","summary":"Attackers can inject arbitrary JavaScript via case-insensitive closing tags in script or style blocks, leading to cross-site scripting.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"marko","vendor":"openjsf"},{"product":"marko\\/runtime-tags","vendor":"openjsf"}],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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 \u003cscript\u003e or \u003cstyle\u003e 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 \u003cscript\u003e or \u003cstyle\u003e block could break out of the tag with \u003c/SCRIPT\u003e, \u003c/Style\u003e, 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping","id":"CVE-2026-41591","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Apache Thrift: Go TFramedTransport uint32 overflow","id":"CVE-2026-41602"},"packages":[{"ecosystem":"npm","fixed":["6.0.164"],"introduced":["0"],"last_affected":[],"package":"@marko/runtime-tags","purl":null,"source":"GHSA-x9fj-57fh-c8wq"},{"ecosystem":"npm","fixed":["6.0.164"],"introduced":["0"],"last_affected":[],"package":"@marko/runtime-tags","purl":"pkg:npm/%40marko/runtime-tags","source":"GHSA-x9fj-57fh-c8wq"},{"ecosystem":"npm","fixed":["5.38.36"],"introduced":["0"],"last_affected":[],"package":"marko","purl":null,"source":"GHSA-x9fj-57fh-c8wq"},{"ecosystem":"npm","fixed":["5.38.36"],"introduced":["0"],"last_affected":[],"package":"marko","purl":"pkg:npm/marko","source":"GHSA-x9fj-57fh-c8wq"}],"prev":{"headline":"Wish has SCP Path Traversal that allows arbitrary file read/write","id":"CVE-2026-41589"},"products":["marko"],"published":"2026-05-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-08","vendors":["marko-js"]},"summary":"Attackers can inject arbitrary JavaScript via case-insensitive closing tags in script or style blocks, leading to cross-site scripting.","url":"https://insights.sbomify.com/CVE-2026-41591/"}