CVE-2026-79320

Published Sep 21, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
Stencil core 4.43.5 contains a DOM-based cross-site scripting (XSS) vulnerability in the component runtime. When a downstream application enables the experimental slot fixes option and uses scoped components, assigning a string to the textContent property of such a component's host element causes the value to be parsed as HTML instead of being inserted as text. If an application writes attacker-controlled data to these host elements, the data can be interpreted as markup and script can execute in the context of the application's origin.

Analysis

AI-generated

Technical impact

Stencil core 4.43.5 contains a DOM‑based cross‑site scripting flaw in the component runtime. When the experimental slot fixes option is enabled and scoped components are used, assigning a string to the textContent property of a component’s host element causes the value to be parsed as HTML. If an attacker can control that string, malicious markup or script will execute in the context of the application’s origin. The vulnerability allows attackers to run arbitrary client‑side code by injecting scripts that execute in the application's origin context.

Affected Systems

Any application that incorporates Stencil core 4.43.5, enables the experimental slot fixes option, and uses scoped components is affected. The issue is limited to the runtime behavior of Stencil; other parts of the framework are not directly impacted.

Risk and Exploitability

The CVSS score is 6.1 and the EPSS score is < 1%. The vulnerability is not listed in the CISA KEV catalog. Attackers can inject script tags or other executable markup via the component host element, which will run with the privileges of the application. No special conditions are stated, so any downstream application that follows the described configuration pattern can be exploited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Stencil core to a version that fixes the XSS issue (consult the project’s release notes for the relevant patch).
  • Disable or remove the experimental slot fixes configuration until the patch is applied to prevent the malformed parsing of textContent.
  • Sanitize or escape all data that is assigned to component host element textContent, or avoid using textContent for untrusted content.

Generated by OpenCVE AI on September 25, 2026 at 02:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Stenciljs
Stenciljs core
Vendors & Products Stenciljs
Stenciljs core
Type Values Removed Values Added
Title DOM‑Based XSS via textContent Assignment in Stencil Core Component Runtime
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title DOM‑Based XSS via textContent Assignment in Stencil Core Component Runtime
Weaknesses CWE-79
Type Values Removed Values Added
Description Stencil core 4.43.5 contains a DOM-based cross-site scripting (XSS) vulnerability in the component runtime. When a downstream application enables the experimental slot fixes option and uses scoped components, assigning a string to the textContent property of such a component's host element causes the value to be parsed as HTML instead of being inserted as text. If an application writes attacker-controlled data to these host elements, the data can be interpreted as markup and script can execute in the context of the application's origin.
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 24, 2026, 12:49 PM
Reserved
Aug 25, 2026, 12:00 AM
Status
Awaiting Analysis
Published
Sep 21, 2026, 8:17 PM
Modified
Sep 24, 2026, 1:17 PM