GHSA-f3cj-j4f6-wq85
JSON

medium

Svelte: SSR XSS via Insecure Promise Serialization in hydratable

Severity
medium CVSS:4.0 by GitHub
Published
Last changed

Description

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])

Affected

Product or packageVersionsReported by
svelte (npm)from 5.46.0 before 5.55.7GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-f3cj-j4f6-wq85 changed 2026-05-14CC-BY-4.0