Skip to main content

Divi Theme CVE-2026-3851

| EUVDEUVD-2026-69830 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-09-02 Wordfence GHSA-rp2j-7c4f-r683
6.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain Contributor WordPress account
  2. Delivery
    Craft Divi page using legacy JSON Dynamic Content format
  3. Exploit
    Set post_meta_key block with enable_html=on
  4. Install
    Save page (bypasses et_builder_sanitize_dynamic_content_fields filter)
  5. C2
    Victim visits injected page
  6. Execute
    Rendering engine converts legacy JSON and outputs raw meta value
  7. Impact
    Attacker JavaScript executes in victim browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) the attacker holds a WordPress Contributor role or higher on the target site - anonymous or Subscriber-level users cannot create or edit pages; (2) the Divi theme version is 4.27.6 or below; (3) the attacker constructs a Dynamic Content block using the legacy JSON format (rather than the modern @ET-DC@...@ marker format) to evade save-time sanitization; (4) the post_meta_key resolver is used with the enable_html attribute set to on, which is required to trigger the unsanitized meta-value output path. Exploitation is limited to sites that allow contributor-level users to publish or edit Divi pages. Sites where only administrators and editors create content face significantly reduced exposure, as the attacker cannot inject the payload without that role.

Impact

The CVSS 3.1 base score of 6.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) reflects a scope-changed stored XSS that crosses trust boundaries to victim browsers. The PR:L metric correctly captures the Contributor-level authentication gate, which limits the exposed surface to users who can publish or edit posts - a relatively low bar in multi-author WordPress sites. The UI:N metric is debatable for stored XSS: a victim must visit the injected page, which is conventionally UI:R under CVSS 3.1 semantics; this may cause slight score inflation. No EPSS score or KEV listing was provided, and no public exploit has been identified, suggesting this has not yet seen automated or mass exploitation. The dual-flaw bypass nature (filter gap plus missing output encoding) makes the vulnerability technically interesting and likely straightforward to weaponize once the legacy JSON format is understood by an attacker. Real-world risk is meaningful for any WordPress instance where untrusted contributors can publish pages using Divi's Dynamic Content with post_meta_key blocks and enable_html enabled - but self-contained to that configuration. Sites using Divi in author/contributor-open deployments should treat this as a priority patch.

Exploit ScenarioDerived

An attacker with a Contributor account on a Divi-powered WordPress site crafts a page using the Dynamic Content feature, embedding a legacy JSON format payload in a post_meta_key block with enable_html set to on. Because the save-time filter only scans for @ET-DC@...@ markers, the malicious legacy-format payload is stored unmodified. When any authenticated or unauthenticated visitor loads the page, the rendering engine silently converts the legacy JSON, resolves the post meta value without sanitization, and executes the attacker's JavaScript - enabling session cookie theft, credential harvesting, or malicious redirects. No public exploit code has been identified at time of analysis, but the two-step bypass is mechanically straightforward for an attacker familiar with Divi's internal dynamic content formats.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 02, 2026

Stored XSS in Elegant Themes' Divi WordPress theme (all versions through 4.27.6) allows authenticated attackers with Contributor-level access to inject persistent JavaScript payloads that execute against any visitor of an affected page. The vulnerability chains two compounding flaws: the save-time sanitization filter et_builder_sanitize_dynamic_content_fields() only recognizes the modern @ET-DC@...@ marker format, while the rendering engine silently accepts and converts a legacy JSON format, bypassing sanitization entirely; a second flaw in the post_meta_key resolver skips wp_kses_post() output encoding when enable_html is set to on, feeding raw get_post_meta() output directly into page HTML. A patch was released in version 4.27.7 per the Divi changelog. No public exploit has been identified at time of analysis.

RemediationAI

Update the Divi theme to version 4.27.7 or later, which resolves both the legacy JSON sanitization bypass and the missing wp_kses_post() call in the post_meta_key resolver. The patch is documented at https://www.divichangelog.com/divi-update/divi-4/version-4-27-7. For sites unable to patch immediately, a compensating control is to revoke Contributor-level role access to pages that use Divi Dynamic Content with the post_meta_key resolver and enable_html=on - this directly removes the attacker's entry point without disabling Divi functionality for editors and administrators. Alternatively, auditing existing Divi page content for legacy JSON dynamic content blocks and converting them to the modern @ET-DC@...@ format reduces the attack surface, though this is labor-intensive and does not fix the underlying output-encoding flaw. Content Security Policy headers can limit JavaScript execution scope but will not prevent injection; they are a defense-in-depth measure, not a substitute for patching.

Affected VersionsENISA

Divi 0 ≤4.27.6

Affected Packages

euvd divi no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Divi (CPE: cpe:2.3:a:elegant_themes:divi) is a premium WordPress page-builder theme by Elegant Themes, affected in all versions up to 4.27.6. The root cause (CWE-79, Stored XSS) arises from a sanitization filter/renderer format mismatch: et_builder_sanitize_dynamic_content_fields() enforces a deny-list only on the @ET-DC@...@ token format, but the rendering engine also accepts an undocumented legacy JSON format that is silently promoted to dynamic content at render time - a path that was never wired into the save-time filter. The second flaw compounds this: the post_meta_key resolver in et_builder_filter_resolve_default_dynamic_content() conditionally skips wp_kses_post() when the block attribute enable_html is on, meaning arbitrary HTML stored in post meta is written verbatim into the output DOM. Together these two paths form a complete, bypass-capable stored XSS chain exploitable by low-privileged authenticated users.

Know when Divi gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

PR:L for required Contributor role; UI:R because a victim must visit the injected page to trigger XSS; S:C for cross-browser scope change.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The Divi theme for WordPress is vulnerable to Stored Cross-Site Scripting via the Dynamic Content feature's legacy JSON format in all versions up to, and including, 4.27.6. This is due to two compounding flaws: (1) the save-time sanitization filter et_builder_sanitize_dynamic_content_fields() only searches for dynamic content markers in the @ET-DC@...@ format, but the rendering engine also supports a legacy JSON format that is silently converted at render time, completely bypassing the save-time filter, and (2) the post_meta_key resolver in et_builder_filter_resolve_default_dynamic_content() does not apply wp_kses_post() to the resolved meta value when enable_html is set to on, passing raw get_post_meta() output directly to the page. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
High
Divi is one of the best-selling WordPress premium themes globally
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Divi

View all
CVE-2015-1579 MEDIUM POC
5.0 Feb 11

Directory traversal vulnerability in the Elegant Themes Divi theme for WordPress allows remote attackers to read arbitra

CVE-2026-13712 MEDIUM POC
5.4 Aug 16

Stored cross-site scripting in the Divi WordPress theme (versions 5.0 through before 5.9.0) allows any contributor-role

CVE-2026-3852 MEDIUM
6.4 Sep 03

Stored XSS in the Divi WordPress theme's Social Media Follow module allows authenticated Contributor-level users to inje

CVE-2024-5533 MEDIUM
6.4 Jun 18

The Divi theme for WordPress is vulnerable to Stored Cross-Site Scripting in all versions up to, and including, 4.25.1 d

CVE-2023-6744 MEDIUM
6.4 Dec 23

The Divi theme for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'et_pb_text' shortcode in all

CVE-2026-3853 MEDIUM
6.4 Sep 05

DOM-based stored Cross-Site Scripting in the Divi WordPress theme (all versions through 4.27.6) allows authenticated Con

CVE-2026-3850 MEDIUM
6.4 Sep 02

Stored Cross-Site Scripting in Elegant Themes' Divi WordPress theme (all versions through 4.27.6) enables authenticated

CVE-2023-29099 MEDIUM
5.4 Aug 08

Auth. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack complexity. No vendor pat

CVE-2026-91707 MEDIUM
5.3 Sep 18

Unauthenticated arbitrary shortcode execution in the Divi theme for WordPress (all versions up to and including 5.11.1)

CVE-2026-4361 MEDIUM
5.0 Sep 05

Blind Server-Side Request Forgery in the Divi WordPress theme (all versions through 4.27.6) allows authenticated Contrib

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy