MAS Variation Swatches for WooCommerce Security & Risk Analysis

wordpress.org/plugins/mas-woocommerce-variation-swatches

Variation Swatches plugin for WooCommerce by MadrasThemes. Replace dropdown fields on your variable products with Color, Label and Image Swatches.

100 active installs v1.1.0 PHP 7.4+ WP 6.4+ Updated Mar 13, 2026
product-attributeproduct-colorproduct-sizevariation-swatcheswoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is MAS Variation Swatches for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

MAS Variation Swatches for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 21d ago
Risk Assessment

The plugin "mas-woocommerce-variation-swatches" v1.1.0 exhibits a generally good security posture with some areas of concern. The static analysis shows a small attack surface with no unprotected entry points and a good percentage of properly escaped outputs and SQL queries using prepared statements. The presence of a nonce check is also a positive sign for securing AJAX requests.

However, the taint analysis reveals two flows with unsanitized paths, categorized as high severity. This indicates a potential risk where user-supplied data might not be properly validated or sanitized before being used in sensitive operations, which could lead to vulnerabilities like path traversal or information disclosure if exploited. The absence of capability checks for the single AJAX handler is also a weakness, as it means the handler might be accessible to users without sufficient privileges, potentially allowing them to trigger unintended actions.

The plugin's vulnerability history is completely clean, with no recorded CVEs. This is a strong indicator of mature and secure development practices. Despite the identified taint flow issues and the lack of capability checks, the overall low attack surface and clean history suggest that the risks are manageable, especially if the identified taint flows are addressed. Developers should prioritize investigating and sanitizing the identified unsanitized paths and consider implementing capability checks for the AJAX handler to further strengthen its security.

Key Concerns

  • Taint flows with unsanitized paths (high severity)
  • AJAX handler without capability checks
Vulnerabilities
None known

MAS Variation Swatches for WooCommerce Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

MAS Variation Swatches for WooCommerce Code Analysis

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

SQL Query Safety

75% prepared4 total queries

Output Escaping

85% escaped67 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

4 flows2 with unsanitized paths
<class-mas-admin-product> (includes\admin\class-mas-admin-product.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

MAS Variation Swatches for WooCommerce Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_mas_wcvs_add_new_attributeincludes\admin\class-mas-admin-product.php:22
WordPress Hooks 13
actionwoocommerce_product_option_termsincludes\admin\class-mas-admin-product.php:20
actionadmin_footerincludes\admin\class-mas-admin-product.php:23
actioncreate_termincludes\admin\class-mas-admin-swatch-taxonomies.php:27
actionedit_termincludes\admin\class-mas-admin-swatch-taxonomies.php:28
actioninitincludes\admin\class-mas-wcvs-admin.php:23
actionadmin_enqueue_scriptsincludes\admin\class-mas-wcvs-admin.php:28
actionwp_enqueue_scriptsincludes\class-mas-wcvs-frontend.php:27
filterwoocommerce_dropdown_variation_attribute_options_htmlincludes\class-mas-wcvs-frontend.php:29
actioninitincludes\class-mas-wcvs.php:67
filterproduct_attributes_type_selectorincludes\class-mas-wcvs.php:92
actionwidgets_initincludes\class-mas-wcvs.php:95
actionwoocommerce_after_shop_loop_itemincludes\mas-wc-variation-swatches-functions.php:95
actionbefore_woocommerce_initmas-woocommerce-variation-swatches.php:67
Maintenance & Trust

MAS Variation Swatches for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedMar 13, 2026
PHP min version7.4
Downloads10K

Community Trust

Rating0/100
Number of ratings0
Active installs100
Developer Profile

MAS Variation Swatches for WooCommerce Developer Profile

MadrasThemes

7 plugins · 25K total installs

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

How We Detect MAS 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/mas-woocommerce-variation-swatches/assets/css/admin.css/wp-content/plugins/mas-woocommerce-variation-swatches/assets/js/admin.min.js/wp-content/plugins/mas-woocommerce-variation-swatches/assets/js/admin.js/wp-content/plugins/mas-woocommerce-variation-swatches/assets/css/style.css/wp-content/plugins/mas-woocommerce-variation-swatches/assets/js/scripts.min.js/wp-content/plugins/mas-woocommerce-variation-swatches/assets/js/scripts.js
Script Paths
assets/js/admin.min.jsassets/js/admin.jsassets/js/scripts.min.jsassets/js/scripts.js
Version Parameters
mas-wcvs-admin-scripts?ver=mas-wcvs-admin-style?ver=mas-wcvs-style?ver=mas-wcvs-scripts?ver=

HTML / DOM Fingerprints

CSS Classes
mas-wcvs-swatchesswatch-colorswatch-imageswatch-labelmas-wcvs-swatch
Data Attributes
data-attribute_namedata-value
JS Globals
mas_wcvs_admin_options
FAQ

Frequently Asked Questions about MAS Variation Swatches for WooCommerce