What the vulnerability does
01Description
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.
Explanation of Vulnerability in Simple Terms
02Summary
The Header Footer Script Adder plugin for WordPress contains a cross-site scripting (XSS) vulnerability in versions 2.1 and earlier. An authenticated user with low privileges can inject malicious scripts that execute in the browsers of other site visitors, potentially compromising their sessions or stealing data. The vulnerability affects the entire site scope due to header/footer placement.
What an attacker can do
03Attacker Capabilities
Inject malicious JavaScript that runs in other users' browsers when they visit the site.
Potential impact on your site
04Site Impact
Visitors' sessions and data can be compromised; site reputation and user trust at risk.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege WordPress account (e.g., contributor or subscriber role).
Key dates
06Disclosure timeline
July 23, 2026
CVE published
July 23, 2026
Record updated