{"answers":{"affected":"2 open source packages ship an affected version, including praisonai.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-57138 exists.","fix":"Upgrade praisonai to 1.7.2 or later.","what":"CVE-2026-57138 is a critical code injection vulnerability in MervinPraison PraisonAI, published on 15 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-57138 and fix it if it is affected.\n\nWhat it is: CVE-2026-57138 is a critical code injection vulnerability in MervinPraison PraisonAI, published on 15 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-57138 exists.\n\nAffected packages and fixed versions:\n- praisonai (npm): affected from 1.4.0; fixed in 1.7.2\n- praisonai (npm): affected from 1.4.0; fixed in 1.7.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-57138/ (Markdown: https://insights.sbomify.com/CVE-2026-57138/index.md)","id":"CVE-2026-57138","markdown":"https://insights.sbomify.com/CVE-2026-57138/index.md","name":"CVE-2026-57138","record":{"aliases":["GHSA-vmmj-pfw7-fjwp"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"PraisonAI npm package","requires_auth":"low_privilege","summary":"Attackers can escape the codeMode sandbox in PraisonAI to execute arbitrary code, read secrets, and modify files on the host system.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"description":"PraisonAI is a multi-agent teams system. From 1.4.0 until 1.7.2, codeMode in src/praisonai-ts/src/tools/builtins/code-mode.ts executes untrusted JavaScript with new Function() inside with(sandbox) and relies on a small source-code blocklist plus shadowed process and require properties. Code can use ({}).constructor.constructor to recover the real Function constructor, obtain process and process.mainModule.require, and reach host filesystem and subprocess APIs despite the advertised sandbox. Attackers who control codeMode input can read secrets, modify files, execute commands, or exhaust the host process. This issue is fixed in version 1.7.2.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PraisonAI codeMode sandbox escape via Function constructor","id":"CVE-2026-57138","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"PraisonAI MCPServer exposes unauthenticated HTTP tools/call","id":"CVE-2026-57139"},"packages":[{"ecosystem":"npm","fixed":["1.7.2"],"introduced":["1.4.0"],"last_affected":[],"package":"praisonai","purl":null,"source":"GHSA-vmmj-pfw7-fjwp"},{"ecosystem":"npm","fixed":["1.7.2"],"introduced":["1.4.0"],"last_affected":[],"package":"praisonai","purl":"pkg:npm/praisonai","source":"GHSA-vmmj-pfw7-fjwp"}],"prev":{"headline":"PraisonAI AgentLoop onToolCall approval runs after tool execution","id":"CVE-2026-57137"},"products":["PraisonAI"],"published":"2026-09-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-17","vendors":["MervinPraison"]},"summary":"Attackers can escape the codeMode sandbox in PraisonAI to execute arbitrary code, read secrets, and modify files on the host system.","url":"https://insights.sbomify.com/CVE-2026-57138/"}