Skip to main content

Header Footer Script Adder CVE-2026-15394

| EUVDEUVD-2026-47906 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-23 security@wordfence.com GHSA-6gm9-485j-jqr3
6.4
CVSS 3.1 · Vendor: wordfence
View

Attack ChainAIDerived

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

  1. Recon
    Obtain or compromise WordPress author-level account
  2. Delivery
    Access Header Footer Script Adder pro snippet interface
  3. Exploit
    Inject malicious JavaScript into asm_code meta field
  4. Install
    Payload persisted to WordPress database
  5. C2
    Victim navigates to page with injected snippet
  6. Execute
    Script executes in victim browser context
  7. Impact
    Session hijack or credential theft

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

Exploitation requires an authenticated WordPress session with author-level privileges or higher (author, editor, or administrator). The attacker must have access to the Header Footer Script Adder plugin's snippet management interface, which belongs to the plugin's pro tier based on the affected file paths. Payload execution is triggered passively: any user - including unauthenticated site visitors - who loads a page to which the malicious snippet has been applied will execute the injected JavaScript in their browser. Limiting factors: sites where all author-level and above users are fully trusted administrators are not meaningfully at risk; exploitation is restricted to the pro (paid) version of the plugin; and the impact is confined to browser-level execution - no server-side code execution or direct database access results from this vulnerability.

Impact

The CVSS 3.1 base score of 6.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) appropriately captures the medium severity of this vulnerability. The network vector and low complexity are accurate, but the authenticated prerequisite (PR:L, author-level) meaningfully constrains the realistic attacker pool to users who already hold a trusted role on the WordPress installation. The Scope:Changed designation correctly models the cross-user impact. No EPSS score was included in the intelligence data, and the vulnerability does not appear in the CISA KEV catalog, providing no signals of active exploitation. No POC has been publicly identified. Real-world risk is most pronounced for multi-author WordPress deployments - news sites, content platforms, or any installation granting author access to semi-trusted contributors. Single-author or admin-only sites face effectively zero exploitability. The C:L/I:L impact ceiling reflects browser-session-level compromise, not server-side code execution.

Exploit ScenarioDerived

An attacker holding or having compromised a WordPress author-level account on a target site accesses the Header Footer Script Adder plugin's snippet management interface and saves a crafted JavaScript payload - such as a cookie-stealer or credential harvester - into the 'asm_code' Snippet Meta field. When any site visitor subsequently loads a page where the snippet is rendered, the injected script silently executes in their browser. No public POC has been identified, but the attack requires no unusual skill for anyone familiar with WordPress plugin administration.

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 – Jul 23, 2026

Stored Cross-Site Scripting in the Header Footer Script Adder WordPress plugin (all versions through 2.1) allows any authenticated user holding author-level access or above to persistently inject arbitrary JavaScript via the 'asm_code' Snippet Meta field. The injected payload executes automatically in the browsers of any user who visits an affected page, enabling session hijacking, credential theft, or malicious redirects across the site's visitor base. No public exploit code has been identified and this vulnerability is not listed in the CISA KEV catalog at time of analysis.

RemediationAI

The primary remediation is to update the Header Footer Script Adder plugin to a version that incorporates WordPress SVN changeset 3611085, which addresses the insufficient input sanitization and output escaping of the 'asm_code' Snippet Meta. The exact patched release version number is not explicitly stated in the available data - administrators should verify the current published version in the WordPress plugin repository before updating and confirm it is newer than 2.1. As a compensating control for sites unable to patch immediately, restrict or eliminate author-level (and above) access for untrusted users, as this eliminates the attacker's ability to write snippet payloads. Alternatively, disabling the plugin's code-injection snippet functionality entirely removes the attack surface at the cost of the plugin's core purpose. Wordfence users can reference the advisory at their threat intelligence portal (wordfence.com/threat-intel/vulnerabilities/id/c394c9bc-21f6-45ea-8eda-8ee22a9b87ba) for additional context.

Affected VersionsENISA

Header Footer Script Adder 0 ≤2.1

Affected Packages

euvd header_footer_script_adder no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the pro tier of the Header Footer Script Adder WordPress plugin (slug: header-and-footer-script-adder), which allows users to inject arbitrary HTML and JavaScript into page headers, bodies, and footers via configurable snippet meta fields. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS): the 'asm_code' Snippet Meta value is persisted to the WordPress database without adequate sanitization, then rendered into public-facing page output without proper escaping. Specific vulnerable code paths are documented at class-pro-admin.php line 400 (the input/save path) and class-pro-public.php lines 145 and 253 (the output/rendering paths), confirming both the write and read sides of the XSS chain are affected. The CVSS Scope:Changed rating reflects that payload execution occurs in victims' browser security contexts - a distinct security domain from the WordPress server.

Know when WordPress 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

PR:L confirmed by author-level authentication requirement; S:C reflects payload execution in victim browser scope; C/I:L bounded to session and page integrity impact only.

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:P/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 'asm_code' Snippet Meta in all versions up to, and including, 2.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-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 91% exploitable
Prevalence
Low
niche WordPress pro plugin, limited enterprise footprint
Data Quality
4 sources
Confidence: Medium

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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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-2016-10033 CRITICAL POC
9.8 Dec 30

The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra para

CVE-2016-10045 CRITICAL POC
9.8 Dec 30

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman

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-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

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-2026-63030 CRITICAL POC
9.8 Jul 17

Remote code execution in WordPress 6.9.x (before 6.9.5) and 7.0.x (before 7.0.2) arises from a REST API batch endpoint r

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