Custom Query Shortcode Security & Risk Analysis

wordpress.org/plugins/custom-query-shortcode

A powerful shortcode that enables you to query anything you want and display it however you like, on both pages and posts, and in widgets.

30 active installs v0.5.0 PHP + WP 3.3+ Updated Aug 22, 2025
postqueryshortcode
99
A · Safe
CVEs total1
Unpatched0
Last CVEAug 24, 2025
Safety Verdict

Is Custom Query Shortcode Safe to Use in 2026?

Generally Safe

Score 99/100

Custom Query Shortcode has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Aug 24, 2025Updated 7mo ago
Risk Assessment

The "custom-query-shortcode" plugin exhibits a generally positive security posture based on the static analysis. The absence of dangerous functions, file operations, external HTTP requests, and the use of prepared statements for all SQL queries are strong indicators of secure coding practices. The high percentage of properly escaped output further contributes to a reduced risk of cross-site scripting vulnerabilities. The limited attack surface, with only one shortcode and no unprotected entry points, is also a significant strength.

However, the plugin does have a history of a medium severity vulnerability, specifically a path traversal issue. While this vulnerability is listed as patched, its existence suggests a potential for previously undiscovered or similar vulnerabilities in how it handles file paths or input that could be used to manipulate them. The lack of nonce checks and capability checks, while not directly exploitable through the current static analysis findings, represents a missed opportunity to further harden the plugin against various attack vectors that often exploit these weaknesses.

In conclusion, "custom-query-shortcode" v0.5.0 appears to be a relatively secure plugin due to its adherence to many secure coding principles. The primary concern stems from its past vulnerability, which highlights the importance of ongoing vigilance and thorough security testing. While the current static analysis doesn't reveal immediate critical threats, the absence of certain security checks warrants consideration for future development and auditing.

Key Concerns

  • Medium severity vulnerability history
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
1

Custom Query Shortcode Security Vulnerabilities

CVEs by Year

1 CVE in 2025
2025
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2025-8562medium · 6.5Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Custom Query Shortcode <= 0.4.0 - Authenticated (Contributor+) Path Traversal via lens Parameter

Aug 24, 2025 Patched in 0.5.0 (1d)
Code Analysis
Analyzed Mar 16, 2026

Custom Query Shortcode Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
2
39 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

95% escaped41 total outputs
Attack Surface

Custom Query Shortcode Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[query] src\class-queryshortcode.php:106
WordPress Hooks 3
filterwidget_textinit.php:27
actioninitsrc\class-queryshortcode.php:52
actiontemplate_redirectsrc\class-queryshortcode.php:53
Maintenance & Trust

Custom Query Shortcode Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedAug 22, 2025
PHP min version
Downloads3K

Community Trust

Rating100/100
Number of ratings1
Active installs30
Developer Profile

Custom Query Shortcode Developer Profile

Peter Hebert

3 plugins · 130 total installs

100
trust score
Avg Security Score
100/100
Avg Patch Time
1 days
View full developer profile
Detection Fingerprints

How We Detect Custom Query Shortcode

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/custom-query-shortcode/assets/css/query-shortcode.css
Script Paths
/wp-content/plugins/custom-query-shortcode/assets/js/query-shortcode.js
Version Parameters
custom-query-shortcode/assets/css/query-shortcode.css?ver=custom-query-shortcode/assets/js/query-shortcode.js?ver=

HTML / DOM Fingerprints

CSS Classes
cqs-gridcqs-grid-item
Data Attributes
data-cqs-cols
Shortcode Output
[query]<!-- Start of query shortcode --><!-- End of query shortcode -->
FAQ

Frequently Asked Questions about Custom Query Shortcode