Header Footer Script Adder CVE-2025-12109
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Contributor-level account
-
DeliveryInject script via plugin's post script-adder
-
ExploitPayload stored unsanitized
-
ExecutionVictim/admin views injected page
-
PersistScript executes in their browser
-
ImpactSession hijack or admin-action forgery
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated WordPress account with Contributor-level capabilities or higher on a site running Header Footer Script Adder ≤2.0.5, and a victim (e.g., an administrator or site visitor) subsequently viewing the post/page into which the script was injected. Exploitation is gated by: (1) ability to obtain a Contributor+ role, which is not available to anonymous users; and (2) the delayed, victim-dependent nature of stored XSS - the payload only fires when someone loads the affected page. This is not default-open to the public; it depends on the site permitting Contributor-level accounts (common on multi-author/membership sites). |
| Impact | Signals align on LOW real-world priority. CVSS 3.1 base 6.4 (medium) is driven mostly by the scope change (S:C) that comes from XSS executing in the viewer's browser context, not from high impact - confidentiality and integrity are both rated Low (C:L/I:L) and availability None. The vector is network (AV:N) with low complexity (AC:L) and no user interaction (UI:N), but exploitation requires authenticated Contributor-level-or-above access (PR:L), which is a meaningful gate: Contributor is a trusted, non-public role that an attacker must first obtain. EPSS reinforces low urgency at 0.22% (11th percentile). There is no CISA KEV listing and no public exploit code identified. No SSVC decision data was supplied, but mapping the available signals: exploitation=none observed, automatable=no (requires authenticated role and a victim viewing the page), technical impact=partial. This is a routine authenticated stored-XSS in a niche WordPress plugin, not a drop-everything issue. No conflicting signals were found: the CVSS network vector, the description, and the authenticated-attacker language are all consistent. |
| Exploit ScenarioDerived | An attacker who holds (or phishes/registers into) a Contributor account on a WordPress site running Header Footer Script Adder ≤2.0.5 uses the plugin's per-post script-adder field to save a malicious <script> payload that is stored without sanitization. When an administrator or other visitor later views that post/page, the script executes in their browser session, enabling session-cookie theft, admin-action forgery, or redirection. No public exploit code or active exploitation is identified at this time. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 01, 2026
Stored cross-site scripting in the WordPress plugin Header Footer Script Adder (all versions up to and including 2.0.5) lets an authenticated attacker holding Contributor-level access or higher inject arbitrary JavaScript into posts and pages via the plugin's script adder, which then executes in the browser of any user - including administrators or ordinary visitors - who loads the affected page. The root cause is insufficient input sanitization combined with missing output escaping (CWE-79). Exploitation is gated by the need for a Contributor+ account on the target site and by the delayed, victim-dependent nature of stored XSS; there is no confirmed active exploitation (not in CISA KEV), no public exploit code identified at time of analysis, and EPSS is only 0.22% (11th percentile), so signals align on LOW real-world priority.
RemediationAI
Vendor-released patch: a fixing changeset (r3388587) exists in the plugin's WordPress.org Trac repository, meaning the upstream fix is available as a Trac commit; a version number for the patched release is not independently confirmed in the supplied data, so verify the current plugin version in the WordPress.org repository and upgrade to the first release newer than 2.0.5 as soon as it is available. Until that upgrade can be applied, the strongest compensating control is to remove or deactivate the plugin (trade-off: header/footer/body scripts it manages stop rendering, which can break site analytics or custom code, so export the injected snippets first). Because exploitation requires a Contributor-or-higher account, temporarily restricting or disabling Contributor-level self-registration and reviewing existing Contributor accounts reduces the attack surface (trade-off: it blocks legitimate multi-author publishing workflows); site owners on single-site installs should also confirm that unfiltered_html is not being granted to low-privilege roles, and on multisite keep Contributors on their default restricted capabilities. Administrators should audit recent posts and revisions for injected script or iframe markup and remove offending content, and can add a Content-Security-Policy that disallows inline script as a defense-in-depth measure (trade-off: inline scripts and some third-party widgets will break until allowlisted). Review the vendor advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/cab034fd-4cf2-4253-bbcd-c8bb86325fa8?source=cve for the authoritative fix status. No vendor-released patch for a tagged version beyond 2.0.5 is identified in this data.
Affected ProductsAI
The WordPress plugin 'Header Footer Script Adder - Insert Code in Header, Body & Footer' is affected in all versions up to and including 2.0.5, per the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/cab034fd-4cf2-4253-bbcd-c8bb86325fa8?source=cve; the plugin's WordPress.org/Trac repository is the canonical source of the code, and the fixing changeset is visible at https://plugins.trac.wordpress.org/changeset?old=3388587%40header-and-footer-script-adder&new=3388587%40header-and-footer-script-adder&reponame=. No CPE string was provided in the input data, so fingerprinting should rely on the installed plugin folder name and version constant rather than on CPE matching. Any WordPress site running this plugin at version 2.0.5 or earlier - and especially multi-author, membership, or contributor-enabled sites - should be treated as affected.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is a WordPress plugin (slug header-and-footer-script-adder) that lets site owners inject code into the theme header, body, and footer; the same 'script adder' functionality is exposed inside post content, where the plugin accepts contributor-supplied script markup without adequately sanitizing it on input or escaping it on output. Under CWE-79 (Improper Neutralization of Input During Web Page Generation), the stored payload is persisted in the post and rendered unescaped, so it becomes part of the page returned to every subsequent visitor. The CVSS:3.1 vector AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N indicates network reachability, low attack complexity, and a requirement for low privileges (a Contributor-level WordPress account, i.e. PR:L - not an anonymous attacker), with the changed scope (S:C) reflecting that injected script running in a victim's browser can affect resources beyond the vulnerable plugin itself, such as session cookies or the WordPress admin interface. No CPE identifiers were supplied with the record, so the exact affected package should be confirmed against the plugin's WordPress.org repository and the vendor advisory rather than via CPE matching. WordPress's Contributor role can normally create and submit posts for review but cannot publish; the payload therefore typically fires when an editor or administrator previews or approves the submission, which is what makes the stored-XSS path meaningful despite the restricted privilege.
Know when Wordpress Plugin gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Authenticated Contributor role gives PR:L; stored payload needs no interaction to save (UI:N); XSS executing in another user's browser yields S:C with limited C:L/I:L and no availability impact.
Primary rating from Vendor (wordfence).
CVSS VectorVendor: wordfence
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB