CVE-2016-2537 Regular Expression Denial of Service in is-my-json-valid
Remote attackers can cause a denial of service by sending crafted strings that block the event loop in the is-my-json-valid Node.js package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-2537?
CVE-2016-2537 is a high-severity denial of service vulnerability in n/a, published on 23 Feb 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The is-my-json-valid package before 2.12.4 for Node.js has an incorrect exports['utc-millisec'] regular expression, which allows remote attackers to cause a denial of service (blocked event loop) via a crafted string.
Weakness: CWE-20
Which versions are affected by CVE-2016-2537?
2 open source packages ship an affected version, including is-my-json-valid. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
is-my-json-valid npm | All versions | 2.12.4 |
is-my-json-valid npm | All versions | 2.12.4 |
Products include Is My Json Valid Project Is My Json Valid.
How do I fix CVE-2016-2537?
Upgrade is-my-json-valid to 2.12.4 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-2016-2537 being exploited?
There is no known exploitation of CVE-2016-2537 in the wild and no public exploit code.
Sources
Also known as GHSA-f522-ffg8-j8r6.