Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. svelte
  4. ›
  5. GHSA-f3cj-j4f6-wq85

GHSA-f3cj-j4f6-wq85: Svelte: SSR XSS via Insecure Promise Serialization in hydratable

May 14, 2026

Contents of hydratable promises were not properly stringified, potentially leading to an XSS exploit. You are vulnerable if all of the following is true:

  • you are using hydratable (an experimental feature at the time of this report)
  • you are passing attacker-controlled input such that a synchronous value is hydrated, then a promise value, e.g. hydratable('someKey', () => [synchronousValue, promiseValue])

References

  • github.com/advisories/GHSA-f3cj-j4f6-wq85
  • github.com/sveltejs/svelte/commit/a16ebc67bbcf8f708360195687e1b2719463e1a4
  • github.com/sveltejs/svelte/security/advisories/GHSA-f3cj-j4f6-wq85

Code Behaviors & Features

Detect and mitigate GHSA-f3cj-j4f6-wq85 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.46.0 before 5.55.7

Fixed versions

  • 5.55.7

Solution

Upgrade to version 5.55.7 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/svelte/GHSA-f3cj-j4f6-wq85.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:26 +0000.