Vulnerability GHSA-p3vc-36g9-x9gr

Medium Risk
MEDIUM RISK
CVSS Score: 6.1
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
4 months ago
June 15, 2026 at 04:52 PM UTC
@angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)
0.0.0-0 - 19.2.22 and 20.0.0-next.0 - 20.3.21 and 21.0.0-next.0 - 21.2.14 and 22.0.0-next.0 - 22.0.0-rc.1
0.0.0-0 - 19.2.22 and 20.0.0-next.0 - 20.3.21 and 21.0.0-next.0 - 21.2.14 and 22.0.0-next.0 - 22.0.0-rc.1

Summary

@angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)

Details

A Denial of Service (DoS) vulnerability exists in the @angular/common package of Angular. The formatNumber function, which is also utilized by DecimalPipe, PercentPipe, and CurrencyPipe, does not properly validate the upper bounds of the digitsInfo parameter. Specifically, the minimum and maximum fraction digits parsed from the digitsInfo string (e.g., 1.2-4) are converted to integers and used without limits.

When parsing a maliciously crafted digitsInfo string with excessively large fraction digit values (e.g., 1.200000000-200000000), the internal roundNumber function attempts to pad the digits array to match the requested fraction size. This results in an unbounded loop that repeatedly pushes elements into an array.

Impact

Successful exploitation of this vulnerability allows an attacker to trigger resource exhaustion, leading to a Denial of Service (DoS):

  • Server-Side Rendering (SSR): In applications using SSR (e.g., @angular/ssr), an attacker can crash the Node.js server process due to a JavaScript heap out of memory error. This affects the availability of the application for all users.
  • Client-Side Rendering (CSR): In standard client-side applications, the unbounded loop will block the main thread, freezing the user's browser tab and making it unresponsive.

Attack Preconditions

For this vulnerability to be exploitable, the following conditions must be met:

  1. Vulnerable Component Usage: The application must use Angular's number formatting utilities, such as the formatNumber function directly, or via template pipes (DecimalPipe, PercentPipe, CurrencyPipe).
  2. Attacker-Controlled Parameter: The digitsInfo parameter passed to these utilities must be customizable or directly controlled by untrusted user input (e.g., parsed from query parameters, user preference settings, or API responses that accept user-defined formatting options). If digitsInfo is trusted or limited to a known, defined range for its value, the vulnerability is not exploitable by external attackers.

Patches

  • 22.0.0-rc.2
  • 21.2.15
  • 20.3.22
  • 19.2.23

Credits

This vulnerability was discovered and reported by CodeMender from Google DeepMind.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Medium Risk
7 hours ago
@angular/common: XSRF Token Leakage via URL Parsing Discrepancy in Angular HTTP Client (Incomplete fix for CVE-2025-66035)
0.0.0-0 - 19.2.25 and 20.0.0 - 20.3.33 and 21.0.0 - 21.0.2 GHSA-jfgx-762w-99vr
0.0.0-0 - 19.2.25 and 20.0.0 - 20.3.33 and 21.0.0 - 21.0.2 GHSA-jfgx-762w-99vr
Medium Risk
1 month ago
Angular: Information Leak via `HttpTransferCache` Bypass When Using `withRequestsMadeViaParent`
0.0.0-0 - 19.2.25 and 20.0.0 - 20.3.27 and 21.0.0 - 21.2.19 and 22.0.0 - 22.1.0 GHSA-p297-fm68-3q8c
0.0.0-0 - 19.2.25 and 20.0.0 - 20.3.27 and 21.0.0 - 21.2.19 and 22.0.0 - 22.1.0 GHSA-p297-fm68-3q8c
High Risk
2 months ago
Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning
0.0.0-0 - 20.3.26 and 21.0.0-next.0 - 21.2.18 and 22.0.0-next.0 - 22.0.1 GHSA-jhpw-976m-542j
0.0.0-0 - 20.3.26 and 21.0.0-next.0 - 21.2.18 and 22.0.0-next.0 - 22.0.1 GHSA-jhpw-976m-542j
High Risk
4 months ago
@angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate)
0.0.0-0 - 20.3.24 and 21.0.0-next.0 - 21.2.16 and 22.0.0-next.0 - 22.0.0 GHSA-48r7-hpm6-gfxm
0.0.0-0 - 20.3.24 and 21.0.0-next.0 - 21.2.16 and 22.0.0-next.0 - 22.0.0 GHSA-48r7-hpm6-gfxm
Medium Risk
4 months ago
@angular/common: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to Cross-Request Data Leakage and State Poisoning
0.0.0-0 - 20.3.24 and 21.0.0-next.0 - 21.2.16 and 22.0.0-next.0 - 22.0.0 GHSA-39pv-4j6c-2g6v
0.0.0-0 - 20.3.24 and 21.0.0-next.0 - 21.2.16 and 22.0.0-next.0 - 22.0.0 GHSA-39pv-4j6c-2g6v
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
4 months ago
June 15, 2026 at 04:52 PM UTC
Fixed (19.2.23)
4 months ago
May 27, 2026 at 10:48 PM UTC
Fixed (20.3.22)
4 months ago
May 27, 2026 at 10:55 PM UTC
Fixed (21.2.15)
4 months ago
May 28, 2026 at 04:51 PM UTC
Fixed (22.0.0-rc.2)
4 months ago
May 28, 2026 at 05:01 PM UTC
Last Modified
1 month ago
September 10, 2026 at 03:51 AM UTC