
Custom Body Class Security & Risk Analysis
wordpress.org/plugins/wp-custom-body-classA plain simple plugin which allows you to add a custom CSS class the HTML body tag.
Is Custom Body Class Safe to Use in 2026?
Generally Safe
Score 99/100Custom Body Class has a strong security track record. Known vulnerabilities have been patched promptly.
The "wp-custom-body-class" v0.7.5 plugin exhibits a mixed security posture. On the positive side, it demonstrates good practices by using prepared statements for all SQL queries, implementing nonce checks, and including capability checks. The absence of AJAX handlers, REST API routes, shortcodes, and cron events significantly limits the direct attack surface. However, the taint analysis reveals two flows with unsanitized paths, both classified as high severity. This suggests a potential for vulnerabilities where user-supplied input might be processed without adequate sanitization, despite the overall low number of flows analyzed.
The plugin's vulnerability history is a significant concern. It has a total of two known CVEs, one of which was a high severity vulnerability and another a medium severity. While there are currently no unpatched vulnerabilities, the past occurrence of Cross-Site Request Forgery (CSRF) and Cross-Site Scripting (XSS) vulnerabilities, and the recent nature of the last vulnerability (2019), indicate that the plugin has had issues with input sanitization and security in the past. This historical context, combined with the high-severity taint flows, warrants careful consideration.
In conclusion, while the plugin has made efforts to implement secure coding practices like prepared statements and checks, the presence of high-severity taint flows and a history of significant vulnerabilities are considerable weaknesses. The low number of analyzed flows might be misleading, and the identified taint issues require immediate attention and remediation to ensure user data and site integrity.
Key Concerns
- High severity taint flows found
- Past High severity vulnerability
- Past Medium severity vulnerability
- 76% of output properly escaped
Custom Body Class Security Vulnerabilities
CVEs by Year
Severity Breakdown
2 total CVEs
Custom Body Class <= 0.6.0 - Cross-Site Request Forgery
Custom Body Class <= 0.6.0 - Cross-Site Scripting
Custom Body Class Code Analysis
SQL Query Safety
Output Escaping
Data Flow Analysis
Custom Body Class Attack Surface
WordPress Hooks 7
Maintenance & Trust
Custom Body Class Maintenance & Trust
Maintenance Signals
Community Trust
Custom Body Class Alternatives
Body Class By URL Parameter
body-class-by-url-parameter
It adds a CSS class to the body depending on the parameters included in the URL
Insert Body Class Plugin for WordPress
insert-body-class
Allow you to add Body Class in any page or post, just easily
Add Device Type to Body Class
add-device-type-to-body-class
This plugin is used to add type of device (mobile, tablet, desktop) in body class of wordpress website. This class is used to add device specific CSS.
Menu Item Custom Attributes
menu-item-custom-attributes
Easily add custom ID, Class, and Data attributes to WordPress menu items directly from the admin panel — no coding required.
Current Theme Body Class
current-theme-body-class
Add you current theme slug to your HTML body class for easy customization
Custom Body Class Developer Profile
1 plugin · 10K total installs
How We Detect Custom Body Class
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/wp-custom-body-class/css/admin-custom-body-class.css/wp-content/plugins/wp-custom-body-class/js/admin-custom-body-class.js/wp-content/plugins/wp-custom-body-class/js/admin-custom-body-class.jswp-custom-body-class/css/admin-custom-body-class.css?ver=wp-custom-body-class/js/admin-custom-body-class.js?ver=HTML / DOM Fingerprints
custom-body-class-admin-container<!-- wp:paragraph --><!-- /wp:paragraph --><!-- wp:group --><!-- /wp:group -->+2 moredata-custom-body-class-iddata-custom-body-class-post-idcustom_body_class_post_values