Variation Swatches for WooCommerce Security & Risk Analysis

wordpress.org/plugins/th-variation-swatches

Variation Swatches for WooCommerce plugin will replace default swatches to professionally styled and colourful swatches.

3K active installs v1.3.6 PHP + WP 4.8+ Updated Mar 18, 2026
variation-swatcheswoocommercewoocommerce-attributeswoocommerce-variationwoocommerce-variation-swatches
99
A · Safe
CVEs total2
Unpatched0
Last CVEJan 22, 2025
Safety Verdict

Is Variation Swatches for WooCommerce Safe to Use in 2026?

Generally Safe

Score 99/100

Variation Swatches for WooCommerce has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.

2 known CVEsLast CVE: Jan 22, 2025Updated 2mo ago
Risk Assessment

The plugin 'th-variation-swatches' v1.3.4 exhibits a generally good security posture, with no critical or high-severity vulnerabilities identified in the static analysis or taint flows. All identified entry points (AJAX handlers) have nonce and capability checks, indicating robust authorization practices. The overwhelming majority of output is properly escaped, and there are no dangerous functions, file operations, or external HTTP requests, all of which are positive signs.

However, a significant concern lies within the SQL query handling. The presence of a single SQL query that does not use prepared statements is a notable risk, as it could potentially be vulnerable to SQL injection if user-supplied data is directly incorporated into the query. While the taint analysis did not reveal any unsanitized flows, this single instance of raw SQL warrants attention. The plugin's vulnerability history shows two medium-severity CVEs, both related to Cross-Site Request Forgery (CSRF). While there are no currently unpatched vulnerabilities, this pattern suggests a recurring susceptibility to CSRF attacks, indicating a potential area for improvement in handling user input and actions.

In conclusion, 'th-variation-swatches' v1.3.4 is largely secure due to its diligent use of nonces, capabilities, and output escaping. The primary weaknesses are the non-prepared SQL query and the past trend of CSRF vulnerabilities. Addressing these specific points would further strengthen the plugin's security.

Key Concerns

  • Raw SQL query without prepared statements
  • Past medium-severity CSRF vulnerabilities (2 total)
Vulnerabilities
2 published

Variation Swatches for WooCommerce Security Vulnerabilities

CVEs by Year

1 CVE in 2023
2023
1 CVE in 2025
2025
Patched Has unpatched

Severity Breakdown

Medium
2

2 total CVEs

CVE-2024-13511medium · 4.3Cross-Site Request Forgery (CSRF)

Variation Swatches for WooCommerce 1.0.8 - 1.3.2 - Cross-Site Request Forgery to Plugin Settings Reset

Jan 22, 2025 Patched in 1.3.3 (1d)
CVE-2023-28688medium · 5.4Cross-Site Request Forgery (CSRF)

TH Variation Swatches <= 1.2.7 - Cross-Site Request Forgery via delete_settings

Mar 22, 2023 Patched in 1.2.8 (307d)
Version History

Variation Swatches for WooCommerce Release Timeline

Code Analysis
Analyzed Mar 16, 2026

Variation Swatches for WooCommerce Code Analysis

Dangerous Functions
0
Raw SQL Queries
1
0 prepared
Unescaped Output
28
529 escaped
Nonce Checks
3
Capability Checks
5
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

0% prepared1 total queries

Output Escaping

95% escaped557 total outputs
Data Flows · Security
All sanitized

Data Flow Analysis

2 flows
thvs_form_setting (inc\thvs-settings.php:128)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Variation Swatches for WooCommerce Attack Surface

Entry Points3
Unprotected0

AJAX Handlers 3

authwp_ajax_th_activeplugininc\themehunk-menu\th-option\th-option.php:5
authwp_ajax_thvs_form_settinginc\thvs-settings.php:29
noprivwp_ajax_thvs_form_settinginc\thvs-settings.php:30
WordPress Hooks 32
actionadmin_menuinc\themehunk-menu\admin-menu.php:6
actionadmin_enqueue_scriptsinc\themehunk-menu\admin-menu.php:7
filterproduct_attributes_type_selectorinc\thvs-hook.php:4
actioninitinc\thvs-hook.php:5
actionadmin_initinc\thvs-hook.php:6
filterwoocommerce_ajax_variation_thresholdinc\thvs-hook.php:7
filterwoocommerce_dropdown_variation_attribute_options_htmlinc\thvs-hook.php:8
actionwoocommerce_product_option_termsinc\thvs-hook.php:9
actionwoocommerce_save_product_variationinc\thvs-hook.php:11
actionwoocommerce_update_product_variationinc\thvs-hook.php:12
actionwoocommerce_delete_product_variationinc\thvs-hook.php:13
actionwoocommerce_trash_product_variationinc\thvs-hook.php:14
actionwoocommerce_delete_product_transientsinc\thvs-hook.php:15
actionwoocommerce_attribute_addedinc\thvs-hook.php:16
actionwoocommerce_attribute_updatedinc\thvs-hook.php:17
actionwoocommerce_attribute_deletedinc\thvs-hook.php:18
filterwoocommerce_layered_nav_term_htmlinc\thvs-hook.php:21
actiondelete_terminc\thvs-meta.php:20
actioncreated_terminc\thvs-meta.php:25
actionedit_terminc\thvs-meta.php:26
actionadmin_enqueue_scriptsinc\thvs-meta.php:27
actionadmin_menuinc\thvs-settings.php:25
actioninitinc\thvs-settings.php:26
actionadmin_initinc\thvs-settings.php:27
actionadmin_enqueue_scriptsinc\thvs-settings.php:28
actionbefore_woocommerce_initinc\thvs.php:32
filterbody_classinc\thvs.php:52
actionwp_enqueue_scriptsinc\thvs.php:53
actioninitinc\thvs.php:55
filterthvs_settingsinc\thvs.php:91
actionplugins_loadedinc\thvs.php:173
filterplugin_row_metath-variation-swatches.php:87
Maintenance & Trust

Variation Swatches for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedMar 18, 2026
PHP min version
Downloads135K

Community Trust

Rating0/100
Number of ratings0
Active installs3K
Developer Profile

Variation Swatches for WooCommerce Developer Profile

ThemeHunk

49 plugins · 64K total installs

76
trust score
Avg Security Score
95/100
Avg Patch Time
188 days
View full developer profile
Detection Fingerprints

How We Detect Variation Swatches for WooCommerce

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/th-variation-swatches/assets/css/thvs-frontend.css/wp-content/plugins/th-variation-swatches/assets/js/thvs-frontend.js
Script Paths
/wp-content/plugins/th-variation-swatches/assets/js/thvs-frontend.js
Version Parameters
th-variation-swatches/assets/css/thvs-frontend.css?ver=th-variation-swatches/assets/js/thvs-frontend.js?ver=

HTML / DOM Fingerprints

CSS Classes
thvs-variation-wrapperthvs-variation-swatchthvs-attribute-label
HTML Comments
<!-- TH Variation Swatches -->
Data Attributes
data-attribute_namedata-variation_iddata-product_id
JS Globals
THVSAdmin
FAQ

Frequently Asked Questions about Variation Swatches for WooCommerce