CVE-2026-50171
Medium · 6.1CVSS
6.1
EPSS
0.3%
Published
Jun 22, 2026
CISA due date
—
The record
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.0-rc.2, 21.2.15, 20.3.22, and 19.2.23, 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. This vulnerability is fixed in 22.0.0-rc.2, 21.2.15, 20.3.22, and 19.2.23.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @angular/common | 0 | No fix |
| npm | @angular/common | 19.0.0-next.0 | 19.2.23 |
| npm | @angular/common | 20.0.0-next.0 | 20.3.22 |
| npm | @angular/common | 21.0.0-next.0 | 21.2.15 |
| npm | @angular/common | 22.0.0-next.0 | 22.0.0-rc.2 |
Related vulnerabilities
- GHSA-p3vc-36g9-x9gr @angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo) Same vulnerability
- CVE-2026-50170 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- CVE-2026-54268 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- CVE-2026-54266 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- GHSA-48r7-hpm6-gfxm @angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate) Also affects @angular/common
- GHSA-39pv-4j6c-2g6v @angular/common: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to… Also affects @angular/common
- GHSA-q6f4-qqrg-jv6x @angular/common: Information Leak via Default Caching of Credentialed Requests in… Also affects @angular/common
- GHSA-58c5-g7wp-6w37 Angular is Vulnerable to XSRF Token Leakage via Protocol-Relative URLs in Angular HTTP… Also affects @angular/common