CVEvulnerability
CVE-2026-10780
4.3 MEDIUM
Official page ↗
- Status
- Deferred
- Published
- 2026-06-16
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 4.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-639
Description
The Static Block plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.2. This is due to the static_block_content() shortcode handler retrieving a post via get_post() using an attacker-supplied 'id' attribute and outputting its post_content without verifying the post's status (private, draft, pending) or the requesting user's capability to view it. This makes it possible for authenticated attackers, with contributor-level access and above, to read the contents of arbitrary posts, including private and draft static blocks (and any other post type) created by administrators, by embedding the [static_block_content id="X"] shortcode in their own content and previewing it.
Related
Weakness · CWE (1)
- CWE-639 Authorization Bypass Through User-Controlled Key weakness
References
- https://plugins.trac.wordpress.org/browser/static-block/trunk/static-block.php#L244 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/static-block/trunk/static-block.php#L268 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/static-block/trunk/static-block.php#L270 plugins.trac.wordpress.org
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f88c00ca-cf9e-44e7-9495-686ace1ead21?source=cve www.wordfence.com