{"id":"CVE-2026-50171","published":"2026-06-22T15:49:51Z","modified":"2026-06-23T16:02:07Z","title":"Angular: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)","vendor":"angular","product":"angular","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00256,"percentile":0.17541,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-834","name":"Excessive Iteration"}],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-p3vc-36g9-x9gr","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":3.51},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular","versions":[">= 22.0.0-next.0, < 22.0.0-rc.2",">= 21.0.0-next.0, < 21.2.15",">= 20.0.0-next.0, < 20.3.22",">= 19.0.0-next.0, < 19.2.23","<= 18.2.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T14:16:53.849153Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/common","vulnerableRanges":[">=22.0.0-next.0, <22.0.0-rc.2",">=20.0.0-next.0, <20.3.22",">=19.0.0-next.0, <19.2.23","<=18.2.14",">=21.0.0-next.0, <21.2.15"],"patched":["22.0.0-rc.2","20.3.22","19.2.23","21.2.15"],"from":["GHSA-p3vc-36g9-x9gr"],"provenance":"source"}],"summary":{"text":"The flaw is an unbounded fraction-digits value in the formatNumber function of the @angular/common package in Angular, which is also used by DecimalPipe, PercentPipe and CurrencyPipe, where the minimum and maximum fraction digits parsed from the digitsInfo string are used without upper limits. An attacker who can supply a crafted digitsInfo value with very large fraction digits can trigger an unbounded loop that exhausts memory and causes a denial of service, requiring only network access to the application and no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:54Z"},"euvd":{"id":"EUVD-2026-38298","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-66035","published":"2025-11-26","fixed":"21.0.1","kev":false,"link":{"from":"CVE-2025-66035","to":"CVE-2026-50171","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"20.3.14","toFixed":"20.3.22","daysApart":208},{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"19.2.16","toFixed":"19.2.23","daysApart":208}]}},{"cve":"CVE-2026-111753","published":"2026-11-05","fixed":"21.0.3","kev":false},{"cve":"CVE-2026-50170","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false},{"cve":"CVE-2026-50171","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false},{"cve":"CVE-2026-54266","published":"2026-06-22","fixed":"22.0.1","kev":false,"link":{"from":"CVE-2026-50171","to":"CVE-2026-54266","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"21.2.15","toFixed":"21.2.17","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"20.3.22","toFixed":"20.3.25","daysApart":0}]}},{"cve":"CVE-2026-54268","published":"2026-06-22","fixed":"22.0.1","kev":false,"link":{"from":"CVE-2026-50171","to":"CVE-2026-54268","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"21.2.15","toFixed":"21.2.17","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"20.3.22","toFixed":"20.3.25","daysApart":0}]}},{"cve":"CVE-2026-68945","published":"2026-08-03","fixed":"22.0.2","kev":false}],"package":"npm:@angular/common"}}