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 plugin outputs the post meta values `aFhfc_head_code`, `aFhfc_body_code`, and `aFhfc_footer_code` without sanitization or escaping. Although the plugin limits its metabox and save handler to administrators, it does not use `register_meta()` with an `auth_callback` to protect these meta keys. This allows authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript via the WordPress Custom Fields interface. The injected scripts execute when an administrator previews or views the affected post, potentially compromising the administrator's session or site integrity.
Potential Impact
An attacker with Contributor-level or higher access can inject malicious scripts that execute in the context of an administrator's browser when they preview or view a post. This can lead to unauthorized actions performed with administrator privileges, data theft, or site compromise. The vulnerability does not allow unauthenticated exploitation and does not impact availability. The CVSS score of 6.4 reflects a medium severity with low attack complexity and limited privileges required.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level user capabilities to prevent unauthorized meta field modifications or disable the plugin if possible. Monitor for plugin updates that address this vulnerability and apply them promptly once released.
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 plugin outputs the post meta values `aFhfc_head_code`, `aFhfc_body_code`, and `aFhfc_footer_code` without sanitization or escaping. Although the plugin limits its metabox and save handler to administrators, it does not use `register_meta()` with an `auth_callback` to protect these meta keys. This allows authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript via the WordPress Custom Fields interface. The injected scripts execute when an administrator previews or views the affected post, potentially compromising the administrator's session or site integrity.
Potential Impact
An attacker with Contributor-level or higher access can inject malicious scripts that execute in the context of an administrator's browser when they preview or view a post. This can lead to unauthorized actions performed with administrator privileges, data theft, or site compromise. The vulnerability does not allow unauthenticated exploitation and does not impact availability. The CVSS score of 6.4 reflects a medium severity with low attack complexity and limited privileges required.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level user capabilities to prevent unauthorized meta field modifications or disable the plugin if possible. Monitor for plugin updates that address this vulnerability and apply them promptly once released.
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/17/2026, 12:20:17 PM
Last updated: 5/25/2026, 12:22:09 PM
Views: 50
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.