CVE-2026-2305
The AddFunc Head & Footer Code plugin for WordPress is vulnerable …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/addfunc-head-footer-c
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/addfunc-head-footer-c
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/addfunc-head-footer-c
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfunc-head-footer-code
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfunc-head-footer-code
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfunc-head-footer-code
- plugins.trac.wordpress.org/changeset?old_path=%2Faddfunc-head-footer-code/tags/2.3&new_pat
- www.wordfence.com/threat-intel/vulnerabilities/id/2f2d1a67-1d9b-4b73-988e-085eaa7474c6?sou
- nvd.nist.gov/vuln/detail/CVE-2026-2305
- cve.org/CVERecord?id=CVE-2026-2305
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.