CVE-2020-7777

Arbitrary Code Execution

Published Nov 23, 2020 CVSS 3.1 · 7.2 High EPSS 2.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-1210 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.
Github GHSA Github GHSA GHSA-vm64-cfqx-3698 Code Injection in jsen
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 17, 2024, 1:01 AM
Reserved
Jan 21, 2020, 12:00 AM
Status
Modified
Published
Nov 23, 2020, 4:15 PM
Modified
Jun 17, 2026, 3:25 AM