CVE-2026-27119
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-27119 is a Cross-Site Scripting (XSS) vulnerability in the Svelte JavaScript framework affecting server-side rendering (SSR) of <option> elements. In certain circumstances, the SSR output of an <option> element does not properly escape its content, potentially allowing HTML injection in the SSR output; client-side rendering is not affected. The vulnerability affects Svelte versions >= 5.39.3 and < 5.51.5 (npm package). It was published on February 18, 2026, and carries a CVSS v3.1 score of 5.4 (Medium) and a CVSS v4.0 score of 5.1 (Medium) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting), specifically arising from insufficient output escaping in Svelte's SSR rendering path for <option> HTML elements (GitHub Advisory). An attacker who can influence the content rendered inside an <option> element during SSR (e.g., via user-controlled data passed to a Svelte component) can inject arbitrary HTML into the server-rendered page. Exploitation requires high privileges and specific deployment conditions (attack requirements: present), and is only exploitable via the SSR code path — client-side hydration and rendering are unaffected (Svelte Security Advisory).

Impact

Successful exploitation could allow an attacker to inject malicious HTML or JavaScript into server-rendered pages, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of victims who view the affected page. The CVSS v4.0 scoring indicates high confidentiality and integrity impact on subsequent systems (e.g., user browsers), while the vulnerable system itself sees only low confidentiality impact and no availability impact. Availability is not affected by this vulnerability (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported as of the available data. The EPSS score is approximately 0.043% (0.012% per GitHub Advisory, 2nd percentile), indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and no threat actor attribution has been identified (GitHub Advisory).

Exploitation steps

  1. Identify target: Locate a web application built with Svelte (npm) versions >= 5.39.3 and < 5.51.5 that uses server-side rendering (SSR) and renders user-controlled data inside <option> elements.
  2. Craft malicious input: Prepare a payload containing HTML/JavaScript that would break out of the <option> element context, such as </option><script>alert(document.cookie)</script> or similar HTML injection strings.
  3. Inject via user-controlled data: Submit the crafted payload through any application input that is reflected into an SSR-rendered <option> element (e.g., form fields, URL parameters, or database-stored values displayed in a dropdown).
  4. Trigger SSR rendering: Cause the server to render the affected page with the injected content — this may require the attacker to have sufficient privileges to supply data that reaches the SSR path.
  5. Victim views page: When a victim's browser receives the server-rendered HTML containing the injected payload, the malicious script executes in their browser context, enabling session theft, phishing, or further attacks (GitHub Advisory, Svelte Security Advisory).

Indicators of compromise

  • Network: Unusual HTTP responses from SSR-enabled Svelte applications containing unescaped HTML tags (e.g., <script>, </option>) within <option> element content in page source.
  • Logs: Server-side application logs showing unexpected characters or HTML tags in data fields that are rendered into <option> elements; anomalous input values containing <, >, or </option> sequences submitted to form endpoints.
  • File System: No specific file artifacts expected for this XSS vulnerability, as exploitation occurs at the rendering layer.
  • Process/Application: Client-side reports of unexpected JavaScript execution or browser console errors originating from SSR-rendered dropdown/select components in Svelte applications running affected versions.

Mitigation and workarounds

The vulnerability is fixed in Svelte version 5.51.5 (npm). All users running Svelte >= 5.39.3 and <= 5.51.4 should upgrade to 5.51.5 immediately. No specific configuration-based workaround has been published; the recommended remediation is to update the svelte npm package to the patched version (GitHub Advisory, Svelte Security Advisory). As a temporary measure, developers can audit SSR code paths to ensure user-controlled data is manually sanitized before being passed to <option> elements.

Community reactions

The advisory was published by elliott-with-the-longest-name-on-github to the sveltejs/svelte repository on February 18, 2026, and was reviewed and added to the GitHub Advisory Database on February 19, 2026. Red Hat tracked the issue via Bugzilla (Bug 2441526) and classified it as medium severity. No significant broader media coverage or notable researcher commentary beyond the official advisory has been identified (GitHub Advisory, Red Hat Bugzilla).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Unknown

SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-49250HIGH8.7
  • JavaScript logoJavaScript
  • @conform-to/dom
NoYesSep 14, 2026
CVE-2026-55091HIGH7.5
  • JavaScript logoJavaScript
  • flat-to-nested
NoYesSep 14, 2026
CVE-2026-59960HIGH7.5
  • JavaScript logoJavaScript
  • @argos-ci/core
NoYesSep 14, 2026
CVE-2026-54150MEDIUM6.9
  • JavaScript logoJavaScript
  • next-video
NoYesSep 14, 2026
CVE-2026-57583LOW3.3
  • JavaScript logoJavaScript
  • @openzeppelin/wizard
NoYesSep 14, 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