Angular SSR: Missing Fallback Raw-Content Serialization Escaping leads to Cross-Site Scripting (XSS)
angular · @angular platform-server
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @angular/platform-server npm |
|
|
angular · @angular platform-server
| Product | Affected | Fixed in |
|---|---|---|
| @angular/platform-server npm |
|
|
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.27, 21.2.19, and 22.0.7, a Cross-Site Scripting (XSS) vulnerability exists in @angular/platform-server's DOM emulation dependency (domino) when serializing the content of fallback raw-content elements (<iframe>, <noembed>, <noframes>, and <noscript>). This issue is fixed in versions 20.3.27, 21.2.19, and 22.0.7.
From the CVE record · GitHub_M
@angular/platform-server is vulnerable to cross-site scripting when its DOM emulation dependency serializes the content of fallback raw-content elements: <iframe>, <noembed>, <noframes>, or <noscript>. An attacker may exploit this serialization to cause cross-site scripting. The input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers using npm @angular/platform-server in versions >=22.0.0-next.0 <22.0.7, >=21.0.0-next.0 <21.2.19, >=20.0.0-next.0 <20.3.27, or <=19.2.25 should check their deployments.