Cross-site scripting in Elegant Themes Divi
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Elegant Themes | Divi | up to 4.27.5 | — | No fix listed | CNA |
- Divi VendorElegant Themes Affected up to 4.27.5 Fixed in — No fix listed CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:elegantthemes:divi:*:*:*:*:*:*:*:* | — | — | Elegant Themes |
- cpe:2.3:a:elegantthemes:divi:*:*:*:*:*:*:*:* Versions — — ·Elegant Themes
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-3850
- 2026-10-03 Alias added: GHSA-q2q3-cp6p-r7mv
References
More Elegant Themes vulnerabilities
- TI-2020-18386 An issue was discovered in the Divi Builder plugin, Divi theme, and Divi Extra theme… CVSS 3.1CRITICAL 9.9
- TI-2016-09042 The Elegant Themes Monarch plugin before 1.2.7 for WordPress has privilege escalation. CVSS 3.1HIGH 8.8
- TI-2016-09041 The Elegant Themes Bloom plugin before 1.1.1 for WordPress has privilege escalation. CVSS 3.1HIGH 8.8
- TI-2016-09040 The Elegant Themes Extra theme before 1.2.4 for WordPress has privilege escalation. CVSS 3.1HIGH 8.8
- TI-2015-01413 Directory traversal vulnerability in the Elegant Themes Divi theme for WordPress allows… CVSS 2.0MEDIUM 5.0
- TI-2026-61930 Missing authorization in Elegant Themes Divi CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-3850 · CVE Program
- CVE-2026-3850 · NVD
- FIRST EPSS
- GHSA-q2q3-cp6p-r7mv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences