Skip to main content

Angular CVE-2026-22610

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-01-10 security-advisories@github.com GHSA-jrmj-c5cx-3cw6
8.5
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Identify Angular app binding SVG script href
  2. Delivery
    Inject malicious URL via user input
  3. Exploit
    Victim loads vulnerable view
  4. Execution
    Angular emits weak URL sanitizer
  5. Persist
    Browser fetches/executes attacker script
  6. Impact
    Steal tokens and perform actions as user

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 three concrete prerequisites confirmed by the vendor advisory: (1) the target Angular application must explicitly include SVG <script> elements inside its component templates; (2) the application must use Angular property/attribute binding (e.g., [attr.href]="…" or [attr.xlink:href]="…") on those SVG script attributes rather than static strings; and (3) the bound value must derive from an untrusted source such as URL query parameters, form input, database entries, or third-party API responses. Exploitation is further limited by the CVSS UI:A requirement (a victim must actively load the page rendering the malicious SVG script) and PR:L (the attacker needs at least low-privilege ability to inject content into the application's data flow, e.g., as a registered user). The flaw is in the Angular framework itself, so applications on patched versions or applications that simply do not bind to SVG <script> href/xlink:href - which is the overwhelming majority - are not exploitable regardless of other configuration.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H) yields a base score of 8.5, reflecting network reach, low complexity, low-privileged attacker, and required active user interaction with high confidentiality/integrity/availability impact on the vulnerable component. However, EPSS is only 0.01% (2nd percentile), there is no CISA KEV listing, and no public exploit identified at time of analysis - signals that argue against opportunistic mass exploitation. The realistic risk is moderate and highly conditional: it depends on an application explicitly using SVG <script> elements with dynamic bindings to untrusted data, which is an uncommon Angular pattern. The PR:L requirement appears to reflect that an attacker typically needs the ability to submit data into the application (a normal authenticated user role in many apps) rather than admin access, while UI:A means a victim must load the affected view. Note the apparent conflict between the CVSS "high" rating and the very low EPSS - this is typical for framework-level XSS where exploitability depends on downstream consumer code, so prioritization should be driven by whether your Angular app actually binds to SVG script attributes.

Exploit ScenarioDerived

An attacker submits a malicious payload (such as a data:text/javascript URI or a URL pointing to an attacker-controlled external script) into an input field, URL parameter, or API response that the target Angular application binds into the href or xlink:href attribute of an SVG <script> element. When a victim user navigates to the affected page, Angular emits the URL with the weaker non-resource sanitizer, the browser loads and executes the attacker's JavaScript in the victim's session, enabling cookie/token theft, data exfiltration, and unauthorized state-changing actions on the user's behalf. No public exploit identified at time of analysis, but the patched test case in the commit diff demonstrates the precise vulnerable binding pattern.

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

AnalysisAIv3 – Jun 02, 2026

Cross-site scripting in Angular's Template Compiler allows attackers to inject arbitrary JavaScript through unsanitized href and xlink:href attributes on SVG <script> elements bound to untrusted data. Affects Angular versions prior to 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0, with no public exploit identified at time of analysis despite a very low EPSS score of 0.01%. Patched releases are available from the Angular project, and exploitation requires the victim application to dynamically bind user-controlled values to those specific SVG script attributes.

Earlier versions of this analysis (2)
v2 Jun 02, 2026 - 14:28 cvss changed CVSS 8.5

Cross-site scripting in Angular's Template Compiler allows attackers to execute arbitrary JavaScript by injecting untrusted data into the href or xlink:href attributes of SVG <script> elements. Affected versions span Angular prior to 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0, where the internal sanitization schema fails to classify these SVG script attributes as Resource URL contexts. No public exploit identified at time of analysis, and EPSS is low (0.01%), but the flaw is confirmed via a GitHub Security Advisory (GHSA-jrmj-c5cx-3cw6) with a vendor patch released.

v1 Mar 12, 2026 - 21:54 CVSS 6.1

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0, a cross-site scripting (XSS) vulnerability has been identified in the Angular Template Compiler. [CVSS 6.1 MEDIUM]

RemediationAI

Vendor-released patches are available: upgrade @angular/core and @angular/compiler to 19.2.18, 20.3.16, 21.0.7, or 21.1.0-rc.0 depending on the release line in use, as documented in https://github.com/angular/angular/security/advisories/GHSA-jrmj-c5cx-3cw6 and the fixing commit https://github.com/angular/angular/commit/91dc91bae4a1bbefc58bef6ef739d0e02ab44d56. As a workaround until upgrading, avoid using Angular template property/attribute binding (e.g., [attr.href], [attr.xlink:href]) on SVG <script> elements entirely - refactor templates to use static script references or non-SVG script loading patterns, with the trade-off of losing any dynamic SVG scripting behavior. If dynamic values must be used, strictly validate them server-side against an allowlist of trusted URLs before they reach the template, accepting that allowlist maintenance and false-rejections are the trade-off. Siemens customers should additionally review SSA-253495 and SSA-485750 for product-specific guidance.

Affected Packages

npm @angular/compiler fix: 19.2.18, 20.3.16, 21.0.7, 21.1.0-rc.0
npm @angular/core fix: 19.2.18, 20.3.16, 21.0.7, 21.1.0-rc.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm

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

Technical ContextAI · show details

Angular is a TypeScript/JavaScript framework for building single-page web applications, and its Template Compiler is responsible for transforming HTML templates into rendering instructions that include automatic sanitization wrappers. The root cause is a CWE-79 (Improper Neutralization of Input During Web Page Generation) flaw in the compiler's DOM security schema (dom_security_schema.ts) and runtime sanitization logic (sanitization.ts), which only treated href on base/link and src on embed/frame/iframe/media/script as Resource URL contexts. Because script|href and script|xlink:href were missing from the SECURITY_SCHEMA map and the getUrlSanitizer routing, Angular emitted the weaker ɵɵsanitizeUrl instead of ɵɵsanitizeResourceUrl for SVGScriptElement href bindings - allowing javascript:/data: URIs and remote script references to pass through. The patch adds those attribute keys to the schema, introduces SRC_RESOURCE_TAGS/HREF_RESOURCE_TAGS sets, and routes script xlink:href through ɵɵsanitizeResourceUrl. The CPE list confirms the affected ecosystem is the @angular/angular Node.js packages, with the 21.1.0-next.0 through next.4 prereleases explicitly enumerated.

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

GitHub Advisory 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
Red Hat 7.3 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

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

6
Analysis Updated
Jun 02, 2026 - 14:28 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 02, 2026 - 14:28 vuln.today
v2 - CVSS changed
Severity Changed
Jun 02, 2026 - 14:22 NVD
MEDIUM HIGH
CVSS changed
Jun 02, 2026 - 14:22 NVD
6.1 (MEDIUM) 8.5 (HIGH)
Patch released
Feb 23, 2026 - 18:23 nvd
Patch available
CVE Published
Jan 10, 2026 - 04:16 nvd
MEDIUM 6.1

DescriptionGitHub Advisory

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0, a cross-site scripting (XSS) vulnerability has been identified in the Angular Template Compiler. The vulnerability exists because Angular’s internal sanitization schema fails to recognize the href and xlink:href attributes of SVG <script> elements as a Resource URL context. This issue has been patched in versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0.

Executive ViewAI

Why It Matters

A cross-site scripting vulnerability in Angular's Template Compiler (CVE-2026-22610) could allow attackers to inject malicious JavaScript and compromise user sessions or steal data from applications that dynamically bind untrusted input to SVG element attributes. Organizations should upgrade to patched Angular versions to eliminate this injection vector and prevent potential account takeovers.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
3
1 sources
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS CISA 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 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.

Affected Products (CPE)GitHub Advisory

cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*
cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*
cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*
cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*
cpe:2.3:a:angular:angular:21.1.0:next0:*:*:*:node.js:*:*
cpe:2.3:a:angular:angular:21.1.0:next1:*:*:*:node.js:*:*
cpe:2.3:a:angular:angular:21.1.0:next2:*:*:*:node.js:*:*
cpe:2.3:a:angular:angular:21.1.0:next3:*:*:*:node.js:*:*
cpe:2.3:a:angular:angular:21.1.0:next4:*:*:*:node.js:*:*
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-2025-66412 HIGH
8.5 Dec 01

Stored XSS in the Angular Template Compiler (npm package @angular/compiler) allows an authenticated attacker who can per

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

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