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

- Severity: Medium 6.4 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2021-12-14T15:50:10.177Z
- Modified: 2026-06-17T04:09:42.207Z
- Weaknesses: CWE-79, CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## Description

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.

(As written by CVE List.)

## Affected

- Variation Swatches for WooCommerce Variation Swatches for WooCommerce: from 2.1.1 up to 2.1.1
- variation_swatches_for_woocommerce_project variation_swatches_for_woocommerce: up to 2.1.1

## Every score

- Wordfence: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://www.wordfence.com/vulnerability-advisories/#CVE-2021-42367> (third-party-advisory)
- <https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=2634227%40variation-swatches-for-woocommerce&new=2634227%40variation-swatches-for-woocommerce&sfp_email=&sfph_mail=> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-42367](https://www.cve.org/CVERecord?id=CVE-2021-42367), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2021-42367](https://nvd.nist.gov/vuln/detail/CVE-2021-42367), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42367 · Whole record: https://cve.day/CVE-2021-42367.json · Rebuilt by cve.day 2026-11-25T22:58:05.975Z
