WP Header Images Security & Risk Analysis

wordpress.org/plugins/wp-header-images

A great WordPress plugin which helps you to choose a unique image for each menu page.

6K active installs v2.1.3 PHP 7.0+ WP 3.0.1+ Updated Apr 25, 2025
custom-headercustom-imagesheader-imagesimage-sliderimages-slideshow
100
A · Safe
CVEs total1
Unpatched0
Last CVEOct 11, 2021
Safety Verdict

Is WP Header Images Safe to Use in 2026?

Generally Safe

Score 100/100

WP Header Images has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Oct 11, 2021Updated 11mo ago
Risk Assessment

The wp-header-images plugin version 2.1.3 exhibits a generally good security posture, with no critical or high severity issues detected in the static and taint analysis. The plugin demonstrates strong adherence to secure coding practices by properly escaping a high percentage of outputs and utilizing nonce checks and capability checks for its entry points. The absence of file operations and external HTTP requests further reduces its attack surface.

However, a significant concern arises from the static analysis revealing that 100% of the SQL queries are not using prepared statements. This indicates a potential vulnerability to SQL injection attacks, especially if user-supplied data is being used in these queries without proper sanitization. The plugin's vulnerability history, while showing no currently unpatched CVEs, does include one medium severity vulnerability related to Cross-site Scripting (XSS) from 2021. This historical pattern suggests that input sanitization and output escaping, while generally good, may not be consistently applied in all scenarios, particularly concerning SQL interactions.

In conclusion, while the plugin has implemented several important security measures and benefits from a clean current state regarding known vulnerabilities, the lack of prepared statements for all SQL queries presents a notable risk. Addressing this specific issue would significantly enhance the plugin's overall security. The past XSS vulnerability also serves as a reminder for continuous vigilance in input handling and output rendering.

Key Concerns

  • SQL queries not using prepared statements
Vulnerabilities
1

WP Header Images Security Vulnerabilities

CVEs by Year

1 CVE in 2021
2021
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

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

WP Header Images <= 2.0.0 - Reflected Cross-Site Scripting

Oct 11, 2021 Patched in 2.0.1 (834d)
Code Analysis
Analyzed Mar 16, 2026

WP Header Images Code Analysis

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

SQL Query Safety

0% prepared2 total queries

Output Escaping

93% escaped215 total outputs
Data Flows
All sanitized

Data Flow Analysis

6 flows
wphi_save_dom_settings (inc\functions.php:841)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WP Header Images Attack Surface

Entry Points2
Unprotected0

AJAX Handlers 1

authwp_ajax_wphi_update_sidebar_settingsinc\functions.php:1022

Shortcodes 1

[WP_HEADER_IMAGES] index.php:92
WordPress Hooks 17
actionwphi_before_menu_listinc\functions-inner.php:2
actionwp_headinc\functions.php:733
filterget_header_image_taginc\functions.php:814
actionstorefront_header_stylesinc\functions.php:815
actioninitinc\functions.php:819
actioninitinc\functions.php:838
actionwp_footerinc\functions.php:868
actionwp_footerinc\functions.php:1057
actiongluri_slider_bannerinc\gluri-slider-support.php:9
actionwphi_before_menu_listinc\gluri-slider-support.php:10
actioninitinc\gluri-slider-support.php:11
actionwphi_inside_banner_wrapperinc\gluri-slider-support.php:12
actionadmin_enqueue_scriptsindex.php:67
actionwp_enqueue_scriptsindex.php:68
actionadmin_menuindex.php:80
actionwp_footerindex.php:88
actionapply_header_imagesindex.php:89
Maintenance & Trust

WP Header Images Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedApr 25, 2025
PHP min version7.0
Downloads232K

Community Trust

Rating86/100
Number of ratings36
Active installs6K
Developer Profile

WP Header Images Developer Profile

Fahad Mahmood

40 plugins · 33K total installs

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

How We Detect WP Header Images

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-header-images/css/admin-styles.css/wp-content/plugins/wp-header-images/css/bootstrap.min.css/wp-content/plugins/wp-header-images/css/fontawesome.min.css/wp-content/plugins/wp-header-images/js/bootstrap.min.js/wp-content/plugins/wp-header-images/js/fontawesome.min.js/wp-content/plugins/wp-header-images/js/scripts.js
Script Paths
/wp-content/plugins/wp-header-images/js/scripts.js
Version Parameters
wp-header-images/css/admin-styles.css?ver=wp-header-images/css/bootstrap.min.css?ver=wp-header-images/css/fontawesome.min.css?ver=wp-header-images/js/bootstrap.min.js?ver=wp-header-images/js/fontawesome.min.js?ver=wp-header-images/js/scripts.js?ver=

HTML / DOM Fingerprints

CSS Classes
wphi_dom_element
Data Attributes
data-wphi
JS Globals
wphi_pro
Shortcode Output
[WP_HEADER_IMAGES]
FAQ

Frequently Asked Questions about WP Header Images