REST API – Head Tags Security & Risk Analysis

wordpress.org/plugins/rest-api-head-tags

Adds all the meta tags of the head section to WordPress REST API responses, including the ones generated by SEO plugins like Yoast or All in One SEO.

200 active installs v1.2.1 PHP 5.6+ WP 4.7+ Updated Mar 26, 2021
apimetarestseoyoast
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is REST API – Head Tags Safe to Use in 2026?

Generally Safe

Score 85/100

REST API – Head Tags has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 5yr ago
Risk Assessment

The "rest-api-head-tags" plugin version 1.2.1 exhibits a mixed security posture. On the positive side, it demonstrates good practices by exclusively using prepared statements for its SQL queries and has no known vulnerabilities in its history, suggesting a history of stable and secure development. It also avoids file operations and external HTTP requests, which are common sources of vulnerabilities.

However, significant concerns arise from the attack surface analysis. The plugin exposes a single AJAX handler that lacks any authentication or capability checks. This is a critical weakness, as it provides an unprotected entry point for malicious actors. While no critical or high severity taint flows were identified, the presence of two flows with unsanitized paths is concerning and could potentially lead to issues if the data handled by these flows is ever exploited. The low percentage of properly escaped output further exacerbates this risk, as it increases the likelihood of cross-site scripting (XSS) vulnerabilities.

In conclusion, while the plugin benefits from a clean vulnerability history and secure SQL handling, the unprotected AJAX endpoint and the unescaped output represent substantial security risks that need immediate attention. The absence of nonce and capability checks on its single entry point is a major oversight that could be exploited.

Key Concerns

  • AJAX handler without auth checks
  • Low percentage of properly escaped output
  • Flows with unsanitized paths
  • No nonce checks on AJAX
  • No capability checks
Vulnerabilities
None known

REST API – Head Tags Security Vulnerabilities

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

REST API – Head Tags Code Analysis

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

SQL Query Safety

100% prepared3 total queries

Output Escaping

43% escaped7 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
save_settings (shared\class-frontity-plugin.php:221)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
1 unprotected

REST API – Head Tags Attack Surface

Entry Points1
Unprotected1

AJAX Handlers 1

authwp_ajax_frontity_headtags_clear_cacheclass-frontity-headtags-plugin.php:91
WordPress Hooks 32
actionadmin_initclass-frontity-headtags-plugin.php:81
actionadmin_initclass-frontity-headtags-plugin.php:82
actionadmin_initclass-frontity-headtags-plugin.php:83
actionrest_api_initclass-frontity-headtags-plugin.php:85
actionrest_api_initclass-frontity-headtags-plugin.php:86
actionrest_api_initclass-frontity-headtags-plugin.php:87
actiontemplate_redirectincludes\class-frontity-headtags.php:245
actiontemplate_redirectincludes\class-frontity-headtags.php:270
actiontemplate_redirectincludes\class-frontity-headtags.php:273
filterfrontity_headtags_resultincludes\filters\class-frontity-headtags-filters.php:19
filterfrontity_headtags_resultincludes\filters\class-frontity-headtags-filters.php:20
actionprofile_updateincludes\hooks\class-frontity-headtags-author-hooks.php:42
actiondelete_userincludes\hooks\class-frontity-headtags-author-hooks.php:43
actionsave_postincludes\hooks\class-frontity-headtags-post-type-hooks.php:66
actiondelete_postincludes\hooks\class-frontity-headtags-post-type-hooks.php:67
actionedited_termincludes\hooks\class-frontity-headtags-taxonomy-hooks.php:47
actiondelete_termincludes\hooks\class-frontity-headtags-taxonomy-hooks.php:48
actionfrontity_headtags_replace_queryincludes\integrations\class-frontity-headtags-aioseo-3.php:19
actionfrontity_headtags_restore_queryincludes\integrations\class-frontity-headtags-aioseo-3.php:20
filterfrontity_headtags_htmlincludes\integrations\class-frontity-headtags-aioseo-3.php:52
filterwp_titleincludes\integrations\class-frontity-headtags-aioseo-3.php:54
filterfrontity_headtags_resultincludes\integrations\class-frontity-headtags-aioseo-3.php:64
actionfrontity_headtags_replace_queryincludes\integrations\class-frontity-headtags-aioseo-4.php:28
actionfrontity_headtags_restore_queryincludes\integrations\class-frontity-headtags-aioseo-4.php:29
filterpre_get_document_titleincludes\integrations\class-frontity-headtags-aioseo-4.php:32
filterwp_titleincludes\integrations\class-frontity-headtags-aioseo-4.php:33
actionfrontity_headtags_replace_queryincludes\integrations\class-frontity-headtags-yoast.php:19
actionfrontity_headtags_restore_queryincludes\integrations\class-frontity-headtags-yoast.php:20
actionadmin_menushared\class-frontity-plugin.php:137
actionadmin_enqueue_scriptsshared\class-frontity-plugin.php:138
actionadmin_noticesshared\class-frontity-plugin.php:143
actioninitshared\class-frontity-plugin.php:246
Maintenance & Trust

REST API – Head Tags Maintenance & Trust

Maintenance Signals

WordPress version tested5.7.15
Last updatedMar 26, 2021
PHP min version5.6
Downloads18K

Community Trust

Rating100/100
Number of ratings2
Active installs200
Developer Profile

REST API – Head Tags Developer Profile

frontity

1 plugin · 200 total installs

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

How We Detect REST API – Head Tags

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/rest-api-head-tags/admin/build/bundle.js
Script Paths
/wp-content/plugins/rest-api-head-tags/admin/build/bundle.js

HTML / DOM Fingerprints

JS Globals
window.frontity.plugins.frontity_headtags.urlwindow.frontity.plugins.frontity_headtags.settings
FAQ

Frequently Asked Questions about REST API – Head Tags