Skip to content
Access control Advisory Advanced

GHSL-2026-204: Artifact poisoning in the SPIFFE SPIRE reviewer assignment workflow

A privileged GitHub Actions workflow downloaded an artifact from a fork-controlled workflow and extracted it into the same workspace as trusted scripts, allowing the artifact to overwrite a helper module. An external pull request author could then execute arbitrary JavaScript in the privileged job with issue and pull-request write permissions.

jarlob Follow

Originally disclosed on GitHub Security Lab

The assign-reviewer-review-apply workflow downloads and extracts an artifact produced by a fork-controlled workflow directly into a workspace containing trusted executable code. An external pull request author can place a replacement .github/workflows/scripts/assignreviewerlib.js in that artifact.

jarlob, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The apply workflow extracted an untrusted artifact into the same directory as trusted checked-out scripts without isolating the extraction path, allowing the artifact to overwrite a helper module that was imported before validation.

Impact

An external fork pull request author could execute arbitrary JavaScript in the privileged apply job and use its authenticated GitHub client to modify upstream issues and pull requests, subject to any GitHub Actions approval required for the fork run.

What the attacker needed

Fork pull request; comment-only review by author; GitHub Actions approval for fork run

The fix

The issue was fixed by merging a pull request.

How it was found

  1. Modify the capture workflow in a fork pull request to upload an artifact named assign-reviewer-review containing a malicious helper script.
  2. Submit a comment-only review on your own pull request to trigger the modified capture workflow.
  3. The successful capture run automatically triggers the privileged apply workflow.
  4. The apply workflow checks out trusted scripts, then extracts the attacker artifact over the same workspace.
  5. The github-script step imports the replaced helper and supplies its authenticated client before validating artifact data.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

GitHub Actions workflows can be triggered by events like a pull request review. A workflow from a fork can upload files as an 'artifact', and a separate privileged workflow later downloads that artifact. Here, the download overwrote a trusted script with an attacker's version, so the attacker's code ran with extra permissions.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by jarlob

View all

192 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.