XSS in Addfunc Head & Footer Code
CVE-2026-2305
- CVSS v3
- 6.4 Medium
- Public exploits
- None known
- EPSS
- 0.002 · 10.8th percentile
- Published
- 2026-04-10
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Changed
S:C - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.002, 10.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Addfunc Head & Footer Code — versions 0
Weakness classification (CWE)
References
- www.wordfence.com/threat-intel/vulnerabilities/id/2f2d1a67-1d9b-4b73-988e-085ea…
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/addfunc-he…
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/addfunc-he…
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/tags/2.3/addfunc-he…
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfunc-head-…
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfunc-head-…
- plugins.trac.wordpress.org/browser/addfunc-head-footer-code/trunk/addfunc-head-…
- plugins.trac.wordpress.org/changeset