CVE-2025-12109

6.4 MEDIUM

📋 TL;DR

This vulnerability allows authenticated WordPress users with Contributor-level access or higher to inject malicious JavaScript into website pages via the Header Footer Script Adder plugin. The injected scripts execute whenever visitors access affected pages, enabling attackers to steal session cookies, redirect users, or deface websites. All WordPress sites using vulnerable plugin versions are affected.

💻 Affected Systems

Products:
  • Header Footer Script Adder – Insert Code in Header, Body & Footer WordPress plugin
Versions: All versions up to and including 2.0.5
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires authenticated user with at least Contributor role. WordPress multisite installations are also affected.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator session cookies, take over the WordPress site, install backdoors, redirect visitors to malicious sites, or deploy ransomware notices.

🟠

Likely Case

Attackers inject malicious scripts to steal user session cookies, redirect visitors to phishing pages, or display unwanted advertisements.

🟢

If Mitigated

With proper user access controls and web application firewalls, impact is limited to potential defacement of individual pages.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authenticated access but is technically simple. The vulnerability is publicly documented with proof-of-concept examples available.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.0.6 and later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3388587%40header-and-footer-script-adder&new=3388587%40header-and-footer-script-adder&sfp_email=&sfph_mail=

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Header Footer Script Adder' plugin. 4. Click 'Update Now' if update is available. 5. Alternatively, download version 2.0.6+ from WordPress.org and manually update.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily deactivate the Header Footer Script Adder plugin until patched

wp plugin deactivate header-and-footer-script-adder

Restrict user roles

all

Temporarily remove Contributor role access or limit to trusted users only

🧯 If You Can't Patch

  • Implement strict Content Security Policy (CSP) headers to limit script execution
  • Deploy web application firewall (WAF) with XSS protection rules

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Header Footer Script Adder → View version details. If version is 2.0.5 or lower, you are vulnerable.

Check Version:

wp plugin get header-and-footer-script-adder --field=version

Verify Fix Applied:

After updating, verify plugin version shows 2.0.6 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual script tags in post/page content
  • Multiple failed login attempts followed by successful Contributor login
  • Suspicious JavaScript in WordPress postmeta table

Network Indicators:

  • Unexpected external JavaScript loads on WordPress pages
  • Suspicious outbound connections after page load

SIEM Query:

source="wordpress.log" AND ("script adder" OR "hf_sa_script") AND ("<script>" OR "javascript:")

🔗 References

📤 Share & Export