Add Custom CSS and JS Security & Risk Analysis

wordpress.org/plugins/add-custom-css-and-js

Now you can write different code of CSS and JS for admin panel and for front-end and you can also use different css and js if user is login.

10 active installs v1.2.0 PHP + WP 3.0.1+ Updated Feb 21, 2023
addcssaddjscsscss3javascript
64
C · Use Caution
CVEs total1
Unpatched1
Last CVEApr 18, 2024
Safety Verdict

Is Add Custom CSS and JS Safe to Use in 2026?

Use With Caution

Score 64/100

Add Custom CSS and JS has 1 unpatched vulnerability. Evaluate alternatives or apply available mitigations.

1 known CVE 1 unpatched Last CVE: Apr 18, 2024Updated 3yr ago
Risk Assessment

The "add-custom-css-and-js" plugin, version 1.2.0, exhibits a mixed security posture. On one hand, the static analysis reveals a remarkably clean codebase with no detected dangerous functions, all SQL queries using prepared statements, and all output properly escaped. Furthermore, there are no identified entry points like AJAX handlers, REST API routes, or shortcodes that are unprotected, and no critical or high-severity taint flows were found.

However, the plugin's history is a significant concern. It has one known and currently unpatched CVE, classified as medium severity, with the last vulnerability occurring very recently. This indicates a recurring issue with security vulnerabilities, and the fact that it remains unpatched is a critical weakness. The vulnerability type being Cross-Site Request Forgery (CSRF) suggests potential issues with state-changing actions not being properly protected, despite the static analysis not explicitly highlighting missing nonce checks on entry points (as there are none apparent). The presence of numerous file operations (31) without further context is also something to note, as complex file handling can sometimes introduce vulnerabilities if not meticulously secured.

In conclusion, while the plugin's core code seems to follow good security practices regarding SQL and output handling, the persistent presence of unpatched vulnerabilities, specifically a recent medium-severity CSRF, overshadows these strengths. The lack of unprotected entry points is positive, but the unpatched CVE is a clear and present danger that requires immediate attention.

Key Concerns

  • Unpatched CVE (medium severity)
  • Recurring vulnerability pattern (CSRF)
  • Numerous file operations (31)
Vulnerabilities
1

Add Custom CSS and JS Security Vulnerabilities

CVEs by Year

1 CVE in 2024 · unpatched
2024
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2024-3903medium · 6.1Cross-Site Request Forgery (CSRF)

Add Custom CSS and JS <= 1.20 - Cross-Site Request Forgery to Stored Cross-Site Scripting

Apr 18, 2024Unpatched
Code Analysis
Analyzed Mar 17, 2026

Add Custom CSS and JS Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
0
0 escaped
Nonce Checks
0
Capability Checks
0
File Operations
31
External Requests
0
Bundled Libraries
0
Attack Surface

Add Custom CSS and JS Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 7
actionadmin_menucustom_css_js.php:20
actionadmin_enqueue_scriptscustom_css_js.php:26
actionwp_enqueue_scriptscustom_css_js.php:32
actionwp_enqueue_scriptscustom_css_js.php:40
actionadmin_enqueue_scriptscustom_css_js.php:45
actionwp_headcustom_css_js.php:50
actionwp_headcustom_css_js.php:58
Maintenance & Trust

Add Custom CSS and JS Maintenance & Trust

Maintenance Signals

WordPress version tested6.1.10
Last updatedFeb 21, 2023
PHP min version
Downloads3K

Community Trust

Rating100/100
Number of ratings2
Active installs10
Developer Profile

Add Custom CSS and JS Developer Profile

mainsufian

3 plugins · 620 total installs

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

How We Detect Add Custom CSS and JS

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

Asset Fingerprints

Asset Paths
/wp-content/uploads/add-custom-css-and-js/cs_for_admin.css/wp-content/uploads/add-custom-css-and-js/cs_for_front.css/wp-content/uploads/add-custom-css-and-js/cs_for_login.css/wp-content/uploads/add-custom-css-and-js/js_for_admin.js/wp-content/uploads/add-custom-css-and-js/js_for_front.js/wp-content/uploads/add-custom-css-and-js/js_for_login.js
Script Paths
/wp-content/uploads/add-custom-css-and-js/js_for_admin.js/wp-content/uploads/add-custom-css-and-js/js_for_front.js/wp-content/uploads/add-custom-css-and-js/js_for_login.js

HTML / DOM Fingerprints

HTML Comments
//write JS file for admin//write JS file for frontend//write JS file for login//write CSS file only for frontend+2 more
FAQ

Frequently Asked Questions about Add Custom CSS and JS