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
    • 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-2025-13535

CVE-2025-13535: King Addons for Elementor XSS Vulnerability

CVE-2025-13535 is a DOM-Based Stored Cross-Site Scripting flaw in King Addons for Elementor that allows authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2025-13535 Overview

The King Addons for Elementor plugin for WordPress contains multiple DOM-Based Stored Cross-Site Scripting (XSS) vulnerabilities affecting all versions up to and including 51.1.38. These vulnerabilities stem from insufficient input sanitization and output escaping across multiple widgets and features within the plugin. Authenticated attackers with Contributor-level access or above can exploit these flaws to inject arbitrary web scripts that execute when users access the compromised page or when administrators preview the content in Elementor's editor.

Critical Impact

Authenticated attackers with minimal privileges (Contributor-level) can inject persistent malicious scripts across multiple plugin widgets, potentially leading to session hijacking, credential theft, and privilege escalation when administrators interact with infected pages.

Affected Products

  • King Addons for Elementor plugin for WordPress versions up to and including 51.1.38
  • WordPress installations using the affected King Addons plugin with Elementor
  • All users with Contributor-level access or higher on affected WordPress sites

Discovery Timeline

  • 2026-04-01 - CVE-2025-13535 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2025-13535

Vulnerability Analysis

This vulnerability represents a classic case of improper output encoding in a context where HTML entity decoding occurs automatically. The plugin developers use esc_attr() and esc_url() functions for sanitization, which are appropriate for HTML attribute contexts but fail to provide adequate protection within JavaScript inline event handlers.

When user-controlled data is placed inside onclick attributes after being processed by these escaping functions, the browser's DOM parsing behavior decodes HTML entities before the JavaScript executes. This allows attackers to craft payloads using HTML entity encoding that bypasses the escaping functions but gets decoded back to executable JavaScript by the browser.

Additionally, several JavaScript files within the plugin employ unsafe DOM manipulation methods including template literals, jQuery's .html() method, and window.location.href assignments with unvalidated URLs. These patterns create injection points where user-controlled data from Elementor widget settings flows into executable contexts without proper sanitization.

The vulnerability affects multiple widgets and features including the Countdown widget, Image Accordion widget, Off Canvas Content, Popup widget, Pricing Calculator, Video Popup, Wrapper Link feature, and the lightgallery library integration.

Root Cause

The root cause lies in a fundamental misunderstanding of browser context switching during HTML parsing. While esc_attr() properly escapes characters for HTML attribute contexts, the browser decodes these entities when parsing the attribute value before passing it to the JavaScript engine. For example, ' becomes a single quote when the onclick handler executes, allowing attackers to break out of string literals within the JavaScript context.

The secondary root cause involves direct use of user-controlled Elementor widget settings in JavaScript code without validation or encoding appropriate for the JavaScript context. Template literal interpolation and jQuery's .html() method both interpret the input as executable content rather than safe text.

Attack Vector

The attack requires an authenticated user with at least Contributor-level privileges on the target WordPress site. The attacker configures malicious payloads within Elementor widget settings for any of the affected widgets. These payloads are designed to either:

  1. Use HTML entity encoding to bypass esc_attr() or esc_url() and execute when decoded by the DOM parser
  2. Inject JavaScript directly through widget settings that flow into unsafe DOM manipulation methods

The malicious scripts execute in two scenarios: when any visitor loads the page containing the compromised widget, or when an administrator previews the page within the Elementor editor interface. The latter scenario is particularly dangerous as it can lead to administrative session compromise.

Detection Methods for CVE-2025-13535

Indicators of Compromise

  • Unusual JavaScript code or HTML entities within Elementor widget settings in the wp_postmeta database table
  • Unexpected onclick attribute values containing encoded JavaScript payloads in rendered page HTML
  • Contributor-level users creating pages with widgets containing suspicious encoded content
  • Browser console errors or unexpected script execution when loading pages with King Addons widgets

Detection Strategies

  • Review Elementor widget configurations for HTML entity-encoded payloads, particularly in URL and text fields
  • Monitor post metadata changes made by Contributor-level users for suspicious patterns
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Audit access logs for Contributor users accessing sensitive widget settings

Monitoring Recommendations

  • Enable WordPress audit logging to track widget configuration changes
  • Deploy web application firewall (WAF) rules to detect XSS payload patterns in POST requests to Elementor endpoints
  • Monitor for unusual JavaScript execution patterns using client-side security solutions
  • Regularly scan WordPress installations for known vulnerable plugin versions

How to Mitigate CVE-2025-13535

Immediate Actions Required

  • Update King Addons for Elementor to the latest available version beyond 51.1.38
  • Review all pages created by Contributor-level users for potentially malicious widget configurations
  • Consider temporarily restricting Contributor access to affected widgets until patch is applied
  • Implement Content Security Policy headers to limit inline script execution

Patch Information

The vulnerability was partially patched in version 5.1.51. Two changesets address portions of this vulnerability:

  • WordPress Changeset #3438067 contains initial fixes
  • WordPress Changeset #3441952 provides additional remediation

For complete details on the vulnerability and patch status, refer to the Wordfence Vulnerability Advisory.

Workarounds

  • Restrict Contributor-level user capabilities using a WordPress role management plugin to prevent access to Elementor widget editing
  • Implement server-side input validation for Elementor widget settings independent of the plugin's sanitization
  • Deploy a web application firewall with XSS protection rules enabled for WordPress admin endpoints
  • Consider temporarily disabling the affected widgets (Countdown, Image Accordion, Off Canvas Content, Popup, Pricing Calculator, Video Popup, Wrapper Link) until fully patched
bash
# Restrict contributor access to Elementor editing via wp-config.php
# Add capability restrictions in your theme's functions.php
# Example: Remove 'edit_pages' capability from contributors
# add_filter('map_meta_cap', 'restrict_elementor_editing', 10, 4);

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechElementor

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.06%

  • 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 JavaScript File

  • WordPress Wrapper Link PHP Code

  • WordPress Countdown Widget Script

  • WordPress Image Accordion Script

  • WordPress Off Canvas Content PHP

  • WordPress Popup Widget PHP Code

  • WordPress Pricing Calculator PHP Code

  • WordPress Video Popup PHP Code

  • WordPress Changeset #3438067

  • WordPress Changeset #3441952

  • Wordfence Vulnerability ID 95d3e76c
  • Related CVEs
  • CVE-2025-6229: Sina Extension Elementor XSS Vulnerability

  • CVE-2026-32352: Elementor Website Builder XSS Vulnerability

  • CVE-2024-50555: Elementor Website Builder XSS Vulnerability

  • CVE-2026-2486: Master Addons Elementor XSS Vulnerability
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