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-2025-12109: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in mahethekiller Header Footer Script Adder – Insert Code in Header, Body & Footer

0
Medium
VulnerabilityCVE-2025-12109cvecve-2025-12109cwe-79
Published: Sat Dec 13 2025 (12/13/2025, 04:31:32 UTC)
Source: CVE Database V5
Vendor/Project: mahethekiller
Product: Header Footer Script Adder – Insert Code in Header, Body & Footer

Description

The Header Footer Script Adder – Insert Code in Header, Body & Footer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the script adder present in posts in all versions up to, and including, 2.0.5 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

AI-Powered Analysis

AILast updated: 12/20/2025, 06:15:15 UTC

Technical Analysis

CVE-2025-12109 is a stored Cross-Site Scripting (XSS) vulnerability identified in the WordPress plugin 'Header Footer Script Adder – Insert Code in Header, Body & Footer' developed by mahethekiller. This plugin allows users to insert custom code snippets into the header, body, or footer sections of WordPress pages. The vulnerability exists in all versions up to and including 2.0.5 due to improper neutralization of input during web page generation, specifically insufficient sanitization and escaping of user-supplied input. Authenticated attackers with Contributor-level access or higher can exploit this flaw by injecting arbitrary JavaScript code into posts or pages. When other users visit these compromised pages, the malicious scripts execute in their browsers, potentially leading to session hijacking, privilege escalation, or unauthorized actions within the affected site. The vulnerability does not require user interaction beyond visiting the infected page and does not affect availability but impacts confidentiality and integrity. The CVSS 3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, and privileges required. No public exploits have been reported yet, but the vulnerability poses a significant risk for websites with multiple contributors or editors. The scope is limited to sites using this specific plugin, but given WordPress's widespread adoption, the potential attack surface is considerable. The vulnerability highlights the importance of robust input validation and output encoding in plugins that handle user-generated content or code insertion.

Potential Impact

For European organizations, this vulnerability can lead to unauthorized script execution within their WordPress sites, compromising user sessions and potentially exposing sensitive data such as authentication tokens or personal information. Organizations relying on WordPress for corporate websites, intranets, or customer portals that use the affected plugin are at risk of reputational damage, data breaches, and compliance violations under GDPR if personal data is exposed. The ability for contributors to inject scripts means insider threats or compromised contributor accounts can be leveraged to launch attacks. Although availability is not impacted, the integrity and confidentiality of site content and user data are at risk. Attackers could use this vulnerability to perform phishing, defacement, or pivot to further internal network attacks. The medium severity score indicates a moderate but non-trivial risk, especially for organizations with multiple content editors or contributors. The lack of known exploits in the wild suggests a window of opportunity for proactive mitigation before widespread exploitation occurs.

Mitigation Recommendations

1. Immediately update the 'Header Footer Script Adder – Insert Code in Header, Body & Footer' plugin to a patched version once available. 2. Until a patch is released, restrict Contributor-level and higher privileges to trusted users only, minimizing the risk of malicious script injection. 3. Implement strict input validation and output escaping on all user-generated content, especially code insertion fields, to prevent script injection. 4. Employ Web Application Firewalls (WAFs) with custom rules to detect and block suspicious script payloads targeting this plugin. 5. Conduct regular security audits and code reviews of plugins and themes to identify similar vulnerabilities. 6. Monitor logs and website content for unusual script insertions or modifications. 7. Educate content contributors about the risks of injecting untrusted code and enforce least privilege principles. 8. Consider disabling or replacing the plugin with more secure alternatives if patching is delayed. 9. Use Content Security Policy (CSP) headers to limit the execution of unauthorized scripts on the website. 10. Regularly backup website data to enable quick recovery in case of compromise.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2025-10-23T13:46:20.322Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 693cef62d977419e584a4fe2

Added to database: 12/13/2025, 4:45:22 AM

Last enriched: 12/20/2025, 6:15:15 AM

Last updated: 2/7/2026, 4:49:18 AM

Views: 37

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 in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats