Harden update_post_meta_ajax against post-meta authorization bypass#705
Merged
solstice23 merged 3 commits intomasterfrom Apr 14, 2026
Merged
Harden update_post_meta_ajax against post-meta authorization bypass#705solstice23 merged 3 commits intomasterfrom
update_post_meta_ajax against post-meta authorization bypass#705solstice23 merged 3 commits intomasterfrom
Conversation
Agent-Logs-Url: https://github.com/solstice23/argon-theme/sessions/8d3dac7f-e6c0-4390-afbf-24b09396cf9c Co-authored-by: solstice23 <23134847+solstice23@users.noreply.github.com>
Agent-Logs-Url: https://github.com/solstice23/argon-theme/sessions/8d3dac7f-e6c0-4390-afbf-24b09396cf9c Co-authored-by: solstice23 <23134847+solstice23@users.noreply.github.com>
Agent-Logs-Url: https://github.com/solstice23/argon-theme/sessions/8d3dac7f-e6c0-4390-afbf-24b09396cf9c Co-authored-by: solstice23 <23134847+solstice23@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
solstice23
April 14, 2026 02:27
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
update_post_meta_ajaxaccepted a valid nonce but did not enforce per-post edit authorization, allowing users with limited editor rights to modify metadata on posts they cannot edit (including HTML/JS-capable fields). The endpoint also exposed anoprivroute for a privileged mutation path.Scope of vulnerability
argon_after_postandargon_custom_csswere writable via AJAX on unauthorized targets.Authorization and endpoint hardening
current_user_can('edit_post', $post_id).wp_ajax_nopriv_update_post_meta_ajax).Metadata write constraints
Request validation and error semantics
post_id,meta_key, andmeta_value.400for malformed requests (invalid_request)403for unauthorized/forbidden mutations (forbidden)