Inclusion of Functionality from Untrusted Control Sphere Affecting @openai/codex package, versions <0.9.0


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-OPENAICODEX-10945018
  • published25 Jul 2025
  • disclosed25 Jul 2025
  • creditUnknown

Introduced: 25 Jul 2025

NewCVE-2025-54558  (opens in a new tab)
CWE-829  (opens in a new tab)

How to fix?

Upgrade @openai/codex to version 0.9.0 or higher.

Overview

@openai/codex is a

OpenAI Codex CLI

Lightweight coding agent that runs in your terminal

Affected versions of this package are vulnerable to Inclusion of Functionality from Untrusted Control Sphere due to auto-approving ripgrep execution even when the --pre, --hostname-bin, --search-zip, or -z flags are used. An attacker can execute unauthorized commands by leveraging these flags to trigger unintended command execution.

CVSS Base Scores

version 4.0
version 3.1