CVE-2026-27938 WPGraphQL Repo Vulnerable to Command Injection via Unsanitized GitHub Actions Expression in Release Workflow

High 7.7 Published Updated

Attackers can execute arbitrary commands on CI runners by injecting shell code into pull request bodies during release workflows.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-27938?

CVE-2026-27938 is a high-severity command injection vulnerability in wp-graphql, published on 26 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

WPGraphQL provides a GraphQL API for WordPress sites. Prior to version 2.9.1, the `wp-graphql/wp-graphql` repository contains a GitHub Actions workflow (`release.yml`) vulnerable to OS command injection through direct use of `${{ github.event.pull_request.body }}` inside a `run:` shell block. When a pull request from `develop` to `master` is merged, the PR body is injected verbatim into a shell command, allowing arbitrary command execution on the Actions runner. Version 2.9.1 contains a fix for the vulnerability.

Weakness: CWE-78

Which versions are affected by CVE-2026-27938?

How do I fix CVE-2026-27938?

No fix has been published for CVE-2026-27938 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-27938 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-27938 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-4q9f-mjxf-rx7x.

Is CVE-2026-27938 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free