Skip to main content

Header Footer Script Adder CVE-2025-12109

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-12-13 security@wordfence.com
6.4
CVSS 3.1 · Vendor: wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain Contributor-level account
  2. Delivery
    Inject script via plugin's post script-adder
  3. Exploit
    Payload stored unsanitized
  4. Execution
    Victim/admin views injected page
  5. Persist
    Script executes in their browser
  6. Impact
    Session 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (wordfence) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 6.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (wordfence).

CVSS VectorVendor: wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
niche WordPress header/footer code-insertion plugin, limited install base
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-44000 CRITICAL POC
9.8 Oct 20

Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2025-27007 CRITICAL POC
9.8 May 01

The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-4295 CRITICAL POC
9.8 Jun 05

The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy