ModerateVulnerabilityGHSA-qx4v-6gc5-f2vvPublished 20 Jun 2019
Regular Expression Denial of Service
Your version
Affected releases · esm
- 3.x3.0.0 – 3.0.84Fixed in 3.1.0
- 2.x and older1.0.0 – 2.2.0No fix, no longer updated
On 3.x, the newest line:
npm install esm@3.1.0Every release on a timeline
3.x
Affected
3.0.0 – 3.0.84
85 releases
Fixed
3.1.0 – 3.2.25
31 releases, latest
2.x
Affected
2.0.0 – 2.2.0
14 releases
1.x
Affected
1.0.0 – 1.0.9
10 releases
What happens
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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.