Svelte 漏洞与安全更新

15 条

11月16日周一

11月14日周六

11月13日周五

  • Astro: Reflected XSS via unescaped slot names in @astrojs/svelte

    受影响: npm:@astrojs/svelte >= 5.7.3, <= 9.1.1 → 9.1.2 The @astrojs/svelte renderer wraps slotted content passed to Svelte components in an element, and writes the slot name into its name attribute 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: astro --- import Tabs from '../components/Tabs.svelte'; const tab = Astro.url.searchParams.get('tab'); --- … rendered with a Svelte 5 component that renders its snippets by name: sve…

10月24日周六

  • SvelteKit: URL redirection to untrusted site via enhanced form submission

    受影响: npm:@sveltejs/kit < 3.0.0 → 3.0.0 Applications using enhanced form actions (use:enhance) on routes that accept paths beginning with //, such as catch-all routes, may be vulnerable to an open redirect. Patches A fix has been prepared for @sveltejs/kit 3.0.0. Users should upgrade to 3.0.0 or later. The fix preserves leading double slashes in action paths without generating protocol-relative URLs, restricts non-redirect action navigation to the current origin, and includes the origin when comparing action locations with the curren…

  • SvelteKit : XSS via untrusted cache-control header in prerendered page

    受影响: npm:@sveltejs/kit < 3.0.0 → 3.0.0 Applications that prerender pages and use setHeaders to set a cache-control header from an untrusted source are vulnerable to cross-site scripting (XSS). SvelteKit inserts the header value into a tag without escaping it. An attacker who can influence this value at prerender time can break out of the content attribute and inject HTML or JavaScript into the generated page. The injected code can then execute when users visit the page. Patches The fix escapes the header value before inserting it in…

4月28日周日

  • Bun v1.1.6

    Fixes 10 bugs (addressing 512 👍). UDP sockets! node:dgram! DataDog and ClickHouseDB! Fixes a bug impacting SvelteKit. Array#sort gets 15% - 135% faster. Fixes a regression in node:http from v1.1.5. Node.js compatibiltiy improvements and bugfixes.

9月19日周二

8月24日周四

  • Bun v0.8.0

    Bun gets debugger support, fetch streaming, and `bun update`. ReadStream and WriteStream from `node:tty` are implemented, including raw mode on `process.stdin`. SvelteKit now works in Bun. Plus bug fixes and stability improvements.

12月5日周一

  • On Escape's Vue 2 to Svelte Migration

    Recently, folks at Escape shared a blog post talking about their migration from Vue 2 to Svelte, and compared Vue 3 with Svelte. We found that the article contained a number of inaccuracies. In this post, we will share some thoughts from our perspective and hope to clarify the potential misconceptions the post could give rise to.