Repository navigation
chore(deps): update dependency @astrojs/svelte to v9.1.2 [security] - #369
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
🎊 PR Preview 2a19699 has been successfully built and deployed to https://catppuccin-website-build-pr-369.surge.sh 🕐 Build time: 0.009s 🤖 By surge-preview |
renovate
Bot
force-pushed
the
renovate/npm-astrojs-svelte-vulnerability
branch
from
November 16, 2026 21:34
a501948 to
2a19699
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR contains the following updates:
9.0.1→9.1.2Astro: Reflected XSS via unescaped slot names in @astrojs/svelte
CVE-2026-126362 / GHSA-f4j9-crrj-867q
More information
Details
Summary
The
@astrojs/svelterenderer wraps slotted content passed to Svelte components in an<astro-slot>element, and writes the slot name into itsnameattribute without HTML escaping. A slot name containing"could end the attribute and inject arbitrary HTML into the page.For example, a page that takes a slot name from the request:
rendered with a Svelte 5 component that renders its snippets by name:
would output a
tabvalue such asx"><img src=x onerror=alert(1)>as live HTML.Impact
Reflected cross-site scripting. An attacker who gets a user to open a crafted link can run JavaScript on the site's origin, but only in applications where all of the following are true:
client:*directive. For non-hydrated components the slot wrapper is removed from the output, together with itsnameattribute.This is the
@astrojs/sveltecounterpart of GHSA-8hv8-536x-4wqp (CVE-2026-50146), which fixed the same issue inastrocore. The same unescaped value was also used when hydrating the component in the browser.Affected versions
@astrojs/svelte>= 5.7.3, <= 9.1.1.Patches
Fixed in
@astrojs/svelte9.1.2. Slot names are now HTML-escaped in the server renderer and in the client-side hydration code.Workarounds
Upgrade to
@astrojs/svelte9.1.2 or later. Before upgrading, do not use request-controlled input as a slot name, or map it to a fixed set of known slot names before passing it to a component.Credits
Reported by @manus-pi.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
withastro/astro (@astrojs/svelte)
v9.1.2Compare Source
Patch Changes
5e47636Thanks @matthewp! - Escapes slot names when rendering the slot wrapper elements for Svelte componentsv9.1.1Compare Source
Patch Changes
#18475
cf27e70Thanks @ematipico! - Bumps the minimum supported Node.js version to 22.23.4, which includes the fixes from the October 2026 Node.js security releasesThis is a patch release because the Node.js support and upgrade policy allows the Core team to raise the minimum Maintenance LTS version in a patch release when a disclosed and fixed Node.js security flaw affects Astro.
v9.1.0Compare Source
Minor Changes
#18277
2715958Thanks @florian-lefebvre! - Increases the minimum Node.js version to 22.22.0The minimum supported Node.js version is now 22.22.0, the latest Node.js 22 release supported by StackBlitz. This change is in line with Astro's Node.js support policy.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.