LiveActive security incident?Get immediate response
CVE Record

CVE-2026-27902: Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers

Svelte performance oriented web framework. Prior to version 5.53.5, errors from `transformError` were not correctly escaped prior to being embedded in the HTML output, causing potential HTML injection and XSS if attacker-controlled content is returned from `transformError`. Version 5.53.5 fixes the issue.

MediumCVSS 5.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2026-27902 is a Svelte cross-site scripting risk in specific 5.53.x versions. If an application’s server-side rendering error handling returns attacker-controlled text through transformError, Svelte could place it into HTML without correct escaping. This could let malicious content run in a user’s browser. The vendor fixed it in Svelte 5.53.5.

Executive priority

Treat this as a targeted dependency update, not an emergency unless affected Svelte SSR applications process untrusted error content. Patch during the next standard web application maintenance window, with higher priority for public-facing services.

Technical view

Affected Svelte versions >=5.53.0 and <5.53.5 did not correctly escape transformError errors before embedding them in SSR HTML output, specifically around error boundary hydration markers. The issue is classified as CWE-79 with CVSS 4.0 score 5.3. Exploitability depends on attacker-controlled content reaching transformError and user interaction/presence per the vector.

Likely exposure

Exposure is limited to applications using Svelte versions 5.53.0 through 5.53.4, especially SSR paths with error boundaries and transformError behavior that can include attacker-controlled content. Applications on Svelte 5.53.5 or later are identified as fixed by the vendor.

Exploitation context

The sources do not report active exploitation, and the CVE is not marked as KEV. The CVSS vector indicates network reachability, high attack complexity, required attack conditions, no privileges, and user presence. Practical risk depends on application-specific error handling and whether untrusted data can be returned from transformError.

Researcher notes

Key conditions are Svelte 5.53.0-5.53.4, SSR HTML generation, error boundary hydration markers, and transformError output containing attacker-controlled content. The public sources identify the fix commit and 5.53.5 release but do not provide evidence of exploitation in the wild.

Mitigation direction

  • Upgrade Svelte to version 5.53.5 or later.
  • Review transformError implementations for attacker-controlled returned content.
  • Follow the GitHub advisory and release notes for vendor guidance.
  • Prioritize internet-facing SSR applications using affected Svelte versions.

Validation and detection

  • Inventory Svelte package versions across applications and lockfiles.
  • Confirm no deployed application uses Svelte 5.53.0 through 5.53.4.
  • Identify SSR routes using error boundaries and transformError.
  • Verify production builds run Svelte 5.53.5 or later.
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.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-27902 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.3 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N

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.3CVSS 4.0MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

5.3Medium
CVSS 4.0 vector shape for CVE-2026-27902Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
sveltejssvelte>= 5.53.0, < 5.53.5Listed
Weakness

CWE details

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