# Hash Elements <= 1.6.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Isotope Markup Auto-Initialization

- **ID:** WPSEC-2026-4255
- **Plugin:** Hash Elements (`hash-elements`), https://wordpress.org/plugins/hash-elements/
- **Affected versions:** from 1.0.4 before 1.6.1
- **Fixed in:** 1.6.1 (Update to 1.6.1 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 Low, affected versions Low (as of 2026-11-30)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/hash-elements
- **Fix released:** 2026-11-29
- **Published:** 2026-11-30
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4255/

## Description

The Hash Elements plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Isotope markup auto-initialization in versions 1.0.4 up to, and including, 1.6.0. This is due to the plugin loading the bundled Isotope library on every Elementor-rendered page with its markup auto-start left on. Any element carrying a data-isotope or data-isotope-options attribute, or the js-isotope class, is started with options read from that attribute, and an attacker-chosen 'filter' option is passed to jQuery's .is(), which can parse it as HTML. 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-4255/
- https://plugins.svn.wordpress.org/hash-elements/tags/1.6.1/
- https://wordpress.org/plugins/hash-elements/

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

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.
