Vulnerability GHSA-48r7-hpm6-gfxm

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
4 months ago
June 15, 2026 at 05:24 PM UTC
@angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate)
0.0.0-0 - 20.3.24 and 21.0.0-next.0 - 21.2.16 and 22.0.0-next.0 - 22.0.0
0.0.0-0 - 20.3.24 and 21.0.0-next.0 - 21.2.16 and 22.0.0-next.0 - 22.0.0

Summary

@angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate)

Details

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).

Impact

1. Server-Side Rendering (SSR)

In Angular applications that leverage Server-Side Rendering, an attacker can supply a malicious payload with an excessively long date format string. Processing this on the server causes high CPU usage and triggers a JavaScript heap out of memory crash, rendering the application unavailable to all users.

2. Client-Side Rendering (CSR)

In standard client-side applications, executing the vulnerable function with an excessively long format string blocks the browser's main thread, causing the browser tab to freeze and become completely unresponsive.

Patched Versions

  • 22.0.1
  • 21.2.17
  • 20.3.25

Attack Preconditions

For this vulnerability to be exploitable, both of the following conditions must be met:

  1. Vulnerable Component Usage: The application must format dates using the formatDate utility or the DatePipe.
  2. Attacker-Controlled Parameter: The date format string passed to these utilities must be customizable or directly controlled by untrusted user input (e.g., parsed from query parameters, user preferences, or API responses).

If the date format is hardcoded (e.g., 'mediumDate', 'shortTime', or static strings) or properly validated to be within a reasonable length limit, the application is not vulnerable.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Medium Risk
7 hours ago
@angular/common: XSRF Token Leakage via URL Parsing Discrepancy in Angular HTTP Client (Incomplete fix for CVE-2025-66035)
0.0.0-0 - 19.2.25 and 20.0.0 - 20.3.33 and 21.0.0 - 21.0.2 GHSA-jfgx-762w-99vr
0.0.0-0 - 19.2.25 and 20.0.0 - 20.3.33 and 21.0.0 - 21.0.2 GHSA-jfgx-762w-99vr
Medium Risk
1 month ago
Angular: Information Leak via `HttpTransferCache` Bypass When Using `withRequestsMadeViaParent`
0.0.0-0 - 19.2.25 and 20.0.0 - 20.3.27 and 21.0.0 - 21.2.19 and 22.0.0 - 22.1.0 GHSA-p297-fm68-3q8c
0.0.0-0 - 19.2.25 and 20.0.0 - 20.3.27 and 21.0.0 - 21.2.19 and 22.0.0 - 22.1.0 GHSA-p297-fm68-3q8c
High Risk
2 months ago
Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning
0.0.0-0 - 20.3.26 and 21.0.0-next.0 - 21.2.18 and 22.0.0-next.0 - 22.0.1 GHSA-jhpw-976m-542j
0.0.0-0 - 20.3.26 and 21.0.0-next.0 - 21.2.18 and 22.0.0-next.0 - 22.0.1 GHSA-jhpw-976m-542j
Medium Risk
4 months ago
@angular/common: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to Cross-Request Data Leakage and State Poisoning
0.0.0-0 - 20.3.24 and 21.0.0-next.0 - 21.2.16 and 22.0.0-next.0 - 22.0.0 GHSA-39pv-4j6c-2g6v
0.0.0-0 - 20.3.24 and 21.0.0-next.0 - 21.2.16 and 22.0.0-next.0 - 22.0.0 GHSA-39pv-4j6c-2g6v
Medium Risk
4 months ago
@angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)
0.0.0-0 - 19.2.22 and 20.0.0-next.0 - 20.3.21 and 21.0.0-next.0 - 21.2.14 and 22.0.0-next.0 - 22.0.0-rc.1 GHSA-p3vc-36g9-x9gr
0.0.0-0 - 19.2.22 and 20.0.0-next.0 - 20.3.21 and 21.0.0-next.0 - 21.2.14 and 22.0.0-next.0 - 22.0.0-rc.1 GHSA-p3vc-36g9-x9gr
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
4 months ago
June 15, 2026 at 05:24 PM UTC
Fixed (20.3.25)
4 months ago
June 10, 2026 at 07:22 PM UTC
Fixed (21.2.17)
4 months ago
June 10, 2026 at 07:54 PM UTC
Fixed (22.0.1)
4 months ago
June 10, 2026 at 08:16 PM UTC
Last Modified
1 month ago
September 10, 2026 at 03:50 AM UTC