Cross-site scripting (XSS) in svelte
Priority LOW 30CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
The package svelte before 3.49.0 are vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and to improper escape of attributes when using objects during SSR (Server-Side Rendering). Exploiting this vulnerability is possible via objects with a custom toString() function.
Why it matters now
EPSS 0.01441 73rd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed svelte: 3.49.0svelte (npm): 3.49.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | svelte | before 3.49.0 | 3.49.0 | Patch available | CNA |
| — | svelte (npm) | before 3.49.0 | 3.49.0 | Patch available | GHSA-wv8q-r932-8hc7 |
- svelte Vendor— Affected before 3.49.0 Fixed in 3.49.0 Patch available CNA
- svelte (npm) Vendor— Affected before 3.49.0 Fixed in 3.49.0 Patch available GHSA-wv8q-r932-8hc7
Remediation
- Fix · CNA svelte Fixed in 3.49.0
- Fix · GHSA-wv8q-r932-8hc7 svelte (npm) Fixed in 3.49.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-25875
- 2026-10-03 Alias added: GHSA-wv8q-r932-8hc7
References
More sveltejs Svelte vulnerabilities
- TI-2024-30159 Potential mXSS vulnerability due to improper HTML escaping in svelte CVSS 3.1MEDIUM 6.1
- TI-2025-13940 Svelte 5.46.0 - Hydratable Key Script-Breakout XSS (SSR) CVSS 4.0MEDIUM 5.3
- TI-2021-10070 The unofficial Svelte extension before 104.8.0 for Visual Studio Code allows attackers to… CVSS 3.1HIGH 7.8
- TI-2026-30847 Svelte: ReDoS in `<svelte:element>` Tag Validation CVSS 4.0MEDIUM 5.9
- TI-2026-30853 Svelte: XSS via DOM Clobbering of Internal Framework State CVSS 4.0MEDIUM 5.3
- TI-2026-22246 Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers CVSS 4.0MEDIUM 5.3
Sources
- CVE-2022-25875 · CVE Program
- CVE-2022-25875 · NVD
- FIRST EPSS
- GHSA-wv8q-r932-8hc7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences