CVE-2023-26118 angular vulnerable to regular expression denial of service via the <input type="url"> element

Medium 5.3 Published Updated

An attacker can cause a denial of service in applications using Angular by submitting a crafted URL input that triggers catastrophic backtracking in regular expressions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-26118?

CVE-2023-26118 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 30 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of the package angular from 1.4.9 are vulnerable to Regular Expression Denial of Service (ReDoS) via the <input type="url"> element due to the usage of an insecure regular expression in the input[url] functionality. Exploiting this vulnerability is possible by a large carefully-crafted input, which can result in catastrophic backtracking.

Weakness: CWE-1333

Which versions are affected by CVE-2023-26118?

2 open source packages ship an affected version, including angular. It affects 2 products.

PackageAffectedFixed in
angular npmAll versions to 1.8.3None
angular npmAll versions to 1.8.3None

Products include Angularjs Angularjs, Fedoraproject Fedora.

How do I fix CVE-2023-26118?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-26118 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26118 exists.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-26118, GHSA-qwqh-hm9m-p5hr, MINI-h8w3-f45v-j5hh, ROOT-APP-NPM-CVE-2023-26118, UBUNTU-CVE-2023-26118.

Is CVE-2023-26118 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free