Home

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.

PUBLISHED Reserved 2026-02-10 | Published 2026-04-10 | Updated 2026-04-10 | Assigner Wordfence




MEDIUM: 6.4CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Problem types

CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Product status

Default status
unaffected

Any version
affected

Timeline

2026-04-09:Disclosed

Credits

Muhammad Yudha - DJ finder

References

www.wordfence.com/...-1d9b-4b73-988e-085eaa7474c6?source=cve

plugins.trac.wordpress.org/...3/addfunc-head-footer-code.php

plugins.trac.wordpress.org/...3/addfunc-head-footer-code.php

plugins.trac.wordpress.org/...3/addfunc-head-footer-code.php

plugins.trac.wordpress.org/...k/addfunc-head-footer-code.php

plugins.trac.wordpress.org/...k/addfunc-head-footer-code.php

plugins.trac.wordpress.org/...k/addfunc-head-footer-code.php

plugins.trac.wordpress.org/...func-head-footer-code/tags/2.4

cve.org (CVE-2026-2305)

nvd.nist.gov (CVE-2026-2305)

Download JSON