npm package report

Is notevil safe?

3 known vulnerabilities, worst severity HIGH.

// reach

3 direct dependencies

1 carry known advisories, worst CRITICAL

1 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

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.

Think a verdict here is wrong? Tell us — we respond within 2 business days.