Skip to content

Security: bundled node_modules/ in brainstorming scripts is a supply chain attack risk #688

Closed

Description

@RomarQ

The skills/brainstorming/scripts/ directory bundles node_modules/ directly in the repository (~4.6 MB). This is a supply chain security risk:

  • Vendored dependencies bypass npm audit and automated vulnerability scanning (e.g., Dependabot, Socket)
  • Malicious code injected into a dependency would persist undetected in the git history
  • Reviewing dependency updates via git diff is impractical, a single package update can touch hundreds of files
  • Users cloning the repo inherit whatever was committed, with no lockfile verification

Activity

  1. obra commented on Mar 12, 2026

    @obra
    Owner

    The problem with not bundling deps is that it's a pretty catastrophic UX for many users. But you're right that we shouldn't need to distribute that much vendored code.

    5.0.2, just released, replaces it all with a bespoke server that implements what we need and nothing more in zero-dep node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions