CVE-2020-7777 Information
Jun 07, 2022
cve
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 Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Reference
https://github.com/bugventure/jsen/blob/master/lib/jsen.js%23L875 https://snyk.io/vuln/SNYK-JS-JSEN-1014670
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction Required
HIGH
Scope
NONE
Confidentiality Impact
UNCHANGED
Integrity Impact
HIGH
Availability Impact
HIGH
Base Score
HIGH
Base Severity
7.2
Share on: