The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-47929

CVE-2021-47929: Filterable Portfolio Gallery XSS Flaw

CVE-2021-47929 is a stored XSS vulnerability in Filterable Portfolio Gallery 1.0 that lets authenticated attackers inject malicious JavaScript via the title field. This article covers technical details, affected versions, and mitigations.

Published: May 18, 2026

CVE-2021-47929 Overview

CVE-2021-47929 is a stored cross-site scripting (XSS) vulnerability in the Filterable Portfolio Gallery WordPress plugin version 1.0. Authenticated attackers can inject malicious JavaScript through the gallery title field. The payload persists in the database and executes in any browser that renders the gallery preview. The flaw is tracked under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Critical Impact

An authenticated low-privilege user can plant persistent JavaScript that runs in the session of any administrator or visitor viewing the gallery, enabling session theft, account takeover, and arbitrary actions in the WordPress admin context.

Affected Products

  • WordPress plugin Filterable Portfolio Gallery (FG Gallery) version 1.0
  • WordPress sites using the fg-gallery plugin with affected versions installed
  • Any user environment rendering stored gallery titles without sanitization

Discovery Timeline

  • 2026-05-10 - CVE-2021-47929 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2021-47929

Vulnerability Analysis

The Filterable Portfolio Gallery plugin accepts user-supplied content in the gallery title field without applying output encoding or input sanitization. When an authenticated user enters JavaScript in this field, the plugin stores the raw value in the WordPress database. The stored payload is later rendered inside the gallery preview view, where the browser parses it as executable HTML. The result is a persistent XSS condition that triggers automatically whenever the affected page is loaded.

Exploitation requires only contributor- or editor-level credentials, since the title field is reachable through the standard plugin interface. The attack surface is exposed over the network, and execution depends on a victim loading the gallery view. Because the script runs in the context of the WordPress origin, an attacker can read cookies, exfiltrate nonces, perform CSRF-protected administrative actions, or pivot to deliver malware to site visitors.

Root Cause

The root cause is missing output escaping on a stored user-controlled field. The plugin does not pass the title through WordPress helper functions such as esc_html(), esc_attr(), or wp_kses_post() before echoing it into the page. This permits any HTML tag, including <img> with an onerror handler or <script> blocks, to be rendered verbatim.

Attack Vector

An attacker authenticates to the WordPress instance, navigates to the plugin's gallery creation interface, and submits a payload such as an image tag with a malformed source and an onerror JavaScript handler in the title field. The payload is saved to the database. When an administrator or visitor previews the gallery, the browser attempts to load the broken image, triggers the onerror handler, and executes the injected JavaScript in the victim's session context.

A public proof of concept is available at Exploit-DB #50458, and a technical write-up is published in the VulnCheck Advisory for XSS.

Detection Methods for CVE-2021-47929

Indicators of Compromise

  • Gallery title fields containing HTML tags such as <script>, <img onerror=>, <svg onload=>, or encoded variants stored in the wp_posts or plugin-specific tables
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after viewing gallery pages
  • New or modified WordPress administrator accounts created soon after a low-privilege user edited a gallery entry
  • Browser console errors referencing failed image loads on gallery preview pages

Detection Strategies

  • Query the WordPress database for gallery records whose title fields contain angle brackets, javascript:, onerror, onload, or <script substrings
  • Inspect HTTP responses returned by gallery preview endpoints for unescaped HTML originating from user input
  • Review WordPress audit logs for gallery create or update events performed by non-administrator accounts
  • Correlate authentication events for contributor or editor roles with subsequent administrator session anomalies

Monitoring Recommendations

  • Enable a web application firewall rule set that flags HTML tags submitted to plugin form fields
  • Monitor endpoint browser telemetry on administrator workstations for script execution originating from the WordPress admin origin
  • Alert on Content Security Policy (CSP) violation reports from pages rendered by the gallery plugin
  • Track plugin file integrity to detect tampering or unexpected version changes

How to Mitigate CVE-2021-47929

Immediate Actions Required

  • Audit installed WordPress plugins and remove or deactivate Filterable Portfolio Gallery version 1.0 until a patched release is confirmed
  • Restrict authoring privileges so that only trusted accounts can create or edit gallery entries
  • Force password resets and invalidate active sessions for all administrator accounts if exploitation is suspected
  • Sanitize existing gallery title records in the database to strip stored HTML payloads

Patch Information

No vendor patch has been referenced in the available advisories for Filterable Portfolio Gallery 1.0. Site operators should monitor the WordPress FG Gallery Plugin page and the Filterable Portfolio Home site for an updated release. Until a fix is published, removal of the plugin is the most reliable remediation.

Workarounds

  • Replace the plugin with a maintained alternative that performs proper output escaping on user-supplied gallery metadata
  • Deploy a Content Security Policy that disables inline script execution and restricts script sources to trusted origins
  • Apply a WAF virtual patch that blocks HTML tags in POST parameters targeting the gallery plugin endpoints
  • Limit the WordPress role capabilities so that only administrators can publish gallery content, reducing the pool of accounts able to plant stored payloads
bash
# Configuration example: WordPress role hardening and CSP header via .htaccess
# 1) Remove the vulnerable plugin
wp plugin deactivate fg-gallery
wp plugin delete fg-gallery

# 2) Add a strict Content Security Policy header
# Append to .htaccess at the WordPress root
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'"

# 3) Restrict gallery editing capability to administrators only
wp cap remove editor edit_published_posts
wp cap remove contributor edit_posts

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechN/A

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Filterable Portfolio Home

  • WordPress FG Gallery Plugin

  • Exploit-DB #50458

  • VulnCheck Advisory for XSS
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English