@angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate) (CVE-2026-54268)
A Denial of Service (DoS) vulnerability exists in the @angular/common package's formatDate function, which is also used by Angular's DatePipe. The vulnerability arises because the function does not limit or validate the length of the date format string parameter. An attacker can supply an excessively long or crafted format string that causes excessive CPU and memory consumption, leading to application crashes or unresponsive browser tabs. This affects both Server-Side Rendering (SSR) and Client-Side Rendering (CSR) Angular applications if the format string is attacker-controlled. Patched versions include 20.3.25, 21.2.17, and 22.0.1. Applications using hardcoded or validated date formats are not vulnerable.
AI Analysis
Technical Summary
The @angular/common package in Angular versions up to 19.2.25 contains a Denial of Service vulnerability (CVE-2026-54268) in the formatDate function. This function, also used by DatePipe, does not properly limit or validate the length of the format parameter. When processing a maliciously crafted, excessively long date format string, the internal parser enters a resource-intensive loop, causing high CPU usage and excessive memory allocation. This leads to a DoS by crashing server-side rendering applications with JavaScript heap out of memory errors or freezing client-side browser tabs. Exploitation requires attacker control over the date format string passed to these utilities. Patched versions are 20.3.25, 21.2.17, and 22.0.1.
Potential Impact
Exploitation of this vulnerability results in Denial of Service by exhausting CPU and memory resources. On server-side rendered Angular applications, this can cause the server process to crash with out-of-memory errors, making the application unavailable to all users. On client-side rendered applications, it causes the browser tab to freeze and become unresponsive. The impact is high as it affects availability and can be triggered remotely if the date format string is attacker-controlled.
Mitigation Recommendations
A fix is available in Angular versions 20.3.25, 21.2.17, and 22.0.1. Users should upgrade to one of these patched versions to remediate the vulnerability. Additionally, applications should ensure that the date format string passed to formatDate or DatePipe is not attacker-controlled or is properly validated to limit length and complexity. If the format string is hardcoded or validated, the application is not vulnerable.
@angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate) (CVE-2026-54268)
Description
A Denial of Service (DoS) vulnerability exists in the @angular/common package's formatDate function, which is also used by Angular's DatePipe. The vulnerability arises because the function does not limit or validate the length of the date format string parameter. An attacker can supply an excessively long or crafted format string that causes excessive CPU and memory consumption, leading to application crashes or unresponsive browser tabs. This affects both Server-Side Rendering (SSR) and Client-Side Rendering (CSR) Angular applications if the format string is attacker-controlled. Patched versions include 20.3.25, 21.2.17, and 22.0.1. Applications using hardcoded or validated date formats are not vulnerable.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @angular/common package in Angular versions up to 19.2.25 contains a Denial of Service vulnerability (CVE-2026-54268) in the formatDate function. This function, also used by DatePipe, does not properly limit or validate the length of the format parameter. When processing a maliciously crafted, excessively long date format string, the internal parser enters a resource-intensive loop, causing high CPU usage and excessive memory allocation. This leads to a DoS by crashing server-side rendering applications with JavaScript heap out of memory errors or freezing client-side browser tabs. Exploitation requires attacker control over the date format string passed to these utilities. Patched versions are 20.3.25, 21.2.17, and 22.0.1.
Potential Impact
Exploitation of this vulnerability results in Denial of Service by exhausting CPU and memory resources. On server-side rendered Angular applications, this can cause the server process to crash with out-of-memory errors, making the application unavailable to all users. On client-side rendered applications, it causes the browser tab to freeze and become unresponsive. The impact is high as it affects availability and can be triggered remotely if the date format string is attacker-controlled.
Mitigation Recommendations
A fix is available in Angular versions 20.3.25, 21.2.17, and 22.0.1. Users should upgrade to one of these patched versions to remediate the vulnerability. Additionally, applications should ensure that the date format string passed to formatDate or DatePipe is not attacker-controlled or is properly validated to limit length and complexity. If the format string is hardcoded or validated, the application is not vulnerable.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-48r7-hpm6-gfxm
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-54268"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a58b41068715ace43d67d7f
Added to database: 07/16/2026, 10:36:00 UTC
Last enriched: 07/16/2026, 10:53:43 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.