WordPress security changelog
MEDIUM CVE-2026-3850 Deferred

Divi contributors can store JavaScript redirect payloads

Divi's contact-form shortcode handles redirect_url with attribute escaping instead of URL-scheme validation and omits it from the builder's URL-option sanitization. A Contributor can store a javascript: redirect that executes when a visitor successfully submits the affected form. The authoritative description says versions through 4.27.6 are affected, while its structured affected range ends at 4.27.5.

CVE / CNA score 6.4 CVSS 3.1 · security@wordfence.com
NVD score Pending NVD has not published its own CVSS assessment.
Component
Divi
Plugin slug
divi
Affected
<= 4.27.5
Safe version
See mitigation notes
Published
Sep 02, 2026
Weakness
CWE-79 — Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

This CVE was published Sep 02, 2026 and is one of 11 known issues for this theme.

Update, patch or deactivate.

Update to a Divi release confirmed by the vendor to correct CVE-2026-3850, remove untrusted contact-form redirect values, and review activity after affected forms were submitted.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical 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.

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary and upstream sources