Skip to content

security: [HIGH] curl|bash pattern without signature verification in install.sh #2463

@louisgv

Description

@louisgv

Issue

The bun installer is executed via curl -fsSL https://bun.sh/install | bash without any signature verification or checksum validation.

Locations

  • sh/cli/install.sh:227
  • sh/cli/install.sh:238

Impact

Supply chain attack if bun.sh is compromised or DNS is hijacked. An attacker could execute arbitrary code during the spawn installation process.

Recommendation

  1. Download the bun installer to a temp file
  2. Verify signature or checksum against a known-good value
  3. Then execute

Alternatively, use bun's official installation method that includes verification, or document this risk in the security policy.

Code Context

curl -fsSL https://bun.sh/install | bash

-- security/shell-scanner

Metadata

Metadata

Assignees

No one assigned

    Labels

    in-progressIssue is being actively worked onsafe-to-workSecurity triage: safe for automated processing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions