Inefficient Regular Expression Complexity Affecting angular.js package, versions <1.8.3-1ubuntu0.25.04.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
4.93% (92nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2504-ANGULARJS-9812665
  • published26 Apr 2025
  • disclosed1 May 2022

Introduced: 1 May 2022

CVE-2022-25844  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Ubuntu:25.04 angular.js to version 1.8.3-1ubuntu0.25.04.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream angular.js package and not the angular.js package as distributed by Ubuntu. See How to fix? for Ubuntu:25.04 relevant fixed versions and status.

The package angular after 1.7.0 are 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.

CVSS Base Scores

version 3.1