# Max Mega Menu <= 3.10.10 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting via 'data-mobile-force-width', 'data-panel-width' and 'data-panel-inner-width' Attributes

- **ID:** WPSEC-2026-3795
- **Plugin:** Max Mega Menu (`megamenu`), https://wordpress.org/plugins/megamenu/
- **Affected versions:** all versions before 3.10.11
- **Fixed in:** 3.10.11 (Update to 3.10.11 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-11-24)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/megamenu
- **Fix released:** 2026-11-23
- **Published:** 2026-11-24
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3795/

## Description

The Max Mega Menu plugin for WordPress is vulnerable to DOM-Based Stored Cross-Site Scripting via the 'data-mobile-force-width', 'data-panel-width' and 'data-panel-inner-width' attributes of menu elements in all versions up to, and including, 3.10.10. This is due to the front-end script, loaded on every page, reading these width selectors from the data attributes of any element with the 'max-mega-menu' class and passing them directly to jQuery(), which builds HTML elements when given a value that looks like markup. This makes it possible for authenticated attackers with contributor-level access and above to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-3795/
- https://plugins.svn.wordpress.org/megamenu/tags/3.10.11/
- https://wordpress.org/plugins/megamenu/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3795/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
