{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-126365 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls runHighlighterWithAstro(). Many projects that include it are not exposed.","fix":"No fix has been published for CVE-2026-126365 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-126365 is a medium-severity cross-site scripting vulnerability in @astrojs astro, published on 12 Nov 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-126365 and fix it if it is affected.\n\nWhat it is: CVE-2026-126365 is a medium-severity cross-site scripting vulnerability in @astrojs astro, published on 12 Nov 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-126365 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls runHighlighterWithAstro(). Many projects that include it are not exposed.\n\nAffected product: @astrojs astro. No package-level version data is available, so check the vendor advisory linked from the reference page.\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.\n   If an affected version is present, also search the code for calls to runHighlighterWithAstro() and report whether any exist.\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-126365/ (Markdown: https://insights.sbomify.com/CVE-2026-126365/index.md)","id":"CVE-2026-126365","markdown":"https://insights.sbomify.com/CVE-2026-126365/index.md","name":"CVE-2026-126365","record":{"aliases":["GHSA-ff38-p3qj-4pmf"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Astro code highlighter","requires_auth":"low_privilege","requires_specific_call":true,"summary":"Apps passing untrusted code with unsupported languages to Astro's Prism highlighter render attacker HTML and script; Astro and Markdoc users should care.","user_interaction":"required","vuln_class":"xss","vulnerable_functions":["runHighlighterWithAstro()"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/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":"Astro is a web framework for content-driven websites. Prior to @astrojs/prism 4.1.2, and from @astrojs/markdoc 0.3.0 until 2.1.2, runHighlighterWithAstro() returned code unchanged when Prism had no grammar for the requested language, and callers inserted that result as raw HTML. A code block labeled with an unsupported language could therefore render embedded HTML and script instead of displaying it as text. The Prism component was affected when applications supplied untrusted code with an unsupported or attacker-controlled lang, and the @astrojs/markdoc prism() extension was affected for less-trusted content authors even when Markdoc's ordinary HTML rendering was disabled. This issue is fixed in @astrojs/prism 4.1.2 and @astrojs/markdoc 2.1.2.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Astro: XSS via unescaped code for unsupported languages in @astrojs/prism","id":"CVE-2026-126365","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2026"},"n_packages":0,"n_references":4,"next":{"headline":"msgpack-java JRuby decoder allocates from declared header counts with no cap: 5-byte message forces multi-GiB OOM","id":"CVE-2026-126366"},"nickname":null,"packages":[],"prev":{"headline":"Path traversal in astro","id":"CVE-2026-126364"},"products":["astro","markdoc","prism"],"published":"2026-11-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-11-12","vendors":["@astrojs","withastro"]},"summary":"Apps passing untrusted code with unsupported languages to Astro's Prism highlighter render attacker HTML and script; Astro and Markdoc users should care.","url":"https://insights.sbomify.com/CVE-2026-126365/"}