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, with a CVSS score of 9.8, published 3 September 2020.
- Which products and versions are affected?
- safer-eval (npm) all versions.
- 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.
- Am I affected?
- Check whether you run safer-eval (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
safer-eval contains a sandbox escape vulnerability that allows attackers to break out of the intended execution sandbox and achieve remote code execution. The vulnerability can be triggered by forcing exceptions recursively in evaluated code, which enables access to the underlying process and module system. The attack is network-reachable if the application exposes code evaluation functionality to untrusted input. The vulnerability affects all versions of safer-eval (from 0.0.0 onwards). No patch has been released; the maintainers recommend discontinuing use of the library and switching to an alternative.
Affected products
- npm safer-eval all versions
Timeline
- 2020-09-03: disclosed: GHSA-876r-hj45-fw7g published