CVE-2026-2305: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in addfunc AddFunc Head & Footer Code
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.
AI Analysis
Technical Summary
CVE-2026-2305 is a stored cross-site scripting vulnerability in the AddFunc Head & Footer Code WordPress plugin (up to version 2.3). The vulnerability arises from the plugin outputting the `aFhfc_head_code`, `aFhfc_body_code`, and `aFhfc_footer_code` post meta values without sanitization or escaping. Although the plugin limits its metabox and save handler to administrators, it fails to use `register_meta()` with an `auth_callback` to restrict access to these meta keys. Consequently, authenticated users with Contributor-level privileges or higher can inject arbitrary JavaScript via the Custom Fields interface, which executes in the context of administrators when they preview or view the affected post.
Potential Impact
This vulnerability allows authenticated users with Contributor-level access or higher to perform stored cross-site scripting attacks that execute arbitrary scripts in the context of administrators. This can lead to limited confidentiality and integrity impacts, such as session hijacking or unauthorized actions performed by administrators. The CVSS 3.1 base score is 6.4 (medium severity), reflecting network attack vector, low attack complexity, and privileges required at the contributor level.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, restrict Contributor-level access and above to trusted users only and consider disabling or limiting the use of the AddFunc Head & Footer Code plugin. Monitor for updates from the vendor or security advisories for a patch or official mitigation.
CVE-2026-2305: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in addfunc AddFunc Head & Footer Code
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-2305 is a stored cross-site scripting vulnerability in the AddFunc Head & Footer Code WordPress plugin (up to version 2.3). The vulnerability arises from the plugin outputting the `aFhfc_head_code`, `aFhfc_body_code`, and `aFhfc_footer_code` post meta values without sanitization or escaping. Although the plugin limits its metabox and save handler to administrators, it fails to use `register_meta()` with an `auth_callback` to restrict access to these meta keys. Consequently, authenticated users with Contributor-level privileges or higher can inject arbitrary JavaScript via the Custom Fields interface, which executes in the context of administrators when they preview or view the affected post.
Potential Impact
This vulnerability allows authenticated users with Contributor-level access or higher to perform stored cross-site scripting attacks that execute arbitrary scripts in the context of administrators. This can lead to limited confidentiality and integrity impacts, such as session hijacking or unauthorized actions performed by administrators. The CVSS 3.1 base score is 6.4 (medium severity), reflecting network attack vector, low attack complexity, and privileges required at the contributor level.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, restrict Contributor-level access and above to trusted users only and consider disabling or limiting the use of the AddFunc Head & Footer Code plugin. Monitor for updates from the vendor or security advisories for a patch or official mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-02-10T19:59:26.411Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d873981cc7ad14da5fb241
Added to database: 4/10/2026, 3:50:48 AM
Last enriched: 4/10/2026, 4:06:32 AM
Last updated: 4/10/2026, 5:34:10 AM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.