Summary
CVE-2026-101895 is a high-severity denial-of-service vulnerability (uncontrolled resource consumption / infinite loop) in Angular server-side rendering (SSR). Attacker-controlled HTML containing an incomplete DOCTYPE that ends with whitespace can trap the server in an infinite loop. The CVE record gives a CVSS score of 8.7.
Technical details
- Root cause: when SSR processes HTML with an incomplete DOCTYPE ending in whitespace, the parser fails to advance and repeatedly handles the EOF marker (CWE-835, CWE-400).
- Trigger conditions: the SSR process must parse attacker-controlled HTML containing the malformed DOCTYPE.
- Attack vector: network, with no authentication or user interaction required.
- Impact: a Node.js SSR worker is consumed at full CPU and the event loop is starved. Concurrent and subsequent requests stop being served (availability impact).
Affected software
- Angular /
@angular/platform-server19.2.25 and earlier - 20.0.0 up to (but not including) 20.3.31
- 21.0.0 up to (but not including) 21.2.23
- 22.0.0 up to (but not including) 22.1.6
Severity
CVSS v4.0 base score 8.7 (High): CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N. This is the vector published in the CVE record. A CVSS v3.1 vector was not found in the sources reviewed.
Mitigation and recommended actions
- Immediate: upgrade to Angular /
@angular/platform-server20.3.31, 21.2.23 or 22.1.6, depending on your major version. - The CVE record lists no fixed version for the 19.x line and earlier (affected through 19.2.25). Move those applications to a fixed release line.
- Applications that do not use Angular SSR are not described as affected in the sources reviewed. Review internet-facing SSR deployments first.

