Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 75%

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

0
High
Published: 06/15/2026 (06/15/2026, 17:24:52 UTC)
Source: GCVE Database
Product: @angular/common

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

npmghsa
@angular/common
Affected versions
>=22.0.0-next.0 <22.0.1
npmghsa
@angular/common
Affected versions
>=21.0.0-next.0 <21.2.17
npmghsa
@angular/common
Affected versions
>=20.0.0-next.0 <20.3.25
npmghsa
@angular/common
Affected versions
<=19.2.25

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

AILast updated: 07/16/2026, 10:53:43 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses