Skip to content
Advisory Intermediate

GHSL-2025-082: Unauthorized code execution in ag-grid

The performance workflow in ag-grid's latest branch checks out untrusted code from a pull request and then runs a local action from that same checkout, allowing an attacker to execute arbitrary code. This code runs with write permissions for pull requests and issues and has access to secrets, so an attacker could exfiltrate those secrets.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

The performance workflow in the ag-grid/ag-grid project’s latest branch is vulnerable to unauthorized code execution due to the insecure checkout of untrusted code in GitHub Actions, potentially exposing secrets and compromising the privileged context.

m-y-mo, 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 workflow checks out code from an untrusted pull request and then executes a local action from that checkout, so attacker-controlled code runs in a privileged context.

Impact

This could lead to code execution in a high-privileged context and exfiltration of secrets such as Slack and Jira tokens.

What the attacker needed

Ability to open a pull request; workflow triggered by issue_comment

The fix

The issue was fixed by requiring approval for external forked pull requests.

How it was found

  1. Create a pull request that modifies the local action file `.github/actions/setup-nx` with arbitrary code.
  2. Trigger the performance workflow, which checks out the pull request branch.
  3. The workflow runs the modified local action, executing the attacker's code.

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.

A GitHub Actions workflow is an automated script that runs when something happens, like a comment on a pull request. This workflow downloaded code from a pull request and then ran a helper script from that same downloaded code, so someone could put their own malicious script in the pull request. Because the workflow had special permissions and secret tokens, the attacker could steal those secrets.

More by m-y-mo

View all

64 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.