Quick answers
- Is CVE-2025-59532 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-59532 being exploited in the wild.
- How severe is CVE-2025-59532?
- Medium severity, with a CVSS score of 4, published 19 September 2025.
- Which products and versions are affected?
- @openai/codex (npm) SEMVER:introduced=0.2.0,fixed=0.39.0; OpenAI Codex IDE Extension 0.4.11 and earlier.
- Is there a fix for CVE-2025-59532?
- Yes. @openai/codex (npm): upgrade to 0.39.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2025-59532 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2025-59532?
- Check whether you run @openai/codex (npm) or OpenAI Codex IDE Extension at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @openai/codex (npm): upgrade to 0.39.0 or later
npm install @openai/codex@0.39.0
Technical details
The vulnerability is a path validation error (CWE-20) in Codex CLI's sandbox configuration logic. The sandbox was designed to restrict file operations and command execution to a specific workspace folder; however, a bug allowed the sandbox to treat model-generated working directories as the sandbox root, including paths outside the user's starting session directory. This bypasses the intended workspace boundary. The attack requires low privileges (user interaction, passive) and network access. An attacker can achieve arbitrary file writes and command execution with the permissions of the Codex process. The issue does not affect the network-disabled sandbox restriction. Codex CLI 0.39.0 and IDE Extension 0.4.12 contain fixes that canonicalize and validate sandbox boundaries based on the user's session start directory.
Affected products
- OpenAI Codex 0.2.0 to 0.38.0
- OpenAI Codex IDE Extension 0.4.11 and earlier
Identifiers
- CVE-2025-59532
- GHSA-w5fx-fh39-j5rw
Timeline
- 2025-09-19: disclosed: Public advisory GHSA-w5fx-fh39-j5rw published
- 2025-09-19: patched: Codex CLI 0.39.0 released with sandbox boundary fix
- 2025-09-19: patched: Codex IDE Extension 0.4.12 released with sandbox boundary fix