CVE-2026-3850: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Elegant Themes Divi
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 v3.1
Score 6.4medium
Affected software
Elegant Themes
Divi
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Divi theme for WordPress contains a stored Cross-Site Scripting vulnerability in the et_pb_contact_form shortcode's redirect_url parameter. This parameter is sanitized using esc_attr() instead of the appropriate esc_url(), and it is not included in the $url_options array for esc_url_raw() sanitization during shortcode parsing. Consequently, after a form submission, client-side JavaScript reads the data-redirect_url attribute and assigns it directly to window.location.href, enabling execution of arbitrary JavaScript from a javascript: URI. This allows authenticated users with Contributor-level permissions or higher to inject malicious scripts that execute upon form submission.
Potential Impact
An attacker with Contributor-level access or above can inject arbitrary JavaScript code that executes in the context of users submitting the contact form. This can lead to session hijacking, defacement, or other client-side attacks. The vulnerability does not require user interaction beyond form submission and does not affect availability. The CVSS v3.1 score is 6.4 (medium severity), reflecting network attack vector, low attack complexity, privileges required, no user interaction, and impact on confidentiality and integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict Contributor-level access to trusted users only and consider disabling or restricting use of the et_pb_contact_form shortcode with the redirect_url parameter. Monitor official Elegant Themes communications for updates and patches addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-09T20:03:49.635Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a97c7c4acd9273b49e5562f
Added to database: 09/02/2026, 06:52:52 UTC
Last enriched: 09/07/2026, 12:34:36 UTC
Last updated: 10/17/2026, 18:48:19 UTC
Views: 96
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.