CVE-2020-7777 Arbitrary Code Execution
HighCVSS 7.2
EPSS 2.1%
- Published
- Updated
- Exploit status
- No public exploit known
Description
This affects all versions of package jsen. If an attacker can control the schema file, it could run arbitrary JavaScript code on the victim machine. In the module description and README file there is no mention about the risks of untrusted schema files, so I assume that this is applicable. In particular the required field of the schema is not properly sanitized. The resulting string that is build based on the schema definition is then passed to a Function.apply();, leading to an Arbitrary Code Execution.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm jsen(npm) | <= 0.6.6 | No fix listed |
| jsen project jsen | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- security.snyk.io
- github.com
- github.com broken-link
- snyk.io exploit third-party-advisory