CVE-2026-2305 json
AddFunc Head & Footer Code <= 2.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Custom Fields
published 2026-04-10 7 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-21288
- cvss
- 6.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
Summary
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.
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
Affected products
- addfunc AddFunc Head & Footer Code
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
- wordfence.com /threat-intel/vulnerabilities/id/2f2d1a67-1d9b-4b73-988e-085eaa7474c6?source=cve
- plugins.trac.wordpress.org /browser/addfunc-head-footer-code/tags/2.3/addfunc-head-footer-code.php#L63
- plugins.trac.wordpress.org /browser/addfunc-head-footer-code/tags/2.3/addfunc-head-footer-code.php#L74
- plugins.trac.wordpress.org /browser/addfunc-head-footer-code/tags/2.3/addfunc-head-footer-code.php#L85
- plugins.trac.wordpress.org /browser/addfunc-head-footer-code/trunk/addfunc-head-footer-code.php#L63
- plugins.trac.wordpress.org /browser/addfunc-head-footer-code/trunk/addfunc-head-footer-code.php#L74
- plugins.trac.wordpress.org /browser/addfunc-head-footer-code/trunk/addfunc-head-footer-code.php#L85
- plugins.trac.wordpress.org /changeset?old_path=%2Faddfunc-head-footer-code/tags/2.3&new_path=%2Faddfunc-head-footer-code/tags/2.4
Sources
- CVE List CVE-2026-2305
- NVD CVE-2026-2305
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.