8.2 HIGH
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Attack Requirement (AT): Present (P)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Vulnerable System Impact Confidentiality (VC): None (N)
- Vulnerable System Impact Integrity (VI): None (N)
- Vulnerable System Impact Availability (VA): High (H)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): None (N)
- Subsequent System Impact Availability (SA): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Attack Requirement (MAT): Present (P)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Vulnerable System Impact Confidentiality (MVC): None (N)
- Modified Vulnerable System Impact Integrity (MVI): None (N)
- Modified Vulnerable System Impact Availability (MVA): High (H)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): Negligible (N)
- Modified Subsequent System Impact Availability (MSA): Negligible (N)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
- Exploit Maturity (E): Not Defined (X)
Activity log
- Created suggestion
Angular: Denial of Service (DoS) via OOM in Date Formatting (formatDate)
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.1, 21.2.17, and 20.3.25, 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). This vulnerability is fixed in 22.0.1, 21.2.17, and 20.3.25.
References
-
https://github.com/angular/angular/security/advisories/GHSA-48r7-hpm6-gfxm x_refsource_CONFIRM
-
https://github.com/angular/angular/pull/69197 x_refsource_MISC
Affected products
- ==>= 22.0.0-next.0 < 22.0.1
- ==<= 19.2.25
- ==>= 21.0.0-next.0 < 21.2.17
- ==>= 20.0.0-next.0 < 20.3.25
Matching in nixpkgs
pkgs.angular-language-server
LSP for angular completions, AOT diagnostic, quick info and go to definitions
pkgs.nodePackages.%40angular%2Fcli
None
pkgs.nodePackages_latest.%40angular%2Fcli
None
pkgs.vscode-extensions.angular.ng-template
Editor services for Angular templates
pkgs.vimPlugins.nvim-treesitter-parsers.angular
Tree-sitter grammar for angular
-
nixos-unstable 0.0.0+rev=f0d0685
- nixpkgs-unstable 0.0.0+rev=f0d0685
- nixos-unstable-small 0.0.0+rev=f0d0685
-
nixos-26.05 0.0.0+rev=f0d0685
- nixos-26.05-small 0.0.0+rev=f0d0685
- nixpkgs-26.05-darwin 0.0.0+rev=f0d0685
Package maintainers
-
@tricktron Thibault Gagnaux <tgagnaux@gmail.com>
-
@ratsclub Victor Freire <victor@freire.dev.br>