CVE-2021-38341 MEDIUM

CVE-2021-38341: WooCommerce Payment Gateway Per Category <= 2.0.10 Reflected Cross-Site Scripting

Vendor Woocommerce Payment Gateway Per Category
Product WooCommerce Payment Gateway Per Category
Weakness CWE-79 · XSS
Published September 10, 2021
Last update May 2, 2025

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

WooCommerce Payment Gateway Per Category version 2.0.10 contains a cross-site scripting (XSS) vulnerability that allows attackers to inject malicious scripts into the site. An attacker can craft a malicious link that, when clicked by a site visitor, executes JavaScript in their browser. This can lead to session hijacking, credential theft, or malware distribution.

What an attacker can do

03Attacker Capabilities

Inject and execute malicious JavaScript in visitors' browsers via a crafted link.

Potential impact on your site

04Site Impact

Visitors clicking malicious links could have their sessions hijacked, credentials stolen, or be redirected to malware.

Conditions required to exploit

05Prerequisites

A site visitor must click an attacker-supplied link while logged into or visiting the affected site.

Key dates

06Disclosure timeline

September 10, 2021 CVE published
May 2, 2025 Record updated

Related vulnerabilities

08Related CVE