angular vulnerable to regular expression denial of service (ReDoS)
Published 3 May 2022 · Updated 10 Sept 2026
Affected package
- Affected
- >=1.7.0
- Fixed in
- No fix released
Details
AngularJS lets users write client-side web applications. The package angular after 1.7.0 is vulnerable to Regular Expression Denial of Service (ReDoS) by providing a custom locale rule that makes it possible to assign the parameter in posPre: ' '.repeat() of NUMBER_FORMATS.PATTERNS[1].posPre with a very high value.
Note: 1. This package has been deprecated and is no longer maintained. 2. The vulnerable versions are 1.7.0 and higher.
Is GHSA-m2h2-264f-f486 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected angular, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-25844
- Packagegithub.com/angular/angular.js
- Linklists.debian.org/debian-lts-announce/2025/07/msg00005.html
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2WUSPYOTOMAZPDEFPWPSCSPMNODRDKK3
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7LNAKCNTVBIHWAUT3FKWV5N67PQXSZOO
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2WUSPYOTOMAZPDEFPWPSCSPMNODRDKK3
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7LNAKCNTVBIHWAUT3FKWV5N67PQXSZOO
- Linksecurity.netapp.com/advisory/ntap-20220629-0009
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2772736
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBANGULAR-2772738
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2772737
- Linksnyk.io/vuln/SNYK-JS-ANGULAR-2772735
- Linkstackblitz.com/edit/angularjs-material-blank-zvtdvb
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.