{"cve":"CVE-2026-50171","nvd":{"published":"2026-06-22T18:16:42.533","modified":"2026-07-09T15:41:41.163","status":"Analyzed","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.","cvss_v4":{"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","score":8.2},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-400","CWE-834"],"references":["https://github.com/angular/angular/security/advisories/GHSA-p3vc-36g9-x9gr"],"products":["angular:angular"],"source":"nvd","synced_at":"2026-10-19T22:39:28.638635428+00:00"},"epss":{"cve":"CVE-2026-50171","score":0.00256,"percentile":0.17257,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p3vc-36g9-x9gr","url":"https://osv.dev/vulnerability/GHSA-p3vc-36g9-x9gr","summary":"@angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)","modified":"2026-09-10T03:51:09.185864306Z","packages":[{"ecosystem":"npm","name":"@angular/common","purl":"pkg:npm/%40angular/common","ranges":[">=22.0.0-next.0 <22.0.0-rc.2"],"fixed":["22.0.0-rc.2"]},{"ecosystem":"npm","name":"@angular/common","purl":"pkg:npm/%40angular/common","ranges":[">=20.0.0-next.0 <20.3.22"],"fixed":["20.3.22"]},{"ecosystem":"npm","name":"@angular/common","purl":"pkg:npm/%40angular/common","ranges":[">=19.0.0-next.0 <19.2.23"],"fixed":["19.2.23"]},{"ecosystem":"npm","name":"@angular/common","purl":"pkg:npm/%40angular/common","ranges":["<=18.2.14"],"fixed":[]},{"ecosystem":"npm","name":"@angular/common","purl":"pkg:npm/%40angular/common","ranges":[">=21.0.0-next.0 <21.2.15"],"fixed":["21.2.15"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}