# Page and Post Restriction <= 1.6.0 - Unauthenticated Restricted Content Access Bypass via Role-Restricted Pages and Posts

- **ID:** WPSEC-2026-1468
- **Plugin:** Page and Post Restriction (`page-and-post-restriction`), https://wordpress.org/plugins/page-and-post-restriction/
- **Affected versions:** all versions before 1.6.1
- **Fixed in:** 1.6.1 (Update to 1.6.1 or later.)
- **Severity:** Low 3.7 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-863
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-22)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/page-and-post-restriction
- **Fix released:** 2026-10-21
- **Published:** 2026-10-22
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1468/

## Description

The Page and Post Restriction plugin for WordPress is vulnerable to an access restriction bypass in all versions up to, and including, 1.6.0. This is due to the front-end restriction logic only blocking guests when the 'Require Login' option was set, so pages and posts configured with role-based restrictions but without 'Require Login' were not protected from logged-out visitors. This makes it possible for unauthenticated attackers to view pages and posts that were meant to be limited to specific user roles, when such a restriction is configured.

## References

- https://wpsec.com/vuln/WPSEC-2026-1468/
- https://plugins.svn.wordpress.org/page-and-post-restriction/tags/1.6.1/
- https://wordpress.org/plugins/page-and-post-restriction/

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

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.
