Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript Security & Risk Analysis

wordpress.org/plugins/add-custom-codes

Add custom codes to your wordpress site. A completely free plugin to add Custom PHP functions, HTML, CSS, Javascript, any other codes to your website.

1K active installs v4.80 PHP 7.4+ WP 6.6.2+ Updated Apr 29, 2025
custom-codescustom-cssfooter-codesheader-codesphp-snippets
39
D · High Risk
CVEs total4
Unpatched4
Last CVEDec 31, 2025
Download
Safety Verdict

Is Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript Safe to Use in 2026?

High Risk

Score 39/100

Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript carries significant security risk with 4 known CVEs, 4 still unpatched. Consider switching to a maintained alternative.

4 known CVEs 4 unpatched Last CVE: Dec 31, 2025Updated 11mo ago
Risk Assessment

The 'add-custom-codes' plugin v4.80 presents a mixed security profile. While it demonstrates good practices like using prepared statements for all SQL queries and a significant percentage of proper output escaping, several concerning elements stand out. The presence of an unprotected AJAX handler is a critical oversight, creating a direct entry point for potential attackers. Furthermore, the plugin has a history of 4 known CVEs, with all of them remaining unpatched, including one high-severity vulnerability. This history, coupled with common vulnerability types like Missing Authorization, Cross-Site Scripting (XSS), Cross-Site Request Forgery (CSRF), and Code Injection, suggests recurring security weaknesses that have not been adequately addressed.

The static analysis also reveals a flow with unsanitized paths, which, while not classified as critical or high severity in this analysis, is a red flag, especially given the plugin's past issues. The total number of entry points is relatively low, but the existence of an unprotected one significantly elevates the risk. In conclusion, despite some positive security implementations, the plugin's unpatched vulnerabilities, historical pattern of common exploit types, and an unprotected AJAX handler make it a considerable security risk. Immediate patching of all known vulnerabilities and remediation of the unprotected AJAX endpoint are crucial.

Key Concerns

  • Unpatched CVEs (4 total, 1 high, 3 medium)
  • Unprotected AJAX handler
  • Flow with unsanitized paths
  • Only 71% of outputs properly escaped
Vulnerabilities
4

Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript Security Vulnerabilities

CVEs by Year

4 CVEs in 2025 · unpatched
2025
Patched Has unpatched

Severity Breakdown

High
1
Medium
3

4 total CVEs

CVE-2025-62108medium · 4.3Missing Authorization

Add Custom Codes <= 4.80 - Missing Authorization

Dec 31, 2025Unpatched
CVE-2025-62149medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Add Custom Codes <= 4.80 - Authenticated (Author+) Stored Cross-Site Scripting

Dec 31, 2025Unpatched
CVE-2025-62739medium · 4.3Cross-Site Request Forgery (CSRF)

Add Custom Codes <= 4.80 - Cross-Site Request Forgery

Dec 5, 2025Unpatched
CVE-2025-30975high · 8.8Improper Control of Generation of Code ('Code Injection')

Add Custom Codes <= 4.80 - Authenticated (Contributor+) Remote Code Execution

Aug 14, 2025Unpatched
Code Analysis
Analyzed Mar 16, 2026

Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
18
45 escaped
Nonce Checks
3
Capability Checks
4
File Operations
1
External Requests
0
Bundled Libraries
0

Output Escaping

71% escaped63 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

3 flows1 with unsanitized paths
accodes_import_export_page_callback (includes\import-export.php:97)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
1 unprotected

Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript Attack Surface

Entry Points2
Unprotected1

AJAX Handlers 1

authwp_ajax_accodes_toggle_snippet_statuscustom-snippets.php:408

Shortcodes 1

[accodes_snippet] custom-snippets.php:424
WordPress Hooks 32
actioninitadd-custom-codes.php:17
filterplugin_row_metaadd-custom-codes.php:35
actionadmin_enqueue_scriptsadd-custom-codes.php:52
actionadmin_enqueue_scriptsadd-custom-codes.php:96
actionadmin_initadd-custom-codes.php:125
actionwp_headadd-custom-codes.php:218
actionwp_footeradd-custom-codes.php:231
actionwp_headadd-custom-codes.php:247
actionwp_footeradd-custom-codes.php:320
actionadd_meta_boxesadd-custom-codes.php:410
actionsave_postadd-custom-codes.php:497
actionadmin_initadd-custom-codes.php:526
actionedited_termadd-custom-codes.php:571
actioncreate_termadd-custom-codes.php:572
actioninitcustom-snippets.php:30
actioninitcustom-snippets.php:56
actionadmin_menucustom-snippets.php:59
actionadmin_menucustom-snippets.php:65
filteruse_block_editor_for_post_typecustom-snippets.php:97
actionadmin_headcustom-snippets.php:101
actionedit_form_after_titlecustom-snippets.php:109
actionsave_postcustom-snippets.php:260
filtermanage_accodes_snippets_posts_columnscustom-snippets.php:356
actionmanage_accodes_snippets_posts_custom_columncustom-snippets.php:405
actioninitcustom-snippets.php:423
actionadmin_footercustom-snippets.php:445
actionwp_body_opencustom-snippets.php:449
actionwp_footercustom-snippets.php:453
actionwp_headcustom-snippets.php:457
actionadmin_enqueue_scriptsdeactivate\deactivate.php:3
actionadmin_post_accodes_export_snippetsincludes\import-export.php:3
actionadmin_post_accodes_import_snippetsincludes\import-export.php:55
Maintenance & Trust

Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedApr 29, 2025
PHP min version7.4
Downloads17K

Community Trust

Rating100/100
Number of ratings6
Active installs1K
Developer Profile

Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript Developer Profile

SaifuMak

1 plugin · 1K total installs

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

How We Detect Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/add-custom-codes/assets/css/codemirror-material.css/wp-content/plugins/add-custom-codes/assets/css/style43.css/wp-content/plugins/add-custom-codes/assets/js/scripts.js/wp-content/plugins/add-custom-codes/assets/css/about.css
Script Paths
/wp-content/plugins/add-custom-codes/assets/js/scripts.js
Version Parameters
add-custom-codes/assets/css/style43.css?ver=add-custom-codes/assets/js/scripts.js?ver=

HTML / DOM Fingerprints

HTML Comments
<!-- Global CSS by Add Custom Codes --><!-- End - Global CSS by Add Custom Codes --><!-- Global Header Codes by Add Custom Codes --><!-- End - Global Header Codes by Add Custom Codes -->+2 more
Data Attributes
data-accodes-toggle
JS Globals
accodes_dataaccodes_toggle_snippet_nonce
FAQ

Frequently Asked Questions about Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript