CVE-2026-50555 Angular: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in @angular/platform-server
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
Description
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.0-rc.2, 21.2.16, 20.3.24, and 19.2.25, 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). This vulnerability is fixed in 22.0.0-rc.2, 21.2.16, 20.3.24, and 19.2.25.
Upgrade path
8 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/angular.js(Debian 12) | = 1.8.3-1; = 1.8.3-1+deb12u1; = 1.8.3-1+deb12u1~deb11u1; = 1.8.3-2 +2 more | No fix listed | No fix yet |
| debian/angular.js(Debian 13) | = 1.8.3-3; All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| angular | <= 18.2.14; = 22.0.0-next0; = 22.0.0-next1; = 22.0.0-next2 +20 more | 19.2.25, 20.3.24, 21.2.6 | Fixed |
| angular platform-server(npm) | <= 18.2.14; >= 19.0.0-next.0, < 19.2.25; >= 20.0.0-next.0, < 20.3.24; >= 21.0.0-next.0, < 21.2.16 +1 more | 19.2.25, 20.3.24, 21.2.16, 22.0.0-rc.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| angular | = >= 22.0.0-next.0, < 22.0.0-rc.2 | No fix listed |
| angular | = >= 21.0.0-next.0, < 21.2.16 | No fix listed |
| angular | = >= 20.0.0-next.0, < 20.3.24 | No fix listed |
| angular | = >= 19.0.0-next.0, < 19.2.25 | No fix listed |
| angular | = <= 18.2.14 | No fix listed |
| angular platform-server(npm) | >= 22.0.0-next.0, < 22.0.0-rc.2 | 22.0.0-rc.2 |
| angular platform-server(npm) | >= 21.0.0-next.0, < 21.2.16 | 21.2.16 |
| angular platform-server(npm) | >= 20.0.0-next.0, < 20.3.24 | 20.3.24 |
| angular platform-server(npm) | >= 19.0.0-next.0, < 19.2.25 | 19.2.25 |
| angular platform-server(npm) | <= 18.2.14 | No fix listed |
| debian/angular.js(Debian:12) | All versions | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-1 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-1+deb12u1 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-1+deb12u1~deb11u1 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-2 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-3 | No fix listed |
| debian/angular.js(Debian:13) | All versions | No fix listed |
| debian/angular.js(Debian:13) | = 1.8.3-3 | No fix listed |
| ubuntu/angular.js(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:26.10) | All versions | No fix listed |
| angular | <= 18.2.14 | No fix listed |
| angular | >= 19.0.0, < 19.2.25 | 19.2.25 |
| angular | >= 20.0.0, < 20.3.24 | 20.3.24 |
Show 16 more
| Product | Affected versions | Fixed in |
|---|---|---|
| angular | >= 21.0.0, < 21.2.6 | 21.2.6 |
| angular | = 22.0.0-next0 | No fix listed |
| angular | = 22.0.0-next1 | No fix listed |
| angular | = 22.0.0-next10 | No fix listed |
| angular | = 22.0.0-next11 | No fix listed |
| angular | = 22.0.0-next12 | No fix listed |
| angular | = 22.0.0-next2 | No fix listed |
| angular | = 22.0.0-next3 | No fix listed |
| angular | = 22.0.0-next4 | No fix listed |
| angular | = 22.0.0-next5 | No fix listed |
| angular | = 22.0.0-next6 | No fix listed |
| angular | = 22.0.0-next7 | No fix listed |
| angular | = 22.0.0-next8 | No fix listed |
| angular | = 22.0.0-next9 | No fix listed |
| angular | = 22.0.0-rc0 | No fix listed |
| angular | = 22.0.0-rc1 | No fix listed |
References
- https://github.com/angular/angular/security/advisories/GHSA-hqr9-c56f-3x7f third-party-advisory vendor-advisory
- https://github.com/angular/domino/pull/29 issue-tracking patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Debian Security Tracker CVE-2026-50555 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- github.com product