CVE-2026-27938

WPGraphQL Repo Vulnerable to Command Injection via Unsanitized GitHub Actions Expression in Release Workflow

Published Feb 26, 2026 CVSS 3.1 · 7.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in the WPGraphQL release workflow permits the content of a pull request body to be inserted directly into a shell command. This results in OS command injection, allowing an attacker to execute arbitrary commands on the Actions runner when a pull request from develop to master is merged. The outcome is a full compromise of the Actions runner and, by extension, the potentially sensitive environment in which the workflow runs.

Affected Systems

The vulnerability exists in the wp-graphql/wp-graphql repository before version 2.9.1. Any WordPress site using WPGraphQL that relies on the existing GitHub Actions release workflow and has not applied the 2.9.1 update is affected.

Risk and Exploitability

The CVSS score of 7.7 indicates high severity, yet the EPSS score is under 1% and the flaw is not listed in the CISA KEV catalog, suggesting a low to moderate exploitation probability. The likely attack vector involves an attacker submitting a crafted pull request to the develop branch that merges into master, thereby injecting malicious code into the release workflow. Once the merge occurs, the Actions runner executes the unsanitized payload, resulting in arbitrary command execution. This scenario would require the attacker to have sufficient privilege to submit pull requests. The overall risk reflects a significant potential impact balanced against a relatively low exploitation likelihood.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the WPGraphQL repository to version 2.9.1 or later, which removes the vulnerable expression from the release.yml workflow.
  • Alter the release.yml workflow to sanitize or delete any use of ${ github.event.pull_request.body } before passing it to shell commands.
  • Audit existing and newly created GitHub Actions workflows for similar unsanitized expressions and apply appropriate input validation or escaping to prevent future injection vulnerabilities.

Generated by OpenCVE AI on April 17, 2026 at 14:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Wpgraphql
Wpgraphql wpgraphql
Vendors & Products Wordpress
Wordpress wordpress
Wpgraphql
Wpgraphql wpgraphql
Type Values Removed Values Added
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.
Title WPGraphQL Repo Vulnerable to Command Injection via Unsanitized GitHub Actions Expression in Release Workflow
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 26, 2026, 7:22 PM
Reserved
Feb 25, 2026, 3:11 AM
Status
Deferred
Published
Feb 26, 2026, 2:16 AM
Modified
Jun 17, 2026, 10:27 AM