Top Bar Security & Risk Analysis

wordpress.org/plugins/top-bar

Simply the easiest way to add a topbar to your website. Create a notification bar in no-time and show a message and a button to your visitors.

20K active installs v3.0.6 PHP + WP 3.6+ Updated Jan 29, 2026
bannerinfo-barnotificationnotification-bartop-bar
98
A · Safe
CVEs total3
Unpatched0
Last CVEApr 10, 2024
Safety Verdict

Is Top Bar Safe to Use in 2026?

Generally Safe

Score 98/100

Top Bar has a strong security track record. Known vulnerabilities have been patched promptly.

3 known CVEsLast CVE: Apr 10, 2024Updated 2mo ago
Risk Assessment

The "top-bar" plugin, version 3.0.6, presents a mixed security picture. On the positive side, static analysis reveals no identified dangerous functions, no SQL queries without prepared statements, no file operations, no external HTTP requests, and importantly, no identified taint flows of any severity. The attack surface also appears clean with zero identified entry points without authorization. However, a significant concern arises from the code's output escaping, with only 26% of outputs being properly escaped. This indicates a high potential for Cross-Site Scripting (XSS) vulnerabilities, especially given the plugin's history. The plugin has a history of three medium-severity Cross-Site Scripting vulnerabilities, with the most recent one being addressed in April 2024. While there are currently no unpatched CVEs, the recurring nature of XSS issues suggests a systemic weakness in how user-provided data is handled and sanitized before being rendered in the front-end.

Key Concerns

  • Low percentage of properly escaped output
  • History of medium severity XSS vulnerabilities
Vulnerabilities
3

Top Bar Security Vulnerabilities

CVEs by Year

1 CVE in 2022
2022
2 CVEs in 2024
2024
Patched Has unpatched

Severity Breakdown

Medium
3

3 total CVEs

CVE-2024-31928medium · 4.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Top Bar <= 3.0.5 - Authenticated (Admin+) Stored Cross-Site Scripting

Apr 10, 2024 Patched in 3.0.6 (71d)
CVE-2024-1660medium · 4.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Top Bar <= 3.0.4 - Authenticated (Admin+) Stored Cross-Site Scripting

Mar 25, 2024 Patched in 3.0.5 (23d)
CVE-2022-2629medium · 5.5Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Top Bar <= 3.0.3 - Authenticated (Administrator+) Stored Cross-Site Scripting

Sep 8, 2022 Patched in 3.0.4 (502d)
Code Analysis
Analyzed Mar 16, 2026

Top Bar Code Analysis

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

Output Escaping

26% escaped90 total outputs
Attack Surface

Top Bar Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 7
actionadmin_enqueue_scriptsinc\topbar-admin-scripts.php:4
actionwp_enqueue_scriptsinc\topbar-front-scripts.php:4
actionadmin_menuinc\topbar-settings.php:4
actionadmin_initinc\topbar-settings.php:13
actionplugins_loadedinc\topbar-text-domain.php:4
actionadmin_inittopbar.php:28
actionadmin_noticestopbar.php:32
Maintenance & Trust

Top Bar Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 29, 2026
PHP min version
Downloads299K

Community Trust

Rating80/100
Number of ratings43
Active installs20K
Developer Profile

Top Bar Developer Profile

WP Darko

8 plugins · 59K total installs

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

How We Detect Top Bar

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/top-bar/css/admin_topbar_icon.css/wp-content/plugins/top-bar/css/admin_topbar_style.css/wp-content/plugins/top-bar/js/tpbr.min.js/wp-content/plugins/top-bar/css/topbar_style.css/wp-content/plugins/top-bar/js/tpbr_front.min.js
Script Paths
../css/admin_topbar_icon.css../css/admin_topbar_style.css../js/tpbr.min.js../css/topbar_style.css../js/tpbr_front.min.js

HTML / DOM Fingerprints

JS Globals
tpbr_settings
FAQ

Frequently Asked Questions about Top Bar