Custom Global Variables Security & Risk Analysis

wordpress.org/plugins/custom-global-variables

Easily create custom variables that can be accessed globally in Wordpress and PHP. Retrieval of information is extremely fast, with no database calls.

5K active installs v1.1.2 PHP 5.6+ WP 3.0.1+ Updated Mar 22, 2023
custom-global-variablesoptionssettingsshortcodesvariables
85
A · Safe
CVEs total1
Unpatched0
Last CVEJan 11, 2021
Safety Verdict

Is Custom Global Variables Safe to Use in 2026?

Generally Safe

Score 85/100

Custom Global Variables has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Jan 11, 2021Updated 3yr ago
Risk Assessment

The 'custom-global-variables' plugin, version 1.1.2, presents a mixed security profile. On the positive side, it demonstrates good practices regarding SQL queries, exclusively using prepared statements, and incorporates nonce and capability checks. The attack surface is minimal, with only one shortcode and no AJAX handlers, REST API routes, or cron events, and crucially, all entry points appear to be protected. Taint analysis shows no critical or high-severity vulnerabilities, suggesting a lack of complex data flow issues in this version.

However, there are significant concerns. A substantial portion (64%) of output escaping is not properly handled, indicating a risk of Cross-Site Scripting (XSS) vulnerabilities. The plugin also performs file operations without explicit indication of sanitization or permission checks, and the history of one medium-severity CVE for XSS in 2021 highlights a past weakness in output neutralization. While the current version has no unpatched CVEs, the historical XSS vulnerability and the high rate of unescaped output are concerning indicators that input validation and output escaping require careful attention to prevent potential security breaches.

Key Concerns

  • High percentage of unescaped output
  • Past XSS vulnerability (medium severity)
  • File operations without clear security checks
Vulnerabilities
1

Custom Global Variables Security Vulnerabilities

CVEs by Year

1 CVE in 2021
2021
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2021-3124medium · 5.5Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Custom Global Variables <= 1.0.5 - Stored Cross-Site Scripting via 'name'

Jan 11, 2021 Patched in 1.1.1 (1107d)
Code Analysis
Analyzed Mar 16, 2026

Custom Global Variables Code Analysis

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

Output Escaping

36% escaped14 total outputs
Attack Surface

Custom Global Variables Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[cgv] custom-global-variables.php:51
WordPress Hooks 1
actionadmin_menucustom-global-variables.php:48
Maintenance & Trust

Custom Global Variables Maintenance & Trust

Maintenance Signals

WordPress version tested6.1.10
Last updatedMar 22, 2023
PHP min version5.6
Downloads21K

Community Trust

Rating100/100
Number of ratings10
Active installs5K
Developer Profile

Custom Global Variables Developer Profile

akirak

1 plugin · 5K total installs

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

How We Detect Custom Global Variables

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/custom-global-variables/style.css/wp-content/plugins/custom-global-variables/script.js
Script Paths
/wp-content/plugins/custom-global-variables/script.js
Version Parameters
custom-global-variables/style.css?ver=custom-global-variables/script.js?ver=

HTML / DOM Fingerprints

CSS Classes
custom-global-variables-stylecustom-global-variables-script
Data Attributes
id="custom-global-variables-table-definitions"
JS Globals
cgv
Shortcode Output
[cgv echo $GLOBALS['cgv']['
FAQ

Frequently Asked Questions about Custom Global Variables