CVE-2026-3852: Elegant Themes Divi stored XSS in Social Media Follow shortcode

CVE-2026-3852 · Severity: medium · CVSS 6.4 · Published 2026-09-03

The Divi theme for WordPress is a popular page builder used by thousands of websites. A stored cross-site scripting vulnerability in the Social Media Follow module allows authenticated users with contributor-level access to inject malicious scripts that execute in the browsers of site visitors. This could result in account takeover, session hijacking, or redirection to malicious sites.

Technologies: Elegant Themes Divi. Vendors: Elegant Themes.

Quick answers

Is CVE-2026-3852 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-3852 being exploited in the wild.
How severe is CVE-2026-3852?
Medium severity, with a CVSS score of 6.4, published 3 September 2026.
Which products and versions are affected?
Elegant Themes Divi up to and including 4.27.6.
Is there a fix for CVE-2026-3852?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-3852 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-3852?
Check whether you run Elegant Themes Divi at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A stored XSS vulnerability exists in the Divi theme's Social Media Follow module via the `skype_url` shortcode attribute. The root cause is a three-part sanitization failure: (1) the `skype_url` field is not included in the `$url_options` whitelist, preventing invocation of `esc_url_raw()` during shortcode processing, (2) the render code explicitly skips `esc_url()` for Skype URLs, and (3) only `sanitize_text_field()` is applied, which preserves quote characters enabling attribute breakout. The unsanitized value is interpolated directly into a single-quoted `href` attribute. An authenticated attacker with Contributor-level access or above can inject arbitrary JavaScript that executes whenever users interact with the injected element. The vulnerability affects Divi versions up to and including 4.27.6 and has been patched in version 4.27.7.

Affected products

  • Elegant Themes Divi up to and including 4.27.6

Timeline

  • 2026-09-03: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.