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
1.89% (77th 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-9794094
  • published23 Apr 2025
  • disclosed10 Feb 2024

Introduced: 10 Feb 2024

CVE-2024-21490  (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.

This affects versions of the package angular from 1.3.0. A regular expression used to split the value of the ng-srcset directive is vulnerable to super-linear runtime due to backtracking. With large carefully-crafted input, this can result in catastrophic backtracking and cause a denial of service.

Note:

This package is EOL and will not receive any updates to address this issue. Users should migrate to @angular/core.

CVSS Base Scores

version 3.1