
Browser Body Classes with Shortcodes Security & Risk Analysis
wordpress.org/plugins/browser-body-classes-with-shortcodesAdds browser-specific body classes for styling, and shortcodes to show or hide content to/from specified browsers and devices.
Is Browser Body Classes with Shortcodes Safe to Use in 2026?
Generally Safe
Score 85/100Browser Body Classes with Shortcodes has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.
The plugin "browser-body-classes-with-shortcodes" v1.6 exhibits a generally good security posture based on the provided static analysis. There are no known vulnerabilities in its history, no dangerous functions are used, and all SQL queries are properly prepared. The attack surface is minimal, with only two shortcodes and no unprotected entry points identified. The plugin also implements capability checks, which is a positive sign for access control.
However, a significant concern arises from the complete lack of output escaping. With seven outputs identified and none being properly escaped, this presents a clear Cross-Site Scripting (XSS) risk. Any data processed or displayed by these outputs could be manipulated by an attacker to inject malicious scripts, potentially compromising user sessions or defacing the website. The absence of taint analysis results and the lack of nonce checks on AJAX handlers (though there are no AJAX handlers) also represent missed opportunities to further harden the plugin against potential attacks.
In conclusion, while the plugin demonstrates strengths in areas like SQL security and a limited attack surface, the unescaped output is a critical weakness that needs immediate attention. The lack of known vulnerabilities is a positive indicator, but it does not negate the inherent risks posed by unescaped user-controlled data. Addressing the output escaping issue is paramount to improving the plugin's security.
Key Concerns
- Outputs not properly escaped
Browser Body Classes with Shortcodes Security Vulnerabilities
Browser Body Classes with Shortcodes Code Analysis
Output Escaping
Browser Body Classes with Shortcodes Attack Surface
Shortcodes 2
WordPress Hooks 13
Maintenance & Trust
Browser Body Classes with Shortcodes Maintenance & Trust
Maintenance Signals
Community Trust
Browser Body Classes with Shortcodes Alternatives
Widget CSS Classes
widget-css-classes
Add custom classes and ids plus first, last, even, odd, and numbered classes to your widgets.
GravityWP – CSS Selector
gravitywp-css-selector
Easily select CSS Ready Classes for your fields within Gravity Forms
Custom Classes
custom-classes
Allows users to create custom classes on a per-post/term basis.
CSS Ready Classes for Gravity Forms
css-ready-classes-gravity-forms
Conveniently select Gravity Form CSS Ready Classes from your form fields Appearance tab.
Widget Classes
widget-classes
Widget Classes allows you to add classes to your individual widgets to be used by your theme. This is done by appending an additional form field to th …
Browser Body Classes with Shortcodes Developer Profile
5 plugins · 130 total installs
How We Detect Browser Body Classes with Shortcodes
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
HTML / DOM Fingerprints
firefoxchromesafarioperamaxthonmsiens4lynx+33 moreis_geckois_chromeis_safariis_operais_maxthonis_IE+34 moreshowto