Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate or find storage vector in Angular app
-
DeliverySubmit javascript: URL payload targeting xlink:href, math|href, or SVG animate attributeName
-
ExploitPayload stored in backend and rendered via Angular template binding
-
InstallCompiler emits unsanitized attribute assignment (schema gap)
-
C2Victim loads page
-
ExecuteVictim clicks element or animation auto-fires
-
ImpactArbitrary JavaScript executes in app origin
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 all of the following conditions simultaneously: (1) the Angular application must be on a vulnerable version (Angular 19.x < 19.2.17, 20.x < 20.3.15, 21.x < 21.0.2, or ≤ 18.2.14); (2) a developer must have written an Angular template that binds a dynamic, user-controlled value to one of the affected attributes - specifically xlink:href, math|href, annotation|href via [attr.*] syntax, or SVG animation element attributeName/values via template binding; (3) the attacker must have a pathway to persist malicious data into the application's backend (requiring at minimum low-privilege authenticated access or a separate stored-injection vector); (4) a victim user must load the page containing the injected element, and in most cases must interact with it (click, hover) unless a self-triggering SVG animation is used. Applications that do not use SVG, MathML, or SVG animation elements in Angular templates are not affected, regardless of Angular version. |
| Impact | Real-world risk is moderate-to-high for applications that render user-controlled data into SVG or MathML template bindings, but the vulnerability is NOT exploitable against arbitrary Angular applications. Exploitation requires the developer to have written a template that binds untrusted data to the specific affected attributes - a pattern more likely in content-rich or document-oriented apps than in standard CRUD interfaces. The CVSS 4.0 vector (PR:L/UI:A) correctly captures the dual requirement of attacker data-injection capability and victim interaction. The EPSS score of 0.04% (11th percentile) reflects early-stage disclosure with no known weaponized exploit, consistent with a conditional attack surface. The VA:H sub-metric in the provided vector appears inflated - the advisory describes session hijacking and data exfiltration (C:H/I:H) but does not describe an availability impact path; this is likely conservative vendor scoring. Even a mid-sized municipal IT team in gdynia running an Angular document portal that stores user-generated content with SVG support should treat this as urgent given the session hijacking impact, while teams running standard form-based Angular apps with no SVG/MathML template bindings face negligible practical risk. The Siemens advisories (SSA-253495, SSA-485750) confirm downstream industrial product exposure, broadening the real-world footprint. No KEV listing and no POC published independently at analysis time. |
| Exploit ScenarioDerived | An attacker submits a malicious payload through an application input field (such as a user profile bio, document editor, or comment box) that is stored in the backend and later rendered via an Angular template binding like [attr.xlink:href]="userBio" on an SVG element. Because the compiler's schema omits xlink:href from URL sanitization, the javascript: URL is written directly to the DOM attribute without sanitization. When a victim loads the page and clicks the SVG element, the injected JavaScript executes in the application's origin, harvesting session cookies or performing actions as the victim. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Stored XSS in the Angular Template Compiler (npm package @angular/compiler) allows an authenticated attacker who can persist data in an Angular application to inject javascript: URLs via SVG attributes (xlink:href), MathML attributes (math|href, annotation|href), and SVG animation element attributeName bindings, bypassing Angular's built-in sanitization entirely. The compiler's internal security schema omitted these attribute families from its strict-URL-security classification, meaning no sanitizer was applied at compile time when developers used template bindings like [attr.xlink:href] or [attr.attributeName] with untrusted data. Upon victim interaction or animation auto-fire, injected JavaScript executes in the application's origin context, enabling session hijacking and data exfiltration. No public exploit code identified at time of analysis; EPSS is 0.04%.
RemediationAI
Upgrade to the fixed Angular releases: 19.2.17, 20.3.15, or 21.0.2, available via npm. The GitHub Security Advisory GHSA-v4hv-rgfq-gp49 and the patch commit (github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a) serve as the authoritative references. Angular 18.x and earlier have no upstream patch; operators on those versions should contact HeroDevs (herodevs.com/vulnerability-directory/cve-2025-66412), which provides commercial long-term support for Angular end-of-life branches. As a compensating control until patching, audit all Angular templates for bindings to xlink:href, math|href, annotation|href, and SVG animation attributeName/values attributes and either remove those bindings or apply Angular's DomSanitizer.bypassSecurityTrustUrl only after manual server-side validation - note that bypassSecurityTrustUrl disables Angular's sanitization entirely for that value and must be used with caution. Siemens customers should consult SSA-253495 and SSA-485750 for product-specific guidance.
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
Angular's Template Compiler (cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*) uses an internal compile-time security schema to determine which HTML, SVG, and MathML attributes must be passed through sanitization functions before being set at runtime. The schema categorizes attributes into contexts: HTML (sanitizeHtml), ResourceURL (sanitizeResourceUrl), Style (sanitizeStyle), URL (sanitizeUrl), and None (trusted). The bug (CWE-79) is a schema omission: SVG attributes that can hold javascript: URLs (xlink:href and equivalents), MathML anchor attributes (math|href, annotation|href), and the SVG animation attributeName attribute were all classified as None, bypassing sanitization. The commit diff shows the fix adds an UNSAFE_ATTRIBUTE_BINDING runtime error code, switches iframe attribute validation from validateIframeAttribute to a broader validateAttribute, and applies validateAttribute to animateMotion/animate/set/animateTransform attributeName bindings. The SVG animation vector is particularly subtle: attributeName='href' plus values='javascript:...' redirects an animation to write a javascript: URL into a sibling element's href, sidestepping any per-attribute checks on the target element.
Know when Angular gets its next vulnerability
- 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:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attacker must store malicious data (PR:L), victim must interact or view the page (UI:R), XSS achieves scope change enabling session hijack on victim browser (S:C); no availability impact described.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
5DescriptionCVE.org
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 21.0.2, 20.3.15, and 19.2.17, A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain javascript: URLs) as requiring strict URL security, enabling the injection of malicious scripts. This vulnerability is fixed in 21.0.2, 20.3.15, and 19.2.17.
Executive ViewAI
Angular applications using the @angular/compiler package are vulnerable to stored cross-site scripting (XSS) attacks through SVG and MathML attribute injection. Authenticated users with data persistence capabilities can inject malicious JavaScript that executes in the application's origin context when victims interact with affected content, enabling session hijacking and data exfiltration. All organizations deploying Angular-based web applications should prioritize identification and patching of this widely-used compiler dependency.
Apply vendor patch. If immediate patching is not feasible, restrict data sources populating SVG xlink:href, MathML href, and SVG animation attributeName bindings to backend-controlled, server-rendered values only; implement strict input validation prohibiting javascript: URLs in untrusted data used within template bindings; and enforce Content Security Policy (CSP) directives restricting script execution to whitelisted sources.
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.
Cross-site scripting via Angular's server-side rendering package (@angular/platform-server) allows arbitrary JavaScript
Cross-site scripting in Angular's server-side rendering engine (`@angular/platform-server`) allows arbitrary JavaScript
Server-Side Rendering in Angular's @angular/platform-server leaks server-side credentials to attacker-controlled origins
Cross-site scripting in Angular's Template Compiler allows attackers to inject arbitrary JavaScript through unsanitized
An unauthenticated remote attacker can lock up an Angular server-side rendering process by submitting HTML that contains
Server-side request forgery in Angular's @angular/ssr package (all versions from 19.0.0-next.0 before 19.2.18, 20.0.0-ne
Command injection via untrusted Markdown rendering in the Angular Language Service VS Code extension (versions prior to
Arbitrary code execution in the Angular Language Service VS Code extension prior to 21.2.4 allows attackers to silently
Server-Side Request Forgery in Angular's @angular/platform-server (SSR) lets remote unauthenticated attackers hijack the
Heap exhaustion and CPU starvation in @angular/router under Angular Server-Side Rendering on Node.js allow unauthenticat
Denial of service in the npm package @angular/router when Server-Side Rendering (SSR) is enabled on Node.js allows an un
Denial of service in @angular/router lets unauthenticated remote attackers crash Node.js server-side rendering workers b
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
Ubuntu
Priority: Medium| Release | Status | Version |
|---|---|---|
| xenial | needs-triage | - |
| bionic | needs-triage | - |
| focal | needs-triage | - |
| jammy | needs-triage | - |
| noble | needs-triage | - |
| questing | needs-triage | - |
| upstream | needs-triage | - |
| plucky | ignored | end of life, was needs-triage |
Debian
| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| bullseye | fixed | 1.8.2-2 | - |
| bullseye (security) | fixed | 1.8.3-1+deb12u1~deb11u1 | - |
| bookworm | fixed | 1.8.3-1+deb12u1 | - |
| forky, sid, trixie | fixed | 1.8.3-3 | - |
| (unstable) | not-affected | - | - |
EUVD-2025-200118
GHSA-v4hv-rgfq-gp49
NVD
CVE.org
EPSS
Exploit-DB