Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @angular/common
  4. ›
  5. CVE-2026-54268

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

June 15, 2026

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

References

  • github.com/advisories/GHSA-48r7-hpm6-gfxm
  • github.com/angular/angular/commit/eeb03f4ea310e2e51ba5d53a421ec7b418e186cd
  • github.com/angular/angular/pull/69197
  • github.com/angular/angular/security/advisories/GHSA-48r7-hpm6-gfxm
  • nvd.nist.gov/vuln/detail/CVE-2026-54268

Code Behaviors & Features

Detect and mitigate CVE-2026-54268 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 19.2.25, all versions starting from 20.0.0-next.0 before 20.3.25, all versions starting from 21.0.0-next.0 before 21.2.17, all versions starting from 22.0.0-next.0 before 22.0.1

Fixed versions

  • 20.3.25
  • 21.2.17
  • 22.0.1

Solution

Upgrade to versions 20.3.25, 21.2.17, 22.0.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/@angular/common/CVE-2026-54268.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:42 +0000.