Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify SSR app binding user input in raw-text element
-
DeliverySubmit payload with astral char + closing tag + script
-
ExploitServer renders via domino with misaligned escape
-
InstallVictim loads SSR HTML
-
C2Browser exits raw-text context early
-
ExecuteInjected script executes in app origin
-
ImpactSteal 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – 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)
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.
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
Affected Packages
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
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
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.
Primary rating from Vendor (https://github.com/angular/angular).
CVSS VectorVendor: https://github.com/angular/angular
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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.
EUVD-2026-38289
GHSA-hqr9-c56f-3x7f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB