You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Security] Script injection and wildcard permissions in need-triage-label.yml #1601
In .github/workflows/need-triage-label.yml, the untrusted input ${{ github.event.issue.user.login }} was previously interpolated directly into an inline bash run: block, creating a potential script injection vector. Additionally, matching was unanchored and job permissions were not explicitly constrained to least privilege.
Proposed Fix
Pass github.event.issue.user.login securely through env: OPENER_LOGIN.
Enforce exact line match via grep -qxF "$OPENER_LOGIN".
As noted in the description and reference history above, I already reported this issue and submitted the complete fix via PR #1600 a week ago, which implements these exact changes and includes verification.
PR #1600 is already open and awaiting review from maintainers, so PR #1604 appears to be a duplicate.
@maintainers — PR #1600 is ready for review whenever you have bandwidth. Thanks!
So the issue is still unaddressed on main: need-triage-label.yml still interpolates github.event.issue.title / author-controlled text into gh invocations in a pull_request_target-adjacent workflow and still grants the job write-scoped permissions without an explicit permissions: block.
What I need to proceed: assignment to this issue (per CONTRIBUTING.md). Once assigned I will reopen PR #1604 — the branch with the fix is ready: env:-sanitized inputs (OPENER_LOGIN etc.), grep -qxF exact-match CODEOWNERS check, and permissions: contents: read / issues: write at job level. I will also address the commit-signature check so the "Verify commit signatures" job passes.
If @mertcano prefers to take it, happy to step back provided someone with a live (non-closed) PR can actually land the fix — the security finding has now been public for 10 days with two bot-closed PRs and no assignee.
Activity
feafel commentedon Oct 11, 2026
Hi, I've prepared a fix for this issue in PR (will open shortly). The fix:
${{ github.event.issue.user.login }}securely throughenv: OPENER_LOGINgrep -qxF "$OPENER_LOGIN"for exact whole-line fixed-string matching (no regex)contents: read,issues: write)Could you please assign this issue to me so I can submit the PR?
mertcano commentedon Oct 11, 2026
Hi @feafel,
As noted in the description and reference history above, I already reported this issue and submitted the complete fix via PR #1600 a week ago, which implements these exact changes and includes verification.
PR #1600 is already open and awaiting review from maintainers, so PR #1604 appears to be a duplicate.
@maintainers — PR #1600 is ready for review whenever you have bandwidth. Thanks!
feafel commentedon Oct 15, 2026
Quick status note for maintainers (and a correction to the comment above):
There is currently no open PR for this issue — both attempts were auto-closed by the workflow bot:
So the issue is still unaddressed on
main:need-triage-label.ymlstill interpolatesgithub.event.issue.title/ author-controlled text intoghinvocations in apull_request_target-adjacent workflow and still grants the job write-scoped permissions without an explicitpermissions:block.What I need to proceed: assignment to this issue (per CONTRIBUTING.md). Once assigned I will reopen PR #1604 — the branch with the fix is ready:
env:-sanitized inputs (OPENER_LOGINetc.),grep -qxFexact-match CODEOWNERS check, andpermissions: contents: read / issues: writeat job level. I will also address the commit-signature check so the "Verify commit signatures" job passes.If @mertcano prefers to take it, happy to step back provided someone with a live (non-closed) PR can actually land the fix — the security finding has now been public for 10 days with two bot-closed PRs and no assignee.
mertcano commentedon Oct 15, 2026
Could you please assign this issue to me so I can reopen and properly submit the fix?
romac commentedon Nov 9, 2026
Thanks for the report. We are looking into this.