CVE-2026-8627 Correct Prices <= 1.0 - Reflected Cross-Site Scripting via PHP_SELF Parameter
Unauthenticated attackers can inject arbitrary scripts via the PHP_SELF parameter in the Correct Prices WordPress plugin, potentially executing code in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-8627?
CVE-2026-8627 is a medium-severity cross-site scripting vulnerability in lykich Correct Prices, published on 20 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2026-8627?
How do I fix CVE-2026-8627?
No fix has been published for CVE-2026-8627 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-8627 being exploited?
There is no known exploitation of CVE-2026-8627 in the wild and no public exploit code.
Sources
Also known as GHSA-m24w-6mjv-3gj2.