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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published: 2020-11-23T15:40:15.585078Z

Updated: 2024-09-17T01:01:16.176Z

Reserved: 2020-01-21T00:00:00

Link: CVE-2020-7777

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2020-11-23T16:15:13.603

Modified: 2020-12-03T20:48:30.380

Link: CVE-2020-7777

cve-icon Redhat

No data.