Security mailing lists by PureSourceCode

CVE-2025-8022

HIGH 8.8CVSS 3.1

bun vulnerable to OS Command Injection

Rejected reason: Bun Shell does not invoke /bin/sh, or any other interpreter, for template literals created with the $ function. Each ${…} interpolation is treated as a single argument. The security responsibility for this usage pattern lies with the calling application, which must ensure the sanitization and validation of any untrusted arguments before passing them to the executed commands. Therefore, the potential for command injection is not a flaw within Bun itself; rather, it is an argument injection that is contingent on its implementation by the consuming application.

Published
23 Jul 2025
Last modified
11 Aug 2025
Assigned by
report@snyk.io
NVD status
Rejected
Weakness
CWE-78
Also known as
GHSA-4j66-8f4r-3pjx
Sources
NVDJSONOSV GHSA-4j66-8f4r-3pjxJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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
OSV GitHub CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm bun <= 1.1.39

References

History

  • 25 Nov 2026 20:58 UTC · NVD: first stored (published 23 Jul 2025)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 23 Jul 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.