Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @capgo/cli
  4. ›
  5. GHSA-8mpm-q7mh-8fvh

GHSA-8mpm-q7mh-8fvh: Capgo CLI: symlink-following local secret writes enable arbitrary file overwrite + world-readable credentials (0600 missing)

March 18, 2026

The Capgo CLI writes sensitive local files (.capgo API key file and build credentials JSON) using unsafe file operations that follow symlinks and do not enforce safe permissions. This allows an attacker-controlled repository to cause arbitrary file overwrite on the developer’s machine when the developer runs the CLI inside that repo. Additionally, global build credentials are written with world-readable permissions (664), exposing signing materials on shared systems.

References

  • github.com/Cap-go/CLI/commit/b8aa5ccbfad2d7f10f3cdbc00910d4a6aab026b2
  • github.com/Cap-go/capgo
  • github.com/Cap-go/capgo/security/advisories/GHSA-8mpm-q7mh-8fvh
  • github.com/advisories/GHSA-8mpm-q7mh-8fvh

Code Behaviors & Features

Detect and mitigate GHSA-8mpm-q7mh-8fvh with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 7.84.6

Fixed versions

  • 7.84.6

Solution

Upgrade to version 7.84.6 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-276: Incorrect Default Permissions
  • CWE-377: Insecure Temporary File
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

npm/@capgo/cli/GHSA-8mpm-q7mh-8fvh.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:28 +0000.