Skip to main content
Vulnerability Database/CVE-2026-19798

CVE-2026-19798: Wp Map Block Authorization Bypass Vulnerability

CVE-2026-19798 is an authorization bypass flaw in Wp Map Block plugin for WordPress that lets contributors modify or delete maps owned by administrators. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-19798 Overview

CVE-2026-19798 is a missing authorization vulnerability [CWE-862] in the Wp Map Block plugin for WordPress through version 3.0.0. The Maps_Controller REST controller exposes set_status() and bulk() handlers whose permission_callback (can_edit()) checks only current_user_can('edit_posts'). The handlers perform no object-level ownership check and no verification of publish-level capabilities. Authenticated users with Contributor-level access or above can therefore change the post_status of any wpmb_map post, including those owned by administrators, and bulk-delete arbitrary maps.

Critical Impact

Contributor-level accounts can publish, unpublish, or bulk-delete any wpmb_map post site-wide, hiding administrator maps from public pages or exposing draft maps.

Affected Products

  • WordPress plugin: Wp Map Block
  • Affected versions: all releases up to and including 3.0.0
  • Vulnerable component: includes/Rest/Maps_Controller.php

Discovery Timeline

  • 2026-10-16 - CVE-2026-19798 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-19798

Vulnerability Analysis

The Wp Map Block plugin registers REST routes handled by the Maps_Controller class. Two handlers, set_status() and bulk(), mutate wpmb_map posts without validating caller ownership or publish capability. The shared permission_callback, can_edit(), authorizes any user who satisfies current_user_can('edit_posts'). On a default WordPress installation, that capability is granted to the Contributor role and above.

Both handlers accept a map ID directly from the request body. set_status() passes the attacker-controlled ID to wp_update_post() to toggle post_status between publish and draft. The bulk() handler accepts an array of IDs and calls wp_update_post() or wp_delete_post() across the batch. Neither handler verifies that the caller owns the referenced post or holds publish_posts, breaking WordPress's layered capability model.

Root Cause

The root cause is a broken access control decision at the REST layer. The plugin treats edit_posts as sufficient authorization for mutating any wpmb_map object, conflating role presence with per-object authority. WordPress expects REST controllers extending similar patterns to call current_user_can('edit_post', $post_id) or publish_posts where state transitions warrant it.

Attack Vector

An authenticated attacker with Contributor-level access sends an authenticated request to the vulnerable REST route. The request body supplies a target map ID owned by another user, typically an administrator. The handler executes the status change or deletion with the privilege of the plugin's own code path. The impact is limited to integrity of wpmb_map content, which is why the vector carries no confidentiality or availability component beyond the affected posts. See the Wordfence Vulnerability Report and the vulnerable Maps_Controller source for the specific line references.

// No verified exploit code is published. See the Wordfence advisory
// and the Maps_Controller.php references for technical specifics.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-19798

Indicators of Compromise

  • Unexpected transitions of wpmb_map posts between publish and draft, especially when initiated by Contributor or Author accounts.
  • wpmb_map entries missing from the database after bulk REST calls from low-privilege sessions.
  • Access log entries showing authenticated POST requests to the plugin's set_status or bulk REST endpoints from non-administrator users.

Detection Strategies

  • Audit WordPress post_status transition events against the acting user's role and post ownership.
  • Correlate REST API traffic to /wp-json/ routes exposed by wp-map-block with the authenticated user's capability set.
  • Review the WordPress audit log (via a logging plugin) for wp_update_post and wp_delete_post activity targeting posts not owned by the caller.

Monitoring Recommendations

  • Alert on bulk delete operations against wpmb_map initiated by non-administrator roles.
  • Monitor plugin version inventory to flag any site still running Wp Map Block 3.0.0 or earlier.
  • Track creation of new Contributor-level accounts followed by REST calls to plugin endpoints within short time windows.

How to Mitigate CVE-2026-19798

Immediate Actions Required

  • Update the Wp Map Block plugin to a version later than 3.0.0 once the vendor publishes a fix referenced in the plugin changeset.
  • Audit all wpmb_map posts for unauthorized status changes or deletions since the plugin was installed.
  • Review Contributor and Author accounts for legitimacy and rotate credentials for any suspicious users.

Patch Information

Refer to the WordPress plugin repository changeset tracked at plugins.trac.wordpress.org for the committed fix. The remediated code is expected to enforce current_user_can('edit_post', $post_id) and publish_posts checks inside set_status() and bulk() rather than relying solely on edit_posts.

Workarounds

  • Deactivate the Wp Map Block plugin until a patched release is installed if maps are not essential.
  • Restrict Contributor-level and above accounts to trusted users and remove dormant accounts.
  • Place a Web Application Firewall rule in front of the plugin's REST endpoints to block requests from non-editor roles.
bash
# Example WP-CLI command to list sites running the vulnerable version
wp plugin list --name=wp-map-block --fields=name,status,version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.