CVE-2026-50556: @angular/platform-server Cross-Site Scripting Vulnerability
HIGHCVE-2026-50556 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @angular/platform-server libraries in the npm ecosystem. The issue involves missing `<noscript>` raw-text serialization escaping leads to cross-site scripting (xss) in angular ssr. Remediation is available by upgrading affected packages to version 22.0.0-rc.2, 21.2.16, 20.3.24, 19.2.25.
CVE-2026-50556 at a Glance
How to Fix CVE-2026-50556
To remediate this vulnerability, upgrade all affected @angular/platform-server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @angular/platform-server@22.0.0-rc.2
npm install @angular/platform-server@21.2.16
npm install @angular/platform-server@20.3.24
npm install @angular/platform-server@19.2.25
npm install @angular/platform-server@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @angular/platform-server
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-50556, inspect your project dependencies using npm:
npm ls @angular/platform-server
Analyze the terminal output to locate any version of @angular/platform-server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 22.0.0-rc.2), your application is affected.
Note: The npm ls @angular/platform-server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @angular/platform-server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-50556 Affected @angular/platform-server Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@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
|
|
References
Frequently Asked Questions
What is CVE-2026-50556?
Which @angular/platform-server versions are affected?
What version fixes CVE-2026-50556?
Is @angular/platform-server affected?
What CWE is associated with CVE-2026-50556?
How can I check npm dependencies for CVE-2026-50556?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gxx4-3xcv-f8qx",
"modified" : "2026-06-15T17:21:03Z",
"published" : "2026-06-15T17:21:03Z",
"aliases" : [ "CVE-2026-50556" ],
"summary" : "@angular/platform-server: Missing `<noscript>` Raw-Text Serialization Escaping leads to Cross-Site Scripting (XSS) in Angular SSR",
"details" : "A Cross-Site Scripting (XSS) vulnerability exists in `@angular/platform-server`'s DOM emulation dependency (`domino`) when serializing the content of `<noscript>` elements.\n\nWhen rendering dynamic text content inside a `<noscript>` element via template bindings (such as `{{ value }}` or `[textContent]`), the template engine expects the browser to render the content safely. Under Server-Side Rendering (SSR), `domino` is configured with scripting enabled, meaning `<noscript>` is treated as a raw-text element.\n\nHowever, `domino`'s serializer completely omitted `<noscript>` from the list of raw-text elements requiring closing-tag escaping during DOM serialization. As a result, any occurrence of `</noscript>` in the bound dynamic text was **never escaped under any circumstances**.\n\nThe unescaped closing tag was serialized directly into the output HTML (e.g. `<noscript></noscript><script>alert(1)</script></noscript>`). When parsed by a browser, it closes the `<noscript>` block early, allowing the injected `<script>` block to execute in the user's browser context, causing same-origin Cross-Site Scripting (XSS).\n\n### Impact\n\nThis 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 a `<noscript>` element. This can lead to session hijacking, credentials theft, unauthorized actions on behalf of users, and defacement.\n\n### Patched Versions\n\n- 22.0.0-rc.2\n- 21.2.16\n- 20.3.24\n- 19.2.25\n\n### Workarounds\n\nIf you cannot immediately update your dependencies, you can:\n\n- Avoid binding user-controlled values inside `<noscript>` elements.\n- Sanitize any user input placed inside `<noscript>` to explicitly strip closing `</noscript>` tags before passing it to the template.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/platform-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "22.0.0-next.0"
}, {
"fixed" : "22.0.0-rc.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/platform-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "21.0.0-next.0"
}, {
"fixed" : "21.2.16"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/platform-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "20.0.0-next.0"
}, {
"fixed" : "20.3.24"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/platform-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "19.0.0-next.0"
}, {
"fixed" : "19.2.25"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/platform-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "18.2.14"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/angular/angular/security/advisories/GHSA-gxx4-3xcv-f8qx"
}, {
"type" : "WEB",
"url" : "https://github.com/angular/angular/issues/68903"
}, {
"type" : "WEB",
"url" : "https://github.com/angular/domino/pull/29"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/angular/angular"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-15T17:21:03Z",
"nvd_published_at" : null
}
}