Skip to content
OpenAdvisories
High · 7.2 CVE-2020-7777 EUVD-2022-1210GHSA-vm64-cfqx-3698

Arbitrary Code Execution

Published Nov 23, 2020 · Updated Sep 17, 2024 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— jsen < unspecified unspecified

Affected packages

EcosystemPackageAffectedFixedRecord
npm jsen <= 0.6.6 — GHSA-vm64-cfqx-3698

References