Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain or compromise WordPress author-level account
-
DeliveryAccess Header Footer Script Adder pro snippet interface
-
ExploitInject malicious JavaScript into asm_code meta field
-
InstallPayload persisted to WordPress database
-
C2Victim navigates to page with injected snippet
-
ExecuteScript executes in victim browser context
-
ImpactSession 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
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.
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 '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
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.
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra para
The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman
The 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 GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
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
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
EUVD-2026-47906
GHSA-6gm9-485j-jqr3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB