Skip to main content

Angular Core EUVDEUVD-2026-38261

| CVE-2026-52725 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-15 https://github.com/angular/angular GHSA-692r-grfm-v8x7
5.3
CVSS 4.0 · Vendor: https://github.com/angular/angular
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts URL or input with script-element selector
  2. Delivery
    Victim navigates to application triggering dynamic component load
  3. Exploit
    Application passes unsanitized input to createComponent
  4. Execution
    Angular mounts component onto <script> element bypassing security schema
  5. Persist
    Attacker JavaScript executes in victim browser context
  6. Impact
    Session token or sensitive data exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two concurrent application-level conditions to be true simultaneously. First, the application must use Angular's createComponent API (or a wrapper around it) and accept user-controlled input - such as a URL parameter, form field value, or externally sourced configuration - as the host element reference or selector argument without transforming or restricting it. Second, the application must lack a separate input sanitization or allowlist step that would reject script-element tag names before they reach the createComponent call. Standard Angular applications that do not use dynamic component creation, or that use createComponent only with hardcoded, developer-controlled host elements, are NOT affected. Exploitation is further limited by the need for the victim to navigate to or trigger the vulnerable code path (user interaction required). There is no indication this is exploitable against default Angular application configurations.

Impact

No CVSS vector or score was provided by NVD or the vendor advisory, so numeric risk metrics must be independently assessed. The flaw is network-reachable but carries meaningful exploitation complexity: it requires an Angular application to have a specific architectural pattern where user-controlled input flows directly into createComponent as a host element or selector without intervening sanitization. This is not a default behavior of Angular applications and represents a non-trivial precondition. There is no EPSS score available, no CISA KEV listing, and no confirmed public proof-of-concept, making real-world exploitation probability at this time speculative rather than confirmed. The potential impact upon successful exploitation is high - full client-side XSS enabling session hijacking and data theft - but the conditional nature of the exploit (app must misuse the API) significantly narrows the exposed population. The 'Information Disclosure' tag from the source intelligence aligns with XSS-enabled credential and session data exfiltration. Risk should be treated as HIGH for applications explicitly using dynamic component creation with user-supplied host parameters, and LOW-to-MEDIUM for standard Angular applications that do not exercise this pattern.

Exploit ScenarioDerived

An attacker targets an Angular single-page application that dynamically loads and mounts components based on a URL query parameter (e.g., ?component=some-selector). By crafting a request that passes script as the host element or selector value, and where the application forwards this input directly to createComponent without sanitization, the Angular runtime mounts the component onto a <script> tag, causing the attacker-injected JavaScript payload to execute in the victim's browser session. No public proof-of-concept has been identified at time of analysis, but the attack surface is conceptually straightforward for any developer familiar with Angular's dynamic component API.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

Dynamic component mounting in @angular/core permits client-side XSS by failing to reject script elements as valid host targets for createComponent. Angular applications that pass user-supplied selectors or host element references to the createComponent API without prior sanitization are vulnerable to namespace bypass, allowing an attacker to mount Angular components onto <script> or <svg:script> elements and execute arbitrary JavaScript in the victim's browser. No active exploitation has been confirmed (not in CISA KEV) and no public proof-of-concept has been identified at time of analysis, but vendor-released patches are available across multiple supported major versions.

RemediationAI

The primary remediation is to upgrade @angular/core to a patched release: 19.2.23 for the v19 line, 20.3.22 for the v20 line, 21.2.15 for the v21 line, or 22.0.0-rc.2 for the v22 release candidate line. These patches are confirmed via the upstream GitHub security advisory (GHSA-692r-grfm-v8x7) and the merged pull requests at https://github.com/angular/angular/pull/68686 and https://github.com/angular/angular/pull/68713. For applications running Angular v18 or earlier, no vendor patch exists at time of analysis; the specific compensating control is to audit all call sites of createComponent and enforce an explicit allowlist validation of host element tags and selectors before invoking the API - rejecting any input that resolves to a script, svg:script, or equivalent namespaced script element. Implementing a Content Security Policy (CSP) with script-src restricted to trusted origins provides a meaningful defense-in-depth layer that limits the blast radius of a successful XSS exploit, though it does not prevent the component mount itself. Restricting the application's dynamic component features to authenticated, server-validated configurations eliminates the user-controlled-input precondition entirely.

Affected VersionsENISA

angular 19.0.0-next.0 < 19.2.22
angular 22.0.0-next.0 < 22.0.0-rc.2
angular 21.0.0-next.0 < 21.2.15
angular ≤ 18.2.14
angular 20.0.0-next.0 < 20.3.22

Affected Packages

npm @angular/core fix: 19.2.23, 20.3.22, 21.2.15, 22.0.0-rc.2
euvd angular fix: 19.2.22, 20.3.22, 21.2.15, 22.0.0-rc.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in @angular/core's dynamic component instantiation subsystem, specifically the createComponent runtime API and the associated compiler-side DOM security schema (dom_security_schema.ts and dom_element_schema_registry.ts). Angular's component renderer normally enforces a security schema that maps element tags and namespaces to sanitization contexts (HTML, URL, STYLE, NONE); however, the createComponent code path did not include a guard rejecting <script> or namespace-prefixed script elements (e.g., <svg:script>) as mount targets. CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting) is the root cause class: user-controlled data reaches a script-executing DOM sink without adequate validation. The patch, visible in GitHub PRs #68686 and #68713, refactors namespace handling in the security schema and introduces explicit namespace-aware element rejection logic. Affected packages are distributed as pkg:npm/@angular_core across major versions 19, 20, 21, and 22.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/angular/angular) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.0 HIGH

AC:H reflects the non-default app architecture required; S:C and C:H/I:H reflect full XSS execution in the victim browser context; A:N as no availability impact is described.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Red Hat 6.8 MEDIUM

Primary rating from Vendor (https://github.com/angular/angular).

CVSS VectorVendor: https://github.com/angular/angular

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 22, 2026 - 16:52 NVD
5.3 (MEDIUM)

DescriptionCVE.org

An issue in the @angular/core package allows bypassing script-execution restrictions during dynamic component creation.

Specifically, the dynamic component instantiation mechanism (createComponent) failed to reject mounting components directly onto a <script> or namespaced script element (such as <svg:script>). This enabled the initialization of custom components on a tag that executes scripts, allowing attackers to hijack or inject script-executing hosts.

This flaw enables an attacker who can control the host element or selector parameter passed to createComponent to initialize or mount an Angular component directly onto a <script> tag, leading to execution of untrusted code or client-side Cross-Site Scripting (XSS).

Impact

Any Angular application that registers dynamic components based on user-supplied parameters (like selectors or host elements) is vulnerable to this security bypass.

Once exploited, this allows a malicious actor to mount a dynamic component on a script tag, bypassing core dynamic component creation safeguards to execute arbitrary JavaScript within the target user's browser context. This could lead to session hijacking, sensitive data exposure, or unauthorized actions on behalf of the user.

Attack Preconditions

To successfully exploit these vulnerabilities, the following environment parameters and application states must all concurrently exist:

  1. User-Controlled Host Selection: The application must accept user-controlled inputs that are passed as a selector/host element to createComponent.
  2. Absence of Additional Context Sanitization: The application does not perform separate input sanitization before feeding values to the dynamic creation APIs.

Patches

  • 22.0.0-rc.2
  • 21.2.15
  • 20.3.22
  • 19.2.23

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy