CVE-2021-23771: Sandbox escape in notevil and argencoders-notevil
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.51994%
CWE
Published
3/18/2022
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
notevil | npm | <= 1.3.3 | |
argencoders-notevil | npm | <= 2.5.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient sandbox isolation in the code evaluation mechanism. The PoC demonstrates prototype pollution via Object.defineProperty targeting the proto chain within safeEval's execution context. As the primary sandboxed evaluation function, safeEval's failure to properly restrict access to the global prototype chain (despite being marketed as a 'safe' evaluator) directly enables this attack. The vulnerability is explicitly tied to sandbox escape attempts through prototype manipulation, which would be mediated through the core evaluation function.