CVE-2018-7651 Regular Expression Denial of Service in ssri
An attacker can cause a denial of service in the ssri Node.js library by providing a long base64 hash string in strict mode.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-7651?
CVE-2018-7651 is a medium-severity denial of service vulnerability in n/a, published on 4 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
index.js in the ssri module before 5.2.2 for Node.js is prone to a regular expression denial of service vulnerability in strict mode functionality via a long base64 hash string.
Weakness: CWE-400
Which versions are affected by CVE-2018-7651?
2 open source packages ship an affected version, including ssri. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ssri npm | All versions | 5.2.2 |
ssri npm | All versions | 5.2.2 |
Products include Ssri Project Ssri.
How do I fix CVE-2018-7651?
Upgrade ssri to 5.2.2 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 CVE-2018-7651 being exploited?
There is no known exploitation of CVE-2018-7651 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2018-7651, GHSA-325j-24f4-qv5x, UBUNTU-CVE-2018-7651.