GHSA-h6ch-v84p-w6p9 Regular Expression Denial of Service (ReDoS)
An attacker can cause a denial of service in applications using the diff library by providing specially crafted input that triggers excessive regex processing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-h6ch-v84p-w6p9?
GHSA-h6ch-v84p-w6p9 is a denial of service vulnerability in diff, published on 13 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Which versions are affected by GHSA-h6ch-v84p-w6p9?
2 open source packages ship an affected version, including diff.
| Package | Affected | Fixed in |
|---|---|---|
diff npm | All versions | 3.5.0 |
diff npm | All versions | 3.5.0 |
How do I fix GHSA-h6ch-v84p-w6p9?
Upgrade diff to 3.5.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-h6ch-v84p-w6p9 being exploited?
There is no known exploitation of GHSA-h6ch-v84p-w6p9 in the wild and no public exploit code.