What the vulnerability does
01Description
The Correct Prices plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the $_SERVER['PHP_SELF'] variable in versions up to and including 1.0. This is due to the correct_prices_page() function echoing $_SERVER['PHP_SELF'] into a form's action attribute without any input sanitization or output escaping (such as esc_url() or esc_attr()). Because PHP_SELF reflects attacker-controlled path-info appended to the script URL, an attacker can break out of the attribute and inject arbitrary markup. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a specially crafted link.
Explanation of Vulnerability in Simple Terms
02Summary
Correct Prices versions 1.0 and earlier contain a cross-site scripting (XSS) vulnerability. An attacker can inject malicious scripts that execute in a victim's browser when they visit an affected page. The vulnerability requires user interaction and can affect other users or the site itself. Update to a version newer than 1.0.
What an attacker can do
03Attacker Capabilities
Inject malicious scripts that run in visitors' browsers, stealing session tokens or redirecting users.
Potential impact on your site
04Site Impact
Visitors' browsers can be compromised; session tokens or credentials may be stolen; site reputation damaged.
Conditions required to exploit
05Prerequisites
Victim must visit a page containing the attacker's malicious input; no authentication required.
Key dates
06Disclosure timeline
May 20, 2026
CVE published
May 20, 2026
Record updated