GHSA-qx4v-6gc5-f2vv Regular Expression Denial of Service

Not scored Published

An attacker can cause a denial of service in applications using the esm library by triggering an infinite loop via crafted input.

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

What is GHSA-qx4v-6gc5-f2vv?

GHSA-qx4v-6gc5-f2vv is a denial of service vulnerability in esm, published on 20 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Regular Expression Denial of Service vulnerability was discovered in esm before 3.1.0. The issue is that esm's find-indexes is using the unescaped identifiers in a regex, which, in this case, causes an infinite loop.

Which versions are affected by GHSA-qx4v-6gc5-f2vv?

2 open source packages ship an affected version, including esm.

PackageAffectedFixed in
esm npmAll versions3.1.0
esm npmAll versions3.1.0

How do I fix GHSA-qx4v-6gc5-f2vv?

Upgrade esm to 3.1.0 or later.

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

Is GHSA-qx4v-6gc5-f2vv being exploited?

There is no known exploitation of GHSA-qx4v-6gc5-f2vv in the wild and no public exploit code.

Sources

Is GHSA-qx4v-6gc5-f2vv in your software?

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

Check your SBOMs for free