Advisory

GHSA-4j66-8f4r-3pjx

Also known as: CVE-2025-8022

Summary

bun vulnerable to OS Command Injection

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-07-23 06:33 UTC
Modified
2025-07-23 17:42 UTC

Affected packages and fixes

bun

npm · All systems

Affected

  • introduced 0, last affected 1.1.39 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences