phpatch.com

← phpatch.com home

WPGraphQL: Contributor can publish and modify posts without the required capabilities via updatePost

Medium · CVSS 5.4 · fetched 2026-10-22

## Summary WPGraphQL 2.19.0 contains an authorization bypass in the `updatePost` mutation. An authenticated WordPress Contributor can change one of their own draft posts to `PUBLISH` despite lacking the `publish_posts` capability. The same mutation also permits the Contributor to modify their own previously published posts despite lacking `edit_published_posts` and failing WordPress's object-level `edit_post` capability check. This bypasses the standard WordPress editorial workflow. The WordPress REST API correctly rejects the equivalent operations for the same user.

Our analysis

Who is affected

This advisory is PHP-relevant but does not enumerate interpreter branches: it concerns a PHP application or component — the product named in the summary above. The affected versions and the fixed release to move to are stated in the remediation and the source advisory.

Exploitation status

Not KEV-listed in this record. In the source data for this record (retrieved 2026-10-22), the vulnerability was not listed in the CISA Known Exploited Vulnerabilities catalog. Read that narrowly: it means no catalogued exploitation at retrieval time, not that exploitation is impossible or unreported elsewhere.

Patch priority

Patch in the next regular maintenance cycle. The drivers for this record: the source rates it Medium; CVSS 5.4; it affects a PHP application component rather than the interpreter. No emergency handling is indicated by this record; schedule it, and re-check sooner if its KEV or severity status changes.

How this verdict is derived: from the fields on this page — the source advisory's severity and CVSS score, CISA KEV listing status and the affected-branch data — as retrieved 2026-10-22. It is a triage aid, not a substitute for the source advisory.

Remediation

No patched version is listed in the advisory yet — follow the source advisory for mitigations and updates.

Affected PHP branches

See the source advisory.

Check your site

Source: GitHub Global Security Advisories (Composer ecosystem) · retrieved 2026-10-22T10:19:14-04:00 · https://github.com/advisories/GHSA-5mmc-8pc9-wggg

← All threats