Skip to content

VNX-GH-008: Excessive token permissions

The token is granted write-all, or write scopes at workflow level that every job inherits.

Updated 02 Nov 2026Checked against cli@24498404a, vdb-sca-match@v0.8.14

write-all grants every scope including actions, packages, pages and id-token. Workflow-level write scopes apply to every job, including jobs that run untrusted code or third-party actions.

Severity Medium
Confidence high
CWE CWE-250, CWE-732
Command vulnetix gha workflows, vulnetix gha audit

Remediation

Use permissions: {} at the workflow level and grant each job only the specific scopes it needs.

Run only this rule

vulnetix gha workflows --rule VNX-GH-008

Scoring

CWSS vector at the rule’s default severity: CWSS:1.0/TI:H/AP:A/AL:A/IC:N/FC:LT/RP:N/RL:A/AV:I/AS:N/IN:A/SC:A/BI:H/DI:M/EX:L/EC:N/P:W. A finding whose severity the repository’s settings moved is scored at its adjusted severity.

All rules: GitHub rules.

Edit this pageSources: vdb-sca-match/ghaudit/rules_workflows.go, cli/internal/ghtasks/docs.go
esc
↑ ↓ move↵ openSearches in your browser. A key like autonomy.max or a code like threshold_required jumps straight to it.