Quick answers
- Is This vulnerability exploited in the wild?
- No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
- How severe is This vulnerability?
- Informational severity, published 5 June 2019.
- Which products and versions are affected?
- dot (npm) all versions up to 1.1.2.
- Is there a fix for This vulnerability?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is This vulnerability attacked?
- It is attacked over the network or with local access, in a software library.
- Am I affected?
- Check whether you run dot (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.
Technical details
The vulnerability exists in the template compilation process of the dot library (CWE-77: Improper Neutralization of Special Elements used in a Command). All versions up to and including 1.1.2 are affected. An attacker can inject arbitrary commands that will be executed during template compilation if they can control template input or exploit a prototype pollution vulnerability to alter object prototypes. The attack requires either the ability to provide or influence template code, or the ability to trigger prototype pollution in the consuming application. Successful exploitation results in arbitrary command execution in the context of the Node.js process.
Affected products
- npm dot all versions up to 1.1.2
Timeline
- 2019-06-05: disclosed
- 2019-06-05: advisory