Headless Mode Security & Risk Analysis

wordpress.org/plugins/headless-mode

Once you take the head off of WordPress, nobody needs to see it. This plugin hides the front end by redirecting to the shiny static (etc) site.

2K active installs v0.4.0 PHP + WP 5.0+ Updated Jul 18, 2024
gatsbyheadlessjamstackstatic
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Headless Mode Safe to Use in 2026?

Generally Safe

Score 92/100

Headless Mode has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 1yr ago
Risk Assessment

The "headless-mode" v0.4.0 plugin exhibits a generally strong security posture based on the provided static analysis. The complete absence of direct attack surface entry points like AJAX handlers, REST API routes, shortcodes, and cron events, particularly those unprotected by authentication, is a significant positive. The code also demonstrates good practices with 100% of SQL queries using prepared statements and no file operations or external HTTP requests, further reducing potential vulnerabilities. The single capability check, while present, is a minimal measure given the lack of other identified entry points.

However, several areas raise concerns. The presence of 3 total outputs with 67% not properly escaped indicates a potential for Cross-Site Scripting (XSS) vulnerabilities, especially if these outputs handle user-supplied data without adequate sanitization. The absence of nonce checks on any identified entry points is also a notable weakness, as nonces are a crucial defense against Cross-Site Request Forgery (CSRF) attacks. The fact that there are 0 taint flows analyzed, while seemingly positive, could also indicate that the static analysis tool was not able to effectively trace data flows within the plugin, potentially masking existing issues. The lack of any recorded vulnerabilities in its history is positive, but this, combined with the limited taint analysis, should not be taken as definitive proof of a completely secure plugin.

In conclusion, the plugin's strengths lie in its minimal attack surface and secure handling of database interactions. The primary weaknesses are the unescaped output and the lack of nonce checks. While the plugin has no recorded vulnerability history, the static analysis reveals potential for XSS and CSRF vulnerabilities that warrant attention.

Key Concerns

  • Unescaped output identified
  • Missing nonce checks on entry points
  • Taint analysis incomplete/unable to trace flows
Vulnerabilities
None known

Headless Mode Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Headless Mode Code Analysis

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

Output Escaping

67% escaped3 total outputs
Attack Surface

Headless Mode Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 2
actionadmin_menuheadless-mode.php:23
actionparse_requestheadless-mode.php:81
Maintenance & Trust

Headless Mode Maintenance & Trust

Maintenance Signals

WordPress version tested6.6.5
Last updatedJul 18, 2024
PHP min version
Downloads33K

Community Trust

Rating100/100
Number of ratings6
Active installs2K
Developer Profile

Headless Mode Developer Profile

Ben Meredith

3 plugins · 11K total installs

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

How We Detect Headless Mode

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

Asset Fingerprints

HTML / DOM Fingerprints

Shortcode Output
<div class="wrap"><h2>Headless Mode</h2><p> Your site is currently set to redirect to:</p><p> <code>https://hiroy.club</code></p><p> Add the following to your wp-config.php file to redirect all traffic to the new front end of the site (change the URL before pasting!):</p><p> <code> define( 'HEADLESS_MODE_CLIENT_URL', 'https://hiroy.club' );</code></p><p> <em> If after saving the wp-config.php file, your site is still not redirecting, make sure you've replaced <code>https://hiroy.club</code> above with your front end web address. </em></p></div>
FAQ

Frequently Asked Questions about Headless Mode