Vulnerability Description
The AddFunc Head & Footer Code plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `aFhfc_head_code`, `aFhfc_body_code`, and `aFhfc_footer_code` post meta values in all versions up to, and including, 2.3. This is due to the plugin outputting these meta values without any sanitization or escaping. While the plugin restricts its own metabox and save handler to administrators via `current_user_can('manage_options')`, it does not use `register_meta()` with an `auth_callback` to protect these meta keys. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts via the WordPress Custom Fields interface that execute when an administrator previews or views the post.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/add
- https://plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/add
- https://plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/add
- https://plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfun
- https://plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfun
- https://plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfun
- https://plugins.trac.wordpress.org/changeset?old_path=%2Faddfunc-head-footer-cod
- https://www.wordfence.com/threat-intel/vulnerabilities/id/2f2d1a67-1d9b-4b73-988
FAQ
What is CVE-2026-2305?
CVE-2026-2305 is a vulnerability with a CVSS score of 6.4 (MEDIUM). The AddFunc Head & Footer Code plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `aFhfc_head_code`, `aFhfc_body_code`, and `aFhfc_footer_code` post meta values in all versions ...
How severe is CVE-2026-2305?
CVE-2026-2305 has been rated MEDIUM with a CVSS base score of 6.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-2305?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.