Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Angular SSR endpoint passing user input to formatDate/DatePipe
-
DeliveryCraft request with extremely long repeating format string
-
ExploitSubmit HTTP request to SSR route
-
ExecutionRegex split loop consumes CPU and heap
-
PersistNode process throws heap out of memory
-
ImpactSSR application unavailable to all users
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target Angular application (a) calls formatDate from @angular/common or renders a value through DatePipe, AND (b) passes the format parameter from untrusted input such as a query string, request body, user-preferences blob, or upstream API response. Hardcoded format tokens like 'mediumDate', 'shortTime', or any static literal are NOT exploitable, and applications that already length-validate the format string under 256 characters are also unaffected. Impact severity further depends on rendering mode: SSR yields a server-wide OOM crash; CSR only freezes the victim's own browser tab. No authentication is required by the format API itself (CVSS PR:N), but the AT:P attack requirement in the 4.0 vector reflects this non-default coding pattern. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H) correctly captures an unauthenticated, network-reachable availability-only impact with an attack requirement (AT:P) reflecting the precondition that the format string must be attacker-controlled, which is exactly what the advisory's preconditions section states. There is no EPSS score, no CISA KEV listing, and no public exploit code identified at time of analysis, so real-world risk is concentrated on Angular SSR deployments that bind formatDate/DatePipe inputs to untrusted parameters - a non-default coding pattern. Where that pattern exists the impact is severe (full SSR process OOM, denial of service to all users), but most Angular apps hardcode format tokens like 'mediumDate', which substantially limits the exposed population versus what the 8.2 score alone suggests. |
| Exploit ScenarioDerived | An attacker identifies an Angular SSR endpoint that renders a date using a format string sourced from a query parameter, user preference, or API response - for example ?dateFormat=. They send a single HTTP request with format=yyyyyyyy… repeated tens of thousands of times; the server-side formatDate parser loops over the regex, exhausts the Node heap, and the SSR process crashes with JavaScript heap out of memory, denying service to every concurrent user until the process restarts. No public exploit identified at time of analysis, but the regression test in the patch (formatDate(date, 'y'.repeat(257), …)) is a working proof of the trigger. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 22, 2026
Denial of service in @angular/common's formatDate function (and the DatePipe that wraps it) allows remote attackers to exhaust CPU and memory by supplying an excessively long, attacker-controlled date format string. On Server-Side Rendered Angular apps this triggers a JavaScript heap out-of-memory crash that takes down the application for all users; on Client-Side Rendered apps it freezes the victim's browser tab. No public exploit identified at time of analysis, but the upstream patch and regression tests are public in angular/angular#69197.
Earlier versions of this analysis (2)
Denial of service in @angular/common allows remote unauthenticated attackers to exhaust CPU and memory by supplying an excessively long date format string to the formatDate function or DatePipe. Server-side rendered Angular applications can be crashed with a JavaScript heap out-of-memory error, while client-side applications experience browser tab freezes; no public exploit identified at time of analysis, though the upstream patch and PR diff are publicly visible.
Denial of service in Angular's @angular/common package allows attackers to crash server-side rendered applications or freeze client browsers by supplying excessively long date format strings to the formatDate function or DatePipe. The vulnerable parser splits input iteratively via regex, causing uncontrolled CPU and memory consumption (CWE-400) that triggers JavaScript heap-out-of-memory crashes on Node SSR servers and main-thread freezes in browsers. No public exploit identified at time of analysis, but the fix is publicly documented in upstream commit eeb03f4 and Angular maintainers have released patched versions 22.0.1, 21.2.17, and 20.3.25.
RemediationAI
Vendor-released patches are available - upgrade @angular/common to 22.0.1, 21.2.17, or 20.3.25 depending on which release line is in use, per GHSA-48r7-hpm6-gfxm. Applications still on Angular 19.x or earlier have no upstream fix and should plan a major-version upgrade; in the interim, the most effective compensating control is to ensure no untrusted input ever reaches the format argument of formatDate or DatePipe - either hardcode format tokens (e.g. 'mediumDate', 'shortTime') or validate length to under 256 characters before passing user-supplied values, mirroring the upstream MAX_DATE_FORMAT_LENGTH guard. For SSR deployments, additionally enforce request size and timeout limits at the reverse proxy and consider Node.js worker process recycling so a single OOM does not take down all concurrent users; the trade-off of strict length validation is that legitimate custom long format strings will be rejected, which is acceptable since real format strings are short.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in packages/common/src/i18n/format_date.ts within the @angular/common npm package. The internal date-format parser iteratively splits the supplied format string with a regular expression in a loop, so input size drives parser work non-linearly and triggers uncontrolled resource consumption - the CWE-400 root cause. The fix introduces a MAX_DATE_FORMAT_LENGTH constant of 256 and an assertValidDateFormatLength guard that throws a RuntimeError (NG02300 SUSPICIOUS_DATE_FORMAT) before parsing begins. Affected CPEs are pkg:npm/@angular_common across the 19.x, 20.x, 21.x and 22.x release lines.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable SSR endpoint, no authentication or user interaction, low complexity once a user-controlled format sink exists; availability-only impact via OOM, no confidentiality or integrity effect.
Primary rating from Vendor (https://github.com/angular/angular).
CVSS VectorVendor: https://github.com/angular/angular
Lifecycle Timeline
3DescriptionCVE.org
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:
- Vulnerable Component Usage: The application must format dates using the
formatDateutility or theDatePipe. - 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.*
Executive ViewAI
Angular web applications using @angular/common contain a denial-of-service vulnerability (CVE-2026-54268) that allows attackers to crash server-side rendered instances entirely or freeze user browsers by submitting malicious date format strings. This availability risk impacts all users on vulnerable systems and requires immediate patching to prevent production outages.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-38273
GHSA-48r7-hpm6-gfxm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB