Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts URL or input with script-element selector
-
DeliveryVictim navigates to application triggering dynamic component load
-
ExploitApplication passes unsanitized input to createComponent
-
ExecutionAngular mounts component onto <script> element bypassing security schema
-
PersistAttacker JavaScript executes in victim browser context
-
ImpactSession 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 |
| 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 |
| Exploit ScenarioDerived | An attacker targets an Angular single-page application that dynamically loads and mounts components based on a URL query parameter (e.g., |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (https://github.com/angular/angular).
CVSS VectorVendor: https://github.com/angular/angular
Lifecycle Timeline
1DescriptionCVE.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:
- User-Controlled Host Selection: The application must accept user-controlled inputs that are passed as a selector/host element to
createComponent. - 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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-38261
GHSA-692r-grfm-v8x7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB