Skip to content

fix: tighten media item update authorization (GHSA-4h2c-85f8-g3jh) - #4353

Merged
jasonbahl merged 1 commit into
mainfrom
fix/media-item-update-authorization-note
Sep 22, 2026
Merged

jasonbahl merged 1 commit into
mainfrom
fix/media-item-update-authorization-note

Conversation

@jasonbahl

Copy link
Copy Markdown
Collaborator

Follow-up to the fix merged from the temporary private fork for GHSA-4h2c-85f8-g3jh (3dfee8061).

That merge commit doesn't follow Conventional Commits, so release-please ignores it. This PR carries the changelog entry for the fix and adds a note in the code pointing at the advisory, next to the ownership check.

The fix itself is already on main: updateMediaItem now checks the media item's current owner before considering any change of author, requires permission to edit that specific media item, and requires permission to edit the new parent when one is set.

No behavior change here, comments only.

@vercel

vercel Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
wpgraphql-com Skipped Skipped Sep 22, 2026 6:08pm UTC

Request Review

@jasonbahl
jasonbahl merged commit 7a017eb into main Sep 22, 2026
16 checks passed
@jasonbahl
jasonbahl deleted the fix/media-item-update-authorization-note branch September 22, 2026 18:09
@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.9%. Comparing base (73d58f2) to head (77228e9).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main   #4353     +/-   ##
=========================================
- Coverage     84.9%   84.9%   -0.0%     
- Complexity    5670    5682     +12     
=========================================
  Files          291     291             
  Lines        23685   23698     +13     
=========================================
+ Hits         20103   20113     +10     
- Misses        3582    3585      +3     
Flag Coverage Δ
wp-graphql-acf-wpunit-twentytwentyfive-single 77.5% <ø> (ø)
wp-graphql-wpunit-twentytwentyfive-single 86.1% <ø> (-<0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...lugins/wp-graphql/src/Mutation/MediaItemUpdate.php 87.0% <ø> (-2.3%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch was previously deployed

1 inactive deployment
Preview — 77228e91 Deployed Sep 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant