Vulnerability · Published Jun 22, 2026 · Assigned by GitHub_M

CVE-2026-54268Angular: Denial of Service (DoS) via OOM in Date Formatting (formatDate)

High 8.2

In plain English

A high-severity uncontrolled resource consumption in angular from angular. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.2High
Exploit odds (30 days)0.6%top 51.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.1, 21.2.17, and 20.3.25, a Denial of Service (DoS) vulnerability exists in the @angular/common package of the Angular framework. The formatDate function, which is also utilized by the standard Angular DatePipe, does not properly limit or validate the length of the format parameter. When parsing a maliciously crafted, excessively long date format string (e.g., a repeating pattern or very large string), the internal parser splits the string iteratively using a regular expression loop. This results in uncontrolled resource consumption (high CPU utilization and excessive memory allocations), leading to a Denial of Service (DoS). This vulnerability is fixed in 22.0.1, 21.2.17, and 20.3.25.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12angular.jsno fix listedDEBIAN-CVE-2026-54268
Debian:13angular.jsno fix listedDEBIAN-CVE-2026-54268
Ubuntu:22.04:LTSangular.jsno fix listedUBUNTU-CVE-2026-54268
Ubuntu:24.04:LTSangular.jsno fix listedUBUNTU-CVE-2026-54268
Ubuntu:25.10angular.jsno fix listedUBUNTU-CVE-2026-54268
Ubuntu:26.04:LTSangular.jsno fix listedUBUNTU-CVE-2026-54268
Ubuntu:26.10angular.jsno fix listedUBUNTU-CVE-2026-54268
npm@angular/common20.3.25GHSA-48r7-hpm6-gfxm
npm@angular/commonno fix listedGHSA-48r7-hpm6-gfxm
npm@angular/common21.2.17GHSA-48r7-hpm6-gfxm
npm@angular/common22.0.1GHSA-48r7-hpm6-gfxm

Affected products (as reported)

VendorProductVersions
angular angular >= 22.0.0-next.0 < 22.0.1>= 21.0.0-next.0 < 21.2.17>= 20.0.0-next.0 < 20.3.25<= 19.2.25

Weakness: CWE-400, CWE-1333 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References