CVE-2020-7777

published 23 Nov 2020 · updated 17 Sep 2024

Arbitrary Code Execution

7.2HighCVSS 7.2EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in unspecified.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<unspecifiedunspecified

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-7777 severity on Zeptric[![CVE-2020-7777](https://zeptric.io/badge/cve/CVE-2020-7777.svg)](https://zeptric.io/cve/CVE-2020-7777)