Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Jsen Project | Jsen | All versions |
References
- https://github.com/bugventure/jsen/blob/master/lib/jsen.js%23L875Broken Link
- https://snyk.io/vuln/SNYK-JS-JSEN-1014670ExploitThird Party Advisory
- https://github.com/bugventure/jsen/blob/master/lib/jsen.js%23L875Broken Link
- https://snyk.io/vuln/SNYK-JS-JSEN-1014670ExploitThird Party Advisory
FAQ
What is CVE-2020-7777?
CVE-2020-7777 is a vulnerability with a CVSS score of 7.2 (HIGH). 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 ...
How severe is CVE-2020-7777?
CVE-2020-7777 has been rated HIGH with a CVSS base score of 7.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2020-7777?
Check the references section above for vendor advisories and patch information. Affected products include: Jsen Project Jsen.