PT-2020-19786 · Jsen · Jsen
Published
2020-11-23
·
Updated
2022-02-10
·
CVE-2020-7777
CVSS v3.1
7.2
High
| Vector | AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
jsen versions all
Description
This issue affects the jsen package, allowing an attacker to run arbitrary JavaScript code on the victim machine if they can control the schema file. The required field of the schema is not properly sanitized, and the resulting string is passed to a
Function.apply(), leading to Arbitrary Code Execution. There is no mention of the risks of untrusted schema files in the module description and README file.Recommendations
As a temporary workaround, consider disabling the use of untrusted schema files until a patch is available.
Restrict access to the
Function.apply() function to minimize the risk of exploitation.
Avoid using the required field in the schema definition until the issue is resolved.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Jsen