Skip to content
Laskyr

Plugins · addfunc-head-footer-code · data as of 2026-11-04

Is AddFunc Head & Footer Code safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (2.5)

As of 2026-11-04. 1 issue is on record for older versions; version 2.4 or newer fixes all of them that state a fix.

Latest version
2.5
Last updated
2026-04-22
Active installs
20,000+
Known issues on record
1
Unpatched in latest
0
Tested up to WP
6.9.11

Easily add code to your head, footer and/or immediately after the opening body tag, site-wide and/or on any individual page/post. — by AddFunc

What to do

  1. Update to the latest version (2.5). Anything older than 2.4 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
  2. If you cannot update right away, deactivate it until you can.
  3. Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
  4. If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan.

With WP-CLI: wp plugin get addfunc-head-footer-code --field=version shows what you run; wp plugin update addfunc-head-footer-code updates it.

Check your version

Known vulnerabilities

1 on record, newest first. “Affected” is the version range the source gives; “fixed in” is the version the source names, or (marked *) the first wordpress.org release after the last affected version.

medium 6.4 CVE-2026-2305 · published 2026-04-10

Stored cross-site scripting (XSS) in AddFunc Head & Footer Code (2.3 and older)

Affected
2.3 and older
Fixed in
2.4 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

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.

NVD CVE-2026-2305Wordfence advisoryCode change (fix)Plugin source

Recent activity

Browse vulnerabilities

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
AddFunc Head & Footer Code vulnerability status badge
<a href="https://laskyr.com/plugins/addfunc-head-footer-code"><img src="https://laskyr.com/plugins/addfunc-head-footer-code/badge.svg" alt="AddFunc Head & Footer Code vulnerability status"></a>

← Check another plugin · Free hacked-site scan

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit