{"answers":{"affected":"1 open source package ship an affected version, including @astrojs/svelte.","exploited":"There is no known exploitation of CVE-2026-126362 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.","fix":"Upgrade @astrojs/svelte to 9.1.2 or later.","what":"CVE-2026-126362 is a low-severity cross-site scripting vulnerability in withastro astro, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-126362 and fix it if it is affected.\n\nWhat it is: CVE-2026-126362 is a low-severity cross-site scripting vulnerability in withastro astro, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-126362 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.\n\nAffected packages and fixed versions:\n- @astrojs/svelte (npm): affected from 5.7.3; fixed in 9.1.2\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-126362/ (Markdown: https://insights.sbomify.com/CVE-2026-126362/index.md)","id":"CVE-2026-126362","markdown":"https://insights.sbomify.com/CVE-2026-126362/index.md","name":"CVE-2026-126362","record":{"aliases":["GHSA-f4j9-crrj-867q"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript web framework","requires_auth":"none","requires_specific_call":true,"summary":"Attackers can inject HTML via unescaped slot names in Astro Svelte components that render attacker-chosen slots; Astro site developers should care.","user_interaction":"required","vuln_class":"xss","vulnerable_functions":[]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"GitHub_M","cpe":[],"cvss":{"score":2.3,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Astro is a web framework for content-driven websites. From 5.7.3 until 9.1.2, the @astrojs/svelte renderer inserted a named slot into the quoted name attribute of an astro-slot wrapper without HTML escaping. Request-controlled slot names containing a quote could terminate the attribute and inject active HTML. Exploitation required a hydrated Svelte component using a client:* directive and dynamic rendering of the attacker-chosen slot; components that did not render that slot emitted only Astro's escaped fallback content. Both server rendering and client-side hydration used the unsafe slot name. This issue is fixed in version 9.1.2.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Astro: Reflected XSS via unescaped slot names in @astrojs/svelte","id":"CVE-2026-126362","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":1,"n_references":3,"next":{"headline":"Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js","id":"CVE-2026-126363"},"nickname":null,"packages":[{"ecosystem":"npm","fixed":["9.1.2"],"introduced":["5.7.3"],"last_affected":[],"package":"@astrojs/svelte","purl":null,"source":"GHSA-f4j9-crrj-867q"}],"prev":{"headline":"Astro: XSS via attribute injection in dynamic tag names","id":"CVE-2026-126361"},"products":["astro"],"published":"2026-11-12","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":"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":["withastro"]},"summary":"Attackers can inject HTML via unescaped slot names in Astro Svelte components that render attacker-chosen slots; Astro site developers should care.","url":"https://insights.sbomify.com/CVE-2026-126362/"}