
Query Posts Security & Risk Analysis
wordpress.org/plugins/query-postsA WordPress widget that gives you unlimited control over showing posts and pages.
Is Query Posts Safe to Use in 2026?
Use With Caution
Score 63/100Query Posts has 1 unpatched vulnerability. Evaluate alternatives or apply available mitigations.
The "query-posts" v0.3.2 plugin exhibits a mixed security posture. On the positive side, it demonstrates good practices by exclusively using prepared statements for SQL queries and having a relatively contained attack surface with no unprotected entry points. There are no identified dangerous functions, file operations, or external HTTP requests, which are positive indicators of secure coding.
However, a significant concern is the vulnerability history. The presence of one known medium-severity CVE, classified as Cross-Site Scripting, and crucially, an unpatched vulnerability is a major red flag. The static analysis also reveals a notable weakness in output escaping, with 41% of outputs not being properly escaped. This, combined with the historical XSS vulnerability, strongly suggests a risk of persistent or reflected XSS attacks if user-supplied data is not handled with extreme care in the unescaped outputs.
While the plugin avoids common pitfalls like raw SQL and unprotected AJAX/REST API endpoints, the combination of an unpatched XSS vulnerability and a high percentage of unescaped output presents a considerable risk. The lack of nonce checks and capability checks on the entry points (though none are explicitly unprotected) could also be an area for future improvement to enhance robustness against certain attack vectors.
Key Concerns
- Unpatched CVE (Medium severity)
- Significant portion of outputs not properly escaped
- No nonce checks on entry points
- No capability checks on entry points
Query Posts Security Vulnerabilities
CVEs by Year
Severity Breakdown
1 total CVE
Query Posts <= 0.3.2 - Authenticated (Contributor+) Stored Cross-Site Scripting
Query Posts Code Analysis
Output Escaping
Query Posts Attack Surface
Shortcodes 5
WordPress Hooks 3
Maintenance & Trust
Query Posts Maintenance & Trust
Maintenance Signals
Community Trust
Query Posts Alternatives
Per Page Sidebars
per-page-sidebars
The Per Page Sidebars (PPS) plugin allows blog administrators to create a unique sidebar for each Page. No template editing is required.
Per Page Widgets
per-page-widgets
Control widget areas on a per-page / per-post basis.
Post To Sidebar
post-to-sidebar
A WordPress plugin/widget that gives you the ability to put content (posts and custom post types) in your sidebar.
Express Posts
express-posts
Express posts provides a widget to display either a subset of posts, the children of a page or its siblings.
Galaxius Custom Sidebars
galaxius-custom-sidebars
Allows quick creation of unique sidebars for posts, pages and categories.
Query Posts Developer Profile
33 plugins · 34K total installs
How We Detect Query Posts
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/query-posts/css/widget-query-posts.css/wp-content/plugins/query-posts/js/widget-query-posts.js/wp-content/plugins/query-posts/js/widget-query-posts.jsquery-posts/css/widget-query-posts.css?ver=query-posts/js/widget-query-posts.js?ver=HTML / DOM Fingerprints
query-posts-widget-titledata-post-iddata-widget-id<span class="edit"><a class="post-edit-link" href="comments-link<span class="">