CVE-2026-3850
Received Received - Intake

Stored XSS in Divi WordPress Theme via Contact Form Redirect

Vulnerability report for CVE-2026-3850, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-02

Last updated on: 2026-09-02

Assigner: Wordfence

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-02
Last Modified
2026-09-02
Generated
2026-09-02
AI Q&A
2026-09-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
elegant_themes divi to 4.27.6 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a Stored Cross-Site Scripting (XSS) vulnerability in the Divi WordPress theme. It occurs because the redirect_url parameter in the et_pb_contact_form shortcode is not properly sanitized. Attackers with Contributor-level access or higher can inject malicious JavaScript via the redirect_url parameter. When a user submits the contact form, the injected script executes, potentially stealing user data or performing unauthorized actions.

Detection Guidance

Check WordPress sites using Divi theme versions up to 4.27.6 for the `redirect_url` parameter in `et_pb_contact_form` shortcode. Inspect form submissions for `javascript:` URIs in the `data-redirect_url` attribute. Use commands like grep to search for vulnerable shortcode patterns in theme files.

Impact Analysis
  • Attackers could steal user session cookies or sensitive data submitted through the contact form.
  • Malicious scripts could redirect users to phishing pages or perform actions on their behalf.
  • The vulnerability requires Contributor-level access or higher to exploit, limiting the potential attacker pool.
Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection requirements and HIPAA's safeguards for protected health information. Organizations using Divi may face compliance violations if user data is compromised through this XSS flaw.

Mitigation Strategies

Update the Divi theme to version 4.27.7 or later immediately. If updating is not possible, disable the `et_pb_contact_form` shortcode or restrict Contributor-level access to prevent exploitation. Monitor form submissions for suspicious `javascript:` URIs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-3850. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart