Add Code To Head
Add Code To Head has one disclosed vulnerability in the WordSec catalog, all reported in 2025; it is fixed as of September 2026. Their average CVSS score is 4.4, and the most serious one scores 4.4 out of 10.
The most common weakness is Cross-Site Scripting, behind 1 of the records (100%).
The one issue recorded for Add Code To Head has a vendor fix available, so running the current release closes it.
All of these findings were reported by Bao - BlueRock. Add Code To Head is installed on roughly 3,000 WordPress sites, so each unpatched flaw has a wide blast radius. The current release is tested up to WordPress 6.9.7.
CVE-2025-48314Add Code To Head <= 1.17 - Authenticated (Administrator+) Stored Cross-Site Scripting
Read the full analysisVulnerability Records
Add Code To Head
Author
salubrio
Intended users: Template Designers, Developer, Admins If you wish to add any custom HTML to each page’s header, then this plugin is for you. This is useful for verifying you are the owner of the website to services such as Mailchimp or Google. You can quickly add the verification codes to your page header without having to edit your site’s template. In general, you can add custom CSS, a link to an external JavaScript file or something else. While it is generally recommended to create a child template if you’re going to make extensive, permanent changes to a template, there may be instances where a small change or two is needed that wouldn’t justify the creation of a child template—or your current template might not support child templates. You should nearly always avoid editing a template directly, because your changes will be lost when you next update the template. This plugin is not affected by template changes. Acknowledgements Plugin Icon (CC BY 3.0) by DeniShop
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C