CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2022-25875

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 5.4 · medium

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 snyk
CVSS: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

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssverified2026-11-19T12:56:25.181ZCVE Program
epssverified2026-11-19T16:04:33.279ZFIRST EPSS
patchesverified2026-11-19T12:52:29.421ZOSV
affectedverified2026-11-19T12:56:25.181ZCVE Program
lifecycleverified2026-11-19T12:56:25.181ZCVE 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 JSON
OSV · 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packagesvelteNot a distribution channel3.49.0Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history