Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-57138
Published:July 20, 2026
Updated:August 27, 2026
The published npm package "praisonai" exports a TypeScript built-in tool named "codeMode". The package describes this tool as executing code in a sandboxed environment, marks its capability as "sandbox: true", and registers it through the public tools facade. The implementation does not create an isolation boundary. It applies a small regular-expression blocklist, sets "process" and "require" to "undefined" inside a plain JavaScript object, and then executes attacker-controlled code with the host process "new Function" constructor: Because this runs in the host V8 context, code inside "codeMode" can use the JavaScript prototype chain to recover the real "Function" constructor: From a normal CommonJS application script, the recovered "process" object exposes "process.mainModule.require". That bypasses the explicit "require('fs')" and "require('child_process')" controls and allows host filesystem access and subprocess execution from code that was supposed to be sandboxed.
Affected Packages
praisonai (NPM):
Affected version(s) >=1.4.0 <1.7.2
Fix Suggestion:
Update to version 1.7.2
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.4
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9.9
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Incomplete List of Disallowed Inputs
Protection Mechanism Failure