CVE-2026-54268
High · 7.5CVSS
7.5
EPSS
0.6%
Published
Jun 22, 2026
CISA due date
—
The record
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
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @angular/common | 0 | No fix |
| npm | @angular/common | 20.0.0-next.0 | 20.3.25 |
| npm | @angular/common | 21.0.0-next.0 | 21.2.17 |
| npm | @angular/common | 22.0.0-next.0 | 22.0.1 |
Related vulnerabilities
- GHSA-48r7-hpm6-gfxm @angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate) Same vulnerability
- CVE-2026-50170 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- CVE-2026-50171 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- CVE-2026-54266 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- GHSA-39pv-4j6c-2g6v @angular/common: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to… Also affects @angular/common
- GHSA-p3vc-36g9-x9gr @angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo) Also affects @angular/common
- GHSA-q6f4-qqrg-jv6x @angular/common: Information Leak via Default Caching of Credentialed Requests in… Also affects @angular/common
- GHSA-58c5-g7wp-6w37 Angular is Vulnerable to XSRF Token Leakage via Protocol-Relative URLs in Angular HTTP… Also affects @angular/common