Read the docs
TI-2020-19713 Aliases GHSA-7r5f-7qr4-pf6q

Sandbox Breakout / Arbitrary Code Execution in notevil

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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.

Why it matters now

Fix Fixed notevil (npm): 1.3.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—notevil (npm)before 1.3.21.3.2Patch availableGHSA-7r5f-7qr4-pf6q
  • notevil (npm) Vendor— Affected before 1.3.2 Fixed in 1.3.2 Patch available GHSA-7r5f-7qr4-pf6q

Remediation

  • Fix · GHSA-7r5f-7qr4-pf6q notevil (npm) Fixed in 1.3.2 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-7r5f-7qr4-pf6q

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences