CVE-2022-25875
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-25875 affects the Svelte package versions prior to 3.49.0. This Cross-site Scripting (XSS) vulnerability was discovered due to improper input sanitization and improper escape of attributes when using objects during Server-Side Rendering (SSR). The vulnerability was disclosed on June 17, 2022, and published on July 11, 2022 (Snyk).

Technical details

The vulnerability stems from improper input sanitization and escape of attributes when using objects during Server-Side Rendering (SSR). The issue specifically occurs when handling objects with a custom toString() function. The vulnerability has a CVSS v3.1 base score of 5.4 (medium severity), with attack vector being Network, attack complexity Low, requiring User Interaction, and having Low impact on both Confidentiality and Integrity (Snyk).

Impact

When successfully exploited, this vulnerability could allow attackers to execute cross-site scripting attacks through objects with custom toString() functions. This could potentially lead to cookie theft, session hijacking, exposure of sensitive information, or delivery of malware. The vulnerability affects the confidentiality and integrity of the application with a low impact level (Snyk).

Mitigation and workarounds

The recommended mitigation is to upgrade the Svelte package to version 3.49.0 or higher. The fix was implemented through a patch that hardened attribute escaping during SSR, as evidenced by the commit f8605d6 (GitHub).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-22028HIGH7.2
  • JavaScriptJavaScript
  • preact
NoYesJan 07, 2026
CVE-2025-9611HIGH7.2
  • JavaScriptJavaScript
  • @playwright/mcp
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management