CVE-2026-101895

Angular SSR: Denial of Service (DoS) via Infinite Loop on Malformed DOCTYPE

Published Oct 14, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.31, 21.2.23, and 22.1.6, the @angular/platform-server DOM emulation parser can enter an infinite synchronous loop when Angular server-side rendering processes attacker-controlled HTML containing an incomplete DOCTYPE that ends with whitespace at end of input. In Domino lib/HTMLParser.js, after_doctype_name_state emits doctype and EOF tokens without advancing nextchar or leaving the fixed-lookahead state, so the scanner repeatedly handles the same EOF marker. A remote unauthenticated attacker can use this condition through server-side HTML parsing paths such as innerHTML binding to consume a Node.js SSR worker at full CPU, starve the event loop, and stop concurrent and subsequent requests. This issue is fixed in versions 20.3.31, 21.2.23, and 22.1.6.

Analysis

AI-generated

Technical impact

An attacker can supply malformed HTML that ends an incomplete DOCTYPE with whitespace to Angular’s server-side rendering engine. The DOM emulation parser in @angular/platform-server then enters an infinite synchronous loop, repeatedly processing the same EOF token. The result is a complete CPU exhaustion of the Node.js SSR worker, starving the event loop and blocking subsequent and concurrent HTTP requests. This vulnerability is a classic input validation flaw and an infinite loop, reflected in CWE‑400 and CWE‑835. It has no remote code execution implications but can crash or heavily degrade application availability.

Affected Systems

The vulnerability affects the Angular platform-server module in all releases prior to 20.3.31, 21.2.23, and 22.1.6. Updating Angular to version 20.3.31 or later (or 21.2.23/22.1.6) eliminates the issue.

Risk and Exploitability

The CVSS score of 8.7 places the flaw in the high severity range, and with an EPSS score of 0.00716—a very low but non‑zero exploitation probability—the nature of the bug—an unbounded loop triggered by unauthenticated input—makes it a realistic DoS vector. The vulnerability is not listed in CISA’s KEV catalog, but a remote attacker can exploit it via any SSR route that parses attacker‑controlled HTML, such as innerHTML bindings. The impact is localized to the owner of the SSR worker, but the full CPU consumption can bring down the entire Node.js application if no worker isolation or load balancing is in place.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Angular to 20.3.31, 21.2.23, or 22.1.6 or later, which patch the parser bug.
  • Sanitize or validate any HTML injected into server‑side rendering paths to reject malformed DOCTYPE declarations before parsing.
  • Deploy resource limits or isolation (e.g., containers or workers with CPU caps) on SSR processes to contain potential CPU‑starving attacks.

Generated by OpenCVE AI on October 15, 2026 at 19:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-f67j-2jqw-jpq7 Angular SSR: Denial of Service (DoS) via Infinite Loop on Malformed DOCTYPE
History
Type Values Removed Values Added
First Time appeared Angular
Angular angular
Angular platform-server
Vendors & Products Angular
Angular angular
Angular platform-server
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.31, 21.2.23, and 22.1.6, the @angular/platform-server DOM emulation parser can enter an infinite synchronous loop when Angular server-side rendering processes attacker-controlled HTML containing an incomplete DOCTYPE that ends with whitespace at end of input. In Domino lib/HTMLParser.js, after_doctype_name_state emits doctype and EOF tokens without advancing nextchar or leaving the fixed-lookahead state, so the scanner repeatedly handles the same EOF marker. A remote unauthenticated attacker can use this condition through server-side HTML parsing paths such as innerHTML binding to consume a Node.js SSR worker at full CPU, starve the event loop, and stop concurrent and subsequent requests. This issue is fixed in versions 20.3.31, 21.2.23, and 22.1.6.
Title Angular SSR: Denial of Service (DoS) via Infinite Loop on Malformed DOCTYPE
Weaknesses CWE-400
CWE-835
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 14, 2026, 5:38 PM
Reserved
Sep 28, 2026, 3:55 PM
Status
Awaiting Analysis
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 16, 2026, 4:00 PM