Read the docs
TI-2022-09436 Aliases CVE-2022-25875GHSA-wv8q-r932-8hc7

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

VendorProductAffected versionsFixed inStatusSource
—sveltebefore 3.49.03.49.0Patch availableCNA
—svelte (npm)before 3.49.03.49.0Patch availableGHSA-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

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:*before 3.49.0Vulnerablesveltejs
  • cpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:* Versions before 3.49.0 Vulnerable ·sveltejs

Remediation

  • Fix · CNA svelte Fixed in 3.49.0
  • Fix · GHSA-wv8q-r932-8hc7 svelte (npm) Fixed in 3.49.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-25875
  2. 2026-10-03 Alias added: GHSA-wv8q-r932-8hc7

References

  • 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
See all 12 →

Sources