CVE-2022-25875
Cross-site Scripting (XSS)
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.441% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.4 · published by snykCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
Assessment source · checked 2026-11-19T12:56:25.181Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:25.181Z | CVE Program |
| epss | verified | 2026-11-19T16:04:33.279Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:29.421Z | OSV |
| affected | verified | 2026-11-19T12:56:25.181Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:25.181Z | CVE Program |
Affected versions and configuration
n/a svelte; default status: unknown: unspecified to < 3.49.0 [affected; scheme: custom]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "svelte",
"versions": [
{
"status": "affected",
"version": "unspecified",
"lessThan": "3.49.0",
"versionType": "custom"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://snyk.io/vuln/SNYK-JS-SVELTE-2931080",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T04:49:44.469Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-wv8q-r932-8hc7",
"aliases": [
"CVE-2022-25875",
"SNYK-JS-SVELTE-2931080"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.49.0"
}
]
}
],
"package": {
"name": "svelte",
"purl": "pkg:npm/svelte",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-wv8q-r932-8hc7/GHSA-wv8q-r932-8hc7.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25875",
"type": "ADVISORY"
},
{
"url": "https://github.com/sveltejs/svelte/pull/7530#23issuecomment-1158575990",
"type": "WEB"
},
{
"url": "https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907",
"type": "WEB"
},
{
"url": "https://github.com/sveltejs/svelte",
"type": "PACKAGE"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-SVELTE-2931080",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-07-12T19:15:00Z",
"github_reviewed_at": "2022-07-15T16:22:17Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | svelte | Not a distribution channel | 3.49.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:29.421ZArchived source JSON
Source publication: 2022-07-13T00:00:41.000Z
Source modification: 2026-07-08T06:49:52.155ZDocument fingerprint
030e79c9ded9a028b5319a3be87d384624419e2a87960837edd70f8bcc5e9fba - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:56:25.181ZArchived source JSON
Source publication: 2022-07-12T14:20:17.950Z
Source modification: 2024-09-17T04:14:01.708ZDocument fingerprint
96579fb31eef3b2f0188e4c29e1e0c4b4c554c353b59772e86b0f7e5d4702749 - FIRST EPSSConsulted: 2026-11-19T16:04:33.279ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3d29ce03ca2c5b5eb21d368e31ebd19afc18e103aae654fb820daf58d5a4a332
Official status history
- UNKNOWN → PUBLISHED · · evidence