CVE-2022-25875

MEDIUM

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 Rend...

Affects 1 product across 1 vendor.

CVSS 3.16.1
EPSS1.4%
Percentile73th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, no availability impact.
CWE Weakness Definitions
CWE-79: Cross-Site Scripting (XSS)

Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.

Related Attack Patterns (CAPEC)
CAPEC-85 AJAX Footprinting
via CWE-79
CAPEC-209 XSS Using MIME Type Mismatch
via CWE-79
CAPEC-588 DOM-Based XSS
via CWE-79
CAPEC-591 Reflected XSS
via CWE-79
CAPEC-592 Stored XSS
via CWE-79
Show all 6
via CWE-79

Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.

◆ AI Analysis — automated analysis, not human-reviewed

The package svelte before version 3.49.0 is vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and improper escape of attributes during Server-Side Rendering (SSR) when using objects with a custom toString() function.

BSID: BS-2022-GLOBAL-315190-M • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: MEDIUM

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2022-25875?
The package svelte before version 3.49.0 is vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and improper escape of attributes during Server-Side Rendering (SSR) when using objects with a custom toString() function.
What is the CVSS score for CVE-2022-25875?
CVE-2022-25875 has CVSS 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. EPSS: 1.4%.
Is CVE-2022-25875 actively exploited?
No confirmed active exploitation of CVE-2022-25875 as of 2026-05-30.
How do I remediate CVE-2022-25875?
Priority: HIGH.
What systems are affected by CVE-2022-25875?
CVE-2022-25875 affects Svelte Svelte.
Vulnerability Details
CVE IDCVE-2022-25875
BSIDBS-2022-GLOBAL-315190-M BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published2022-07-12
Last Modified2024-11-21
ICS Relevance0%
Weakness (CWE)
SourceNVD
Official 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.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

An attacker can exploit this vulnerability by injecting malicious scripts through objects with a custom toString() function during SSR, which can then be executed in the context of the victim's browser.

Exploitation Likelihood: MEDIUM

Affected Products
VendorProductAffected Versions
Svelte Svelte < 3.49.0
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 1556 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceMEDIUM
Enriched At2026-05-24
SHA-512 Audit Hashd9f10e26dae3848338cbc92a307f57d702cb719defb23723c05d7886ae07810b47623b4694f2712bea561c06570963ab5e8836ad0bff77b231fbb8bdd9438928
Related CVEs affecting Svelte
CVE-2025-67647 9.1 SvelteKit is a framework for rapidly developing robust, performant web applic... CVE-2023-29008 8.8 The SvelteKit framework offers developers an option to create simple REST API... CVE-2023-29003 8.8 SvelteKit is a web development framework. The SvelteKit framework offers deve... CVE-2021-29261 7.8 The unofficial Svelte extension before 104.8.0 for Visual Studio Code allows ... CVE-2024-23641 7.5 SvelteKit is a web development kit. In SvelteKit 2, sending a GET request wit...
View all Svelte CVEs →

ICS/OT Vulnerability Intelligence for Your Environment

BreachSpider tracks 384,000+ CVEs and matches them to your ICS/OT assets by exact version, with AI analysis, NERC CIP mapping, and vendor PSIRT contacts.

Create a free account →