CVE-2026-50171 Details
Description
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.
A denial-of-service vulnerability has been identified in the @angular/common package, affecting versions 19.0.0-next.0 prior to 19.2.23, 20.0.0-next.0 prior to 20.3.22, 21.0.0-next.0 prior to 21.2.15, and 22.0.0-next.0 prior to 22.0.0-rc.2. The issue arises in the formatNumber function, which is used by DecimalPipe, PercentPipe, and CurrencyPipe. The vulnerability stems from improper validation of the digitsInfo parameter, allowing for the creation of a maliciously crafted digitsInfo string with excessively large fraction digit values. This leads to an unbounded loop in the internal roundNumber function, causing resource exhaustion.
Users can upgrade to Angular versions 22.0.0-rc.2, 21.2.15, 20.3.22, or 19.2.23 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/angular/angular/security/advisories/GHSA-p3vc-36g9-x9gr | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-834 | Excessive Iteration | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| angular angular | <= 18.2.14 >= 19.0.0, < 19.2.23 >= 20.0.0, < 20.3.22 >= 21.0.0, < 21.2.15 22.0.0 next0 22.0.0 next1 22.0.0 next10 22.0.0 next11 22.0.0 next12 22.0.0 next2 22.0.0 next3 22.0.0 next4 22.0.0 next5 22.0.0 next6 22.0.0 next7 22.0.0 next8 22.0.0 next9 22.0.0 rc0 22.0.0 rc1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | Reanalysis | [email protected] |
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 23, 2026 | CVE Modified | CISA-ADP |
| Jun 22, 2026 | New CVE Received | [email protected] |