GHSA-f3cj-j4f6-wq85 Svelte: SSR XSS via Insecure Promise Serialization in hydratable
MediumCVSS 5.3
- Published
- Updated
- Exploit status
- No public exploit known
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])
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm svelte(npm) | >= 5.46.0, < 5.55.7; >= 5.46.0, <= 5.55.6 | 5.55.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm svelte(npm) | >= 5.46.0, <= 5.55.6 | No fix listed |
| npm svelte(npm) | >= 5.46.0, < 5.55.7 | 5.55.7 |
References
- github.com vendor-advisory
- github.com patch
- github.com
- github.com
- github.com product