CVE-2022-25875
published medium CVSS 3.1 · 5.4Cross-site Scripting (XSS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | svelteunspecified to < 3.49.0 | Affected | Not stated | snyk |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | svelte | unspecified to < 3.49.0 (affected · custom) | snyk · cna |
Weaknesses
1- Cross-site Scripting (XSS)
References
3Provider assertions
2snyk · cna
Cross-site Scripting (XSS)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 96579fb31eef3b2f0188e4c29e1e0c4b4c554c353b59772e86b0f7e5d4702749
- Ingested
- 23 Sep 2026, 07:59:05 UTC
- Source record
- Official CVE record