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-2026-5159

CVE-2026-5159: Royal Addons for Elementor XSS Vulnerability

CVE-2026-5159 is a stored cross-site scripting flaw in Royal Addons for Elementor plugin that allows authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-5159 Overview

CVE-2026-5159 is a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the Royal Addons for Elementor plugin for WordPress. The flaw affects all versions up to and including 1.7.1056. It resides in the Instagram Feed widget's instagram_follow_text setting due to insufficient input sanitization and output escaping. Authenticated attackers with Contributor-level access or above can inject arbitrary web scripts into pages. The injected scripts execute in the browser of any user who accesses the affected page. Exploitation requires that an administrator has previously configured the Instagram Feed widget with a valid Instagram access token.

Critical Impact

Authenticated users with Contributor privileges can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft and account takeover.

Affected Products

  • Royal Addons for Elementor (royal-elementor-addons) WordPress plugin
  • All versions through 1.7.1056
  • Sites with the Instagram Feed widget configured using a valid Instagram access token

Discovery Timeline

  • 2026-05-05 - CVE-2026-5159 published to the National Vulnerability Database (NVD)
  • 2026-05-05 - Last updated in NVD database

Technical Details for CVE-2026-5159

Vulnerability Analysis

The vulnerability is a stored XSS issue tracked under [CWE-79]. The Royal Addons for Elementor plugin exposes an Instagram Feed widget that accepts a configurable follow-button label through the instagram_follow_text setting. The plugin fails to sanitize this input on save and fails to escape it on output when rendering the widget on the front end.

An authenticated user with Contributor-level access or above can place arbitrary HTML and JavaScript inside the instagram_follow_text field. When a visitor or administrator loads the page that embeds the widget, the injected payload executes within the site's origin. This enables session cookie theft, forced administrative actions, redirection, and arbitrary DOM manipulation. Because the payload is persisted in widget settings, every subsequent visitor is affected until the content is removed.

Root Cause

The root cause is missing input validation and output encoding around the instagram_follow_text widget setting in modules/instagram-feed/widgets/wpr-instagram-feed.php. The plugin does not apply WordPress escape functions such as esc_html() or wp_kses() before emitting the value into the rendered markup. Code references published with the advisory point to lines 2181-2193, 5528-5530, and 5623-5625 of the affected file.

Attack Vector

The attack vector is network-based and requires low-privileged authentication. An attacker with a Contributor account edits a post or template that uses the Instagram Feed widget, supplies a JavaScript payload in the instagram_follow_text field, and submits the content. The widget only renders the field once an administrator has configured a valid Instagram access token, so exploitation depends on that pre-existing setup. After the page is published or previewed, the script runs in the browser of any user who loads it.

No verified public proof-of-concept code is available. See the Wordfence Vulnerability Analysis and the WordPress Plugin Code Snippet for technical context.

Detection Methods for CVE-2026-5159

Indicators of Compromise

  • Posts, pages, or Elementor templates containing Instagram Feed widget configurations with <script> tags, on* event handlers, or javascript: URIs in the instagram_follow_text field.
  • Unexpected outbound requests from visitor browsers to attacker-controlled domains originating from pages that embed the Instagram Feed widget.
  • New or modified Contributor-level accounts that have edited posts referencing the Royal Addons Instagram Feed widget.

Detection Strategies

  • Audit the WordPress wp_postmeta table for Elementor data containing instagram_follow_text values that include HTML or JavaScript syntax.
  • Inspect rendered HTML of public pages for inline event handlers or scripts adjacent to Instagram follow elements emitted by the plugin.
  • Review WordPress activity logs for content edits made by Contributor or Author accounts that touch widgets in the Royal Addons module.

Monitoring Recommendations

  • Enable a Web Application Firewall (WAF) with rules that flag script injection patterns submitted to the Elementor editor save endpoints.
  • Alert on creation of low-privilege user accounts followed by edits to pages using third-party Elementor add-ons.
  • Monitor browser-side Content Security Policy (CSP) violation reports for inline script execution on pages using the Instagram Feed widget.

How to Mitigate CVE-2026-5159

Immediate Actions Required

  • Update the Royal Addons for Elementor plugin to a version newer than 1.7.1056 once the vendor's patched release is available.
  • Restrict Contributor, Author, and Editor accounts to trusted users and review recent edits to any page that uses the Instagram Feed widget.
  • Remove or sanitize any existing instagram_follow_text values that contain HTML or JavaScript content.

Patch Information

The vendor published a fix referenced by the WordPress Plugin Changeset Update (changeset 3514368). Site administrators should upgrade through the WordPress plugin manager and verify the installed version exceeds 1.7.1056.

Workarounds

  • Temporarily disable the Royal Addons for Elementor plugin until the patched version is deployed.
  • Remove the Instagram access token configuration from the Instagram Feed widget to prevent the vulnerable code path from rendering.
  • Limit Contributor-level capabilities or revoke editing rights for users who do not require post creation privileges.
  • Deploy a strict Content Security Policy that blocks inline script execution on pages rendered by the affected plugin.
bash
# Configuration example: identify the installed plugin version using WP-CLI
wp plugin get royal-elementor-addons --field=version
wp plugin update royal-elementor-addons

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Plugin Code Snippet 1

  • WordPress Plugin Code Snippet 2

  • WordPress Plugin Code Snippet 3

  • WordPress Plugin Code Snippet 1 Trunk

  • WordPress Plugin Code Snippet 2 Trunk

  • WordPress Plugin Code Snippet 3 Trunk

  • WordPress Plugin Changeset Update

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2026-6504: Royal Elementor Addons XSS Vulnerability

  • CVE-2026-6174: CC Child Pages WordPress Plugin XSS Flaw

  • CVE-2026-6252: Meta Field Block WordPress Plugin XSS Flaw

  • CVE-2026-3694: Bold Page Builder WordPress XSS 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