Advisory

GHSA-5jv7-2mjm-h6qj

Details, part 2 of 2. The advisory

Details

If this helper is not intended to be public, also consider adding a package exports map that exposes only supported public API paths.

Affected Package/Versions

  • Repository: MervinPraison/PraisonAI
  • Ecosystem: npm
  • Package: praisonai
  • Component: TypeScript utility tools helper src/praisonai-ts/src/tools/utility-tools.ts
  • Published dist path: node_modules/praisonai/dist/tools/utility-tools.js
  • Latest npm package validated: 1.7.1
  • Current origin/main validated: 1ad58ca02975ff1398efeda694ea2ab78f20cf3e
  • src/praisonai-ts/package.json at origin/main: praisonai 1.7.1

Suggested affected range:

npm:praisonai >= 1.5.1, <= 1.7.1

All published npm 1.x versions were swept locally:

  • 1.0.0 through 1.5.0: dist/tools/utility-tools.js was not present in the tested package.
  • 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0, 1.7.0, and 1.7.1: vulnerable.

The npm package has no exports map and ships dist in its files list, so the affected helper is importable as a package subpath:

const { shell } = require("praisonai/dist/tools/utility-tools.js");

The root package entry point does not appear to re-export this helper directly. This report is scoped to the shipped npm subpath and the TypeScript source that generates it.

Advisory History

Visible PraisonAI advisories and prior submissions were checked. The closest known issues are adjacent but distinct:

  • GHSA-vjv9-7m7j-h833 covers npm TypeScript SandboxExecutor.allowedCommands in src/cli/features/sandbox-executor.ts, where a caller-supplied allowlist is checked before spawn("sh", ["-c", command]).
  • This report covers npm TypeScript utility-tools.shell() in src/tools/utility-tools.ts, where a built-in "safe read-only commands" allowlist is checked before child_process.exec(command).
  • Fixing only SandboxExecutor leaves this helper unchanged.
  • The public Python/PyPI command-injection advisories cover different packages, files, and execution paths, such as Python execute_command, run_python(), memory hooks, and subprocess sandbox code.

This is a sibling-callsite variant of the same mature allowlist/shell-parser class, but it is not the same function, policy surface, affected version range, or shipped import path as the prior npm SandboxExecutor advisory.

Sources & licences