Cross-site scripting in Elegant Themes Divi
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Elegant Themes | Divi | up to 4.27.6 | — | No fix listed | CNA |
- Divi VendorElegant Themes Affected up to 4.27.6 Fixed in — No fix listed CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:elegantthemes:divi:*:*:*:*:*:*:*:* | — | — | Elegant Themes |
- cpe:2.3:a:elegantthemes:divi:*:*:*:*:*:*:*:* Versions — — ·Elegant Themes
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-3851
- 2026-10-03 Alias added: GHSA-rp2j-7c4f-r683
References
More Elegant Themes vulnerabilities
- TI-2020-18386 An issue was discovered in the Divi Builder plugin, Divi theme, and Divi Extra theme… CVSS 3.1CRITICAL 9.9
- TI-2016-09042 The Elegant Themes Monarch plugin before 1.2.7 for WordPress has privilege escalation. CVSS 3.1HIGH 8.8
- TI-2016-09041 The Elegant Themes Bloom plugin before 1.1.1 for WordPress has privilege escalation. CVSS 3.1HIGH 8.8
- TI-2016-09040 The Elegant Themes Extra theme before 1.2.4 for WordPress has privilege escalation. CVSS 3.1HIGH 8.8
- TI-2015-01413 Directory traversal vulnerability in the Elegant Themes Divi theme for WordPress allows… CVSS 2.0MEDIUM 5.0
- TI-2026-61930 Missing authorization in Elegant Themes Divi CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-3851 · CVE Program
- CVE-2026-3851 · NVD
- FIRST EPSS
- GHSA-rp2j-7c4f-r683 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences