CVE-2021-42367 MEDIUM

CVE-2021-42367: Variation Swatches for WooCommerce <= 2.1.1 Authenticated Stored Cross-Site Scripting

Vendor Variation Swatches For Woocommerce
Product Variation Swatches for WooCommerce
Weakness CWE-79 · XSS
Published December 14, 2021
Last update February 13, 2025

CVSS base score

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

CVSS vector

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

What the vulnerability does

01Description

The Variation Swatches for WooCommerce WordPress plugin is vulnerable to Stored Cross-Site Scripting via several parameters found in the ~/includes/class-menu-page.php file which allows attackers to inject arbitrary web scripts, in versions up to and including 2.1.1. Due to missing authorization checks on the tawcvs_save_settings function, low-level authenticated users such as subscribers can exploit this vulnerability.

Explanation of Vulnerability in Simple Terms

02Summary

Variation Swatches for WooCommerce version 2.1.1 contains a cross-site scripting (XSS) vulnerability that allows authenticated users with low privileges to inject malicious scripts. The vulnerability has scope change, meaning injected code can affect other users and site functionality. An attacker needs a low-privilege account and network access to exploit this flaw.

What an attacker can do

03Attacker Capabilities

Inject malicious JavaScript that executes in other users' browsers and affects site functionality.

Potential impact on your site

04Site Impact

Users' sessions and data could be compromised; site functionality may be disrupted by injected scripts.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege authenticated account on the site.

Key dates

06Disclosure timeline

December 14, 2021 CVE published
February 13, 2025 Record updated

Related vulnerabilities

08Related CVE