XSS in Addfunc Head & Footer Code

CVE-2026-2305

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)

EPSS: 0.002 (10.2th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-2305?
CVE-2026-2305 is a medium-severity vulnerability in Addfunc Head & Footer Code, classified under Cross-site Scripting. CVSS score: 6.4/10. Published 2026-04-10.
How severe is CVE-2026-2305?
Medium severity. CVSS v3 base score is 6.4 out of 10.