Composer leaks contents of tokens configured as GitHub OAuth tokens
damienwebdev
62 points
26 comments
May 13, 2026
Related Discussions
Found 5 related stories in 89.4ms across 8,303 title embeddings via pgvector HNSW
- The Vercel breach: OAuth attack exposes risk in platform environment variables queenelvis · 299 pts · April 21, 2026 · 55% similar
- Grafana says stolen GitHub token allowed attackers to download its codebase p_stuart82 · 14 pts · May 18, 2026 · 55% similar
- Lovable leaks source code, secrets, chats for projects created before Nov 2025 Tiberium · 14 pts · April 20, 2026 · 55% similar
- Megalodon: Mass GitHub Repo Backdooring via CI Workflows Sudhanshu2310 · 14 pts · May 21, 2026 · 52% similar
- Tell HN: GitHub might have been leaking your webhook secrets. Check your emails. ssiddharth · 24 pts · April 14, 2026 · 51% similar
Discussion Highlights (7 comments)
damienwebdev
I was the reporter on this one. If you have Github Actions in your organization, disable them immediately if you're unsure which version of composer your Github Actions run.
Normal_gaussian
GHA have always been a PITA for any serious DevOps; it's quite clear they were designed to integrate in 7 lines of code and then tell everyone who complains that they're doing it wrong. This does not surprise me.
esafak
The title suggests it is a Github issue but really it is https://github.com/composer/composer no? I would edit the title for clarity.
euph0ria
What is the security implication for private repos?
h1fra
the title is incorrect; it's not a github error but php composer's github action. cc @dang before people freak out
ShowalkKama
I may be silly but why would you ever want to validate the structure of an opaque authentication key? Couldn't you just hit an harmless endpoint (e.g. /rate_limit) to see if it returns 401 or not?
micksmix
This is also a good reminder to scan CI logs, not just source code. Shameless plug: I work on Kingfisher, an Apache 2.0 OSS secret scanner and validator written in Rust, that can also map blast radius and revoke many creds: < https://github.com/mongodb/kingfisher > It can scan repos, history, and artifacts and validate many findings against provider APIs, as well as revoke many exposed tokens directly from the CLI. Also generates a blast-radius/access-map view so you can see what a leaked credential could reach. Install: brew install kingfisher # or uv tool install kingfisher-bin Scan a local path: kingfisher scan /path/to/scan --access-map --view-report Or scan a GitHub/GitLab repo directly: kingfisher scan https://github.com/path/to/repo.git --access-map --view-report