Quick answers
- Is CVE-2017-16111 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2017-16111 being exploited in the wild.
- How severe is CVE-2017-16111?
- Low severity, with a CVSS score of 3, published 24 July 2018.
- Which products and versions are affected?
- content (npm) SEMVER:introduced=0,fixed=3.0.7.
- Is there a fix for CVE-2017-16111?
- Yes. content (npm): upgrade to 3.0.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2017-16111 attacked?
- It is attacked over the network.
- Am I affected by CVE-2017-16111?
- Check whether you run content (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- content (npm): upgrade to 3.0.7 or later
npm install content@3.0.7
Technical details
The vulnerability is a regular expression denial of service (ReDoS) in the content npm package, affecting versions prior to 3.0.7. The root cause is an uncontrolled resource consumption weakness (CWE-400) in the regular expressions used to parse Content-Type and Content-Disposition HTTP headers. An unauthenticated attacker on the network can send specially crafted header values that cause catastrophic backtracking in the regex engine, leading to excessive CPU consumption and denial of service. The attack requires no user interaction and the vulnerable component is directly exposed to any HTTP client. A patch is available in version 3.0.7 and later.
Affected products
- npm content all versions prior to 3.0.7
Identifiers
- CVE-2017-16111
- GHSA-x6wp-rfwh-hcx7
Timeline
- 2018-07-24: disclosed
- 2018-07-24: patched: Fixed in version 3.0.7