Skip to main content

Angular CVE-2025-66412

| EUVDEUVD-2025-200118 HIGH
Cross-site Scripting (XSS) (CWE-79)
2025-12-01 security-advisories@github.com GHSA-v4hv-rgfq-gp49
8.5
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate or find storage vector in Angular app
  2. Delivery
    Submit javascript: URL payload targeting xlink:href, math|href, or SVG animate attributeName
  3. Exploit
    Payload stored in backend and rendered via Angular template binding
  4. Install
    Compiler emits unsanitized attribute assignment (schema gap)
  5. C2
    Victim loads page
  6. Execute
    Victim clicks element or animation auto-fires
  7. Impact
    Arbitrary 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.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

angular 19.0.0-next.0 < 19.2.17
angular 21.0.0-next.0 < 21.0.2
angular 20.0.0-next.0 < 20.3.15
angular ≤ 18.2.14

Affected Packages

npm @angular/compiler fix: 19.2.17, 20.3.15, 21.0.2
euvd angular fix: 19.2.17, 20.3.15, 21.0.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

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

Vendor (github) PRIMARY 8.5 HIGH
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
vuln.today AI 8.7 HIGH

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.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

5
Severity Changed
Jun 02, 2026 - 14:22 NVD
MEDIUM HIGH
CVSS changed
Jun 02, 2026 - 14:22 NVD
5.4 (MEDIUM) 8.5 (HIGH)
Patch released
Mar 15, 2026 - 13:34 nvd
Patch available
CVE Published
Dec 01, 2025 - 23:15 nvd
MEDIUM 5.4
CVE Published
Dec 01, 2025 - 23:15 github-advisory
HIGH 8.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 89% exploitable
Prevalence
High
major enterprise frontend framework, one of the 'big three' alongside React and Vue
Threat Intel
3
1 sources
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS CISA GHSA Vendor GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: +10
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.

CVE-2026-88060 HIGH POC
8.6 Sep 10

Cross-site scripting via Angular's server-side rendering package (@angular/platform-server) allows arbitrary JavaScript

CVE-2026-88058 HIGH POC
8.6 Sep 10

Cross-site scripting in Angular's server-side rendering engine (`@angular/platform-server`) allows arbitrary JavaScript

CVE-2026-88056 HIGH POC
8.6 Sep 10

Server-Side Rendering in Angular's @angular/platform-server leaks server-side credentials to attacker-controlled origins

CVE-2026-22610 HIGH
8.5 Jan 10

Cross-site scripting in Angular's Template Compiler allows attackers to inject arbitrary JavaScript through unsanitized

CVE-2026-101895 HIGH
8.7 Sep 28

An unauthenticated remote attacker can lock up an Angular server-side rendering process by submitting HTML that contains

CVE-2025-62427 HIGH
8.7 Oct 16

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

CVE-2026-50178 HIGH
8.7 Jun 22

Command injection via untrusted Markdown rendering in the Angular Language Service VS Code extension (versions prior to

CVE-2026-49241 HIGH
8.7 Jun 22

Arbitrary code execution in the Angular Language Service VS Code extension prior to 21.2.4 allows attackers to silently

CVE-2026-41423 HIGH
8.7 May 08

Server-Side Request Forgery in Angular's @angular/platform-server (SSR) lets remote unauthenticated attackers hijack the

CVE-2026-111752 HIGH
8.2 Oct 20

Heap exhaustion and CPU starvation in @angular/router under Angular Server-Side Rendering on Node.js allow unauthenticat

CVE-2026-101896 HIGH
8.2 Sep 30

Denial of service in the npm package @angular/router when Server-Side Rendering (SSR) is enabled on Node.js allows an un

CVE-2026-111751 HIGH
8.2 Oct 20

Denial of service in @angular/router lets unauthenticated remote attackers crash Node.js server-side rendering workers b

Vendor StatusVendor

Ubuntu

Priority: Medium
angular.js
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

angular.js
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 - -

Threat IntelligenceMISP

CISA Advisories
GitHub Advisories
Sources: CISA (public domain), GitHub Advisory DB

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