Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-2305: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in addfunc AddFunc Head & Footer Code

0
Medium
VulnerabilityCVE-2026-2305cvecve-2026-2305cwe-79
Published: Fri Apr 10 2026 (04/10/2026, 03:35:35 UTC)
Source: CVE Database V5
Vendor/Project: addfunc
Product: 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

AILast updated: 04/17/2026, 12:20:17 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses