# Hash Elements <= 1.6.0 - Authenticated (Contributor+) Sensitive Information Exposure via Post Widgets 'posts_post_type' Setting

- **ID:** WPSEC-2026-4256
- **Plugin:** Hash Elements (`hash-elements`), https://wordpress.org/plugins/hash-elements/
- **Affected versions:** all versions before 1.6.1
- **Fixed in:** 1.6.1 (Update to 1.6.1 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-200
- **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-4256/

## Description

The Hash Elements plugin for WordPress is vulnerable to Sensitive Information Exposure via the 'posts_post_type' (Source) setting of its News, Tile, Ticker, Carousel, Timeline and Blog widgets in all versions up to, and including, 1.6.0. This is due to the saved setting being passed directly to WP_Query without checking it against the public post types offered in the Source dropdown. This makes it possible for authenticated attackers, with contributor-level access and above, to list and display the titles and content of published entries of non-public post types, such as WooCommerce coupon codes.

## References

- https://wpsec.com/vuln/WPSEC-2026-4256/
- 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-4256/

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.
