LiveActive security incident?Get immediate response
CVE Record

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.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

A flaw in older Svelte versions could let attacker-controlled data become script in server-rendered pages. Successful abuse could affect a user's browser session, but sources rate it medium and require user interaction. The provided sources do not show known active exploitation.

Executive priority

Treat as a moderate web application security fix. Prioritize public Svelte SSR services and customer-facing pages, but this is not presented by the sources as an emergency exploitation event.

Technical view

Svelte's SSR attribute escaping mishandled object values with custom toString(), allowing XSS in rendered attributes. CVSS 3.1 is 5.4: network reachable, low complexity, no privileges, user interaction required, with limited confidentiality and integrity impact.

Likely exposure

Exposure is most likely in web applications using Svelte before 3.49.0 with server-side rendering, where untrusted values can reach component attributes as objects. The source bundle does not identify specific downstream products.

Exploitation context

The issue is not in CISA KEV, and the provided sources do not cite active exploitation. Abuse depends on attacker influence over data rendered into SSR attributes and a user visiting the affected page.

Researcher notes

The vulnerable condition is specific: Svelte before 3.49.0, SSR attribute handling, object values, and custom toString() behavior. Evidence supports medium severity and a fixed release, but not broad exploitation or affected products beyond Svelte itself.

Mitigation direction

  • Upgrade Svelte to version 3.49.0 or later.
  • Prioritize internet-facing SSR applications that render user-controlled content.
  • Review vendor advisories and the referenced Svelte fix for implementation details.
  • Add regression coverage for SSR attribute escaping around object-like inputs.

Validation and detection

  • Check package manifests and lockfiles for Svelte versions before 3.49.0.
  • Identify Svelte routes that use server-side rendering.
  • Review components where untrusted data is rendered into HTML attributes.
  • Confirm production builds use the fixed Svelte dependency.
  • Run regression tests covering SSR escaping behavior.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2022-25875 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P2.82.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2022-25875Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/asvelteunspecifiedListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.