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/10/2026, 04:06:32 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 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.

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/10/2026, 4:06:32 AM

Last updated: 4/10/2026, 5:34:10 AM

Views: 3

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