Skip to content

← Actionable
High, CVSS 7.4withdrawn

bun vulnerable to OS Command Injection

CVE-2025-8022GHSA-4j66-8f4r-3pjx

Withdrawn: the source no longer stands behind this advisory.

What to do

The source withdrew this advisory. Do not act on it without new evidence.

This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.

Affected packages

  • npm bun

    Affected
    <= 1.1.39
    Fixed in
    no fixed version recorded

Sources

Severity and exploitation
Exploitation
No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
CVSS 4.0
7.4 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P · score source
EPSS
No dated EPSS signal available.
Source description

As published by the source; long descriptions are shortened.

All versions of the package bun are vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in the $ shell API due to improper neutralization of user input. An attacker can exploit this by providing specially crafted input that includes command-line arguments or shell metacharacters, leading to unintended command execution.

Dates and revisions
Published by the source
Last modified by the source
Source last checked
  1. Revision 3 · withdrawn ·

    Withdrawn upstream: ghsa record GHSA-4j66-8f4r-3pjx

  2. Revision 2 · amended ·

    Reviewed OSV alias/range/CVSS4 correction; package source scopes and original publication preserved. No customer finding resolved.

  3. Revision 1 · created ·

    Published from osv record GHSA-4j66-8f4r-3pjx

Agent brief

Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.

# Patch Next advisory brief: CVE-2025-8022

Advisory: bun vulnerable to OS Command Injection
IDs: CVE-2025-8022, GHSA-4j66-8f4r-3pjx
Record: https://patchnext.com/advisories/cve-2025-8022 (revision 3, source checked 26 Oct 2026, 17:09 UTC)
Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected.
Severity: High (CVSS 7.4)
Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV.
Vendor response: Vendor response not established. A vendor fix does not mean a deployment is fixed.
Status: WITHDRAWN upstream. Do not act on this record without new evidence.

## Affected components
- npm bun: affected <= 1.1.39

## Suggested inspection (read-only)
- `npm ls bun --all`: lists every installed copy and version, including transitive ones. Run in the project root after `npm ci`.

## Supported action
No complete vendor fix is recorded. Follow the primary source's mitigation guidance and check this record again before closing anything.

## Required regression checks
- Run the test suite and a production build.
- Exercise the features that depend on bun.
- Repeat the inspection and confirm that only fixed versions remain installed.

## Rollback considerations
- Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward.

## Unresolved questions
- Which deployments run an affected version?
- Exploitation status can change. Check again before lowering the priority.
- Mark the work resolved only after the fixed version is verified in production.

## Sources
- Verified: https://osv.dev/vulnerability/GHSA-4j66-8f4r-3pjx (OSV record GHSA-4j66-8f4r-3pjx lists affected ranges: npm bun >=0 <=1.1.39)
- Verified: https://github.com/advisories/GHSA-4j66-8f4r-3pjx (ghsa record GHSA-4j66-8f4r-3pjx is marked withdrawn upstream (as of 2025-08-11T21:15:20Z).)

Commands are suggestions: review each one before running it.

Loading voting…