Divi <= 4.27.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Contact Form 'redirect_url' Shortcode Parameter

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-3850
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 `redirect_url` parameter of the `et_pb_contact_form` shortcode in all versions up to, and including, 4.27.6. This is due to the `redirect_url` attribute being sanitized with `esc_attr()` instead of `esc_url()` before being rendered into the `data-redirect_url` HTML data attribute. Additionally, `redirect_url` is absent from the hardcoded `$url_options` array in `class-et-builder-element.php`, so it does not receive `esc_url_raw()` sanitization during shortcode parsing. After a successful form submission, client-side JavaScript reads this data attribute and passes it directly to `window.location.href`, executing arbitrary JavaScript from a `javascript:` URI. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that execute whenever a user submits the contact form.

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.5
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 Dynamic Content (Legacy JSON Format) Shortcode CVE-2026-3851 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