codex-setup@1.0.3
OpenSSF/OSV malicious advisory
published · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-18060 confirms this npm version as malicious.
OpenSSF/OSV advisory MAL-2026-18060 confirms this npm version as malicious.
LPM's AI review found this version suspicious. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
The package is not automatically activated during npm installation, but its explicit setup command silently configures broad Codex access and disables approvals. This warrants a warning for agent capability abuse.
Where they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
package.json1 findingbin/cli.js6 findingspackage.json exposes bin/cli.js as a command and declares no npm install lifecycle hook.
package.jsonView on unpkg · L5bin/cli.js targets the user's Codex configuration, falling back to ~/.codex/config.toml.
bin/cli.jsView on unpkg · L183The setup writes approval_policy = never and sandbox_mode = danger-full-access into Codex configuration.
bin/cli.jsView on unpkg · L237This report applies to codex-setup@1.0.3.
See all versions of codex-setup for other recorded verdicts.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.
It changes persisted Codex state to full access and changes heartbeat thread permissions to danger-full-access with approvals disabled.
bin/cli.jsView on unpkg · L373It changes persisted Codex state to full access and changes heartbeat thread permissions to danger-full-access with approvals disabled.
bin/cli.jsView on unpkg · L377It adds Downloads, the user home, and the filesystem root to local project roots.
bin/cli.jsView on unpkg · L398Running the CLI calls the global state update after writing the configuration; main runs when the file is invoked directly.
bin/cli.jsView on unpkg · L641