CVE-2020-7777

HIGH

jsen - Code Execution via Untrusted Schema required Field

Title source: manual
STIX 2.1

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.

References (2)

Core 2
Core References
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-JSEN-1014670

Scores

CVSS v3 7.2
EPSS 0.0203
EPSS Percentile 78.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Details

Status published
Products (2)
jsen_project/jsen
npm/jsen 0npm
Published Nov 23, 2020
Tracked Since Feb 18, 2026