What’s Vulnerable › Vulnerabilities
CVE-2021-38341: WooCommerce Payment Gateway Per Category <= 2.0.10 Reflected Cross-Site Scripting
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-09-10 · updated 2026-06-17
- Weakness: CWE-79
Description
The WooCommerce Payment Gateway Per Category WordPress plugin is vulnerable to Reflected Cross-Site Scripting due to a reflected $_SERVER["PHP_SELF"] value in the ~/includes/plugin_settings.php file which allows attackers to inject arbitrary web scripts, in versions up to and including 2.0.10.
Affected products
- WooCommerce Payment Gateway Per Category: through 2.0.10
References
- https://plugins.trac.wordpress.org/browser/wc-payment-gateway-per-category/tags/2.0.10/includes/plugin_settings.php#L31
- https://www.wordfence.com/vulnerability-advisories/#CVE-2021-38341
- https://plugins.trac.wordpress.org/browser/wc-payment-gateway-per-category/tags/2.0.10/includes/plugin_settings.php#L31
- https://www.wordfence.com/vulnerability-advisories/#CVE-2021-38341
Get alerted when CVE-2021-38341 or the next vulnerability affects your stack