Divi <= 4.27.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Dynamic Content (Legacy JSON Format) Shortcode

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-3851
CVSS 6.4 (Medium)
Publicly Published September 1, 2026
Last Updated September 2, 2026
Researcher Osvaldo Noe Gonzalez Del Rio (Os) - krei.dev | ogbuilders.io

Description

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Divi

Software Type Theme
Software Slug Divi
Patched? Yes
Remediation Update to version 4.27.7, or a newer patched version
Affected Version
  • <= 4.27.6
Patched Version
  • 4.27.7

Recent vulnerabilities in Divi

# Title CVE ID CVSS Researchers Date
1 Divi <= 4.27.6 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting via Video Slider 'image_src' Shortcode Parameter CVE-2026-3853 6.4 Osvaldo Noe Gonzalez Del Rio (Os) September 4, 2026
2 Divi <= 4.27.6 - Authenticated (Contributor+) Server-Side Request Forgery via 'image_src' Parameter CVE-2026-4361 5.0 Osvaldo Noe Gonzalez Del Rio (Os) September 4, 2026
3 Divi <= 4.27.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Social Media Follow 'skype_url' Shortcode Parameter CVE-2026-3852 6.4 Osvaldo Noe Gonzalez Del Rio (Os) September 2, 2026
4 Divi <= 4.27.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Contact Form 'redirect_url' Shortcode Parameter CVE-2026-3850 6.4 Osvaldo Noe Gonzalez Del Rio (Os) September 1, 2026
5 Divi <= 5.8.1 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2026-13712 6.4 .$n, *Sico.eX August 14, 2026
6 Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via Magnific Popups JavaScript Library CVE-2024-5647 6.4 Webbernaut July 2, 2025
7 Divi <= 4.25.1 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2024-5533 6.4 Ngô Thiên An (ancorn_) June 17, 2024
8 Elegant Themes Divi Theme, Extra Theme, Divi Page Builder <= 4.25.0 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting CVE-2024-4490 6.4 Webbernaut May 9, 2024
9 Divi <= 4.23.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode CVE-2023-6744 6.4 Francesco Carlucci December 22, 2023
10 Divi <= 4.20.2 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2023-29099 6.4 Rafie Muhammad May 9, 2023

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation