SaSwatches – Product Variation Swatches For WooCommerce Security & Risk Analysis

wordpress.org/plugins/sa-swatches

Sa Swatches - Variation Swatches for WooCommerce the ultimate solution to enhance your WooCommerce store's product presentation.

0 active installs v0.1.11 PHP 7.0+ WP 6.5+ Updated Oct 2, 2024
swatchesvariable-product-attributesvariation-product-swatchesvariation-swatcheswoocommerce
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is SaSwatches – Product Variation Swatches For WooCommerce Safe to Use in 2026?

Generally Safe

Score 92/100

SaSwatches – Product 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 1yr ago
Risk Assessment

The "sa-swatches" plugin version 0.1.11 exhibits a mixed security posture. On the positive side, it demonstrates good practices by exclusively using prepared statements for its SQL queries and properly escaping a high percentage of its output. The absence of known vulnerabilities in its history is also a strong indicator of good security maintenance up to this point. However, significant concerns arise from the attack surface analysis. The plugin exposes two AJAX handlers, both of which lack authentication checks. This is a critical oversight that could allow unauthenticated users to trigger potentially harmful actions.

The taint analysis reveals two flows with unsanitized paths, both flagged as high severity. While the static analysis doesn't explicitly state the *nature* of these unsanitized paths (e.g., if they are user-controlled inputs), their presence alongside the unprotected AJAX handlers strongly suggests a potential for remote code execution or other serious vulnerabilities if these paths can be triggered by external, unvalidated data. The presence of only one nonce check across all entry points further exacerbates the risk associated with the unprotected AJAX handlers.

In conclusion, while the plugin has a clean vulnerability history and good coding practices regarding SQL and output escaping, the unprotected AJAX endpoints and high-severity taint flows represent a substantial security risk. These areas require immediate attention to secure the plugin against potential exploits. The lack of authentication on critical entry points is the most pressing issue.

Key Concerns

  • AJAX handlers without auth checks
  • High severity taint flows
  • Missing nonce checks on AJAX
Vulnerabilities
None known

SaSwatches – Product Variation Swatches For WooCommerce Security Vulnerabilities

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

SaSwatches – Product Variation Swatches For WooCommerce Code Analysis

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

SQL Query Safety

100% prepared6 total queries

Output Escaping

96% escaped75 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
edit_attribute_fields (inc\admin-attr.php:354)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
2 unprotected

SaSwatches – Product Variation Swatches For WooCommerce Attack Surface

Entry Points2
Unprotected2

AJAX Handlers 2

authwp_ajax_sasw_ajaxapi\api.php:13
noprivwp_ajax_sasw_ajaxapi\api.php:14
WordPress Hooks 39
actionsasw_api/update_term_swatchapi\attr-api.php:10
actionsasw_api/update_custom_swatchapi\attr-api.php:11
actionsasw_api/get_termsapi\attr-api.php:12
actionsasw_api/get_attr_settingsapi\attr-api.php:13
actionsasw_api/add_termapi\attr-api.php:14
actionsasw_api/get_product_attrsapi\attr-api.php:15
actionsasw_api/get_variantsapi\product-api.php:5
actionadmin_enqueue_scriptsinc\admin-attr-product.php:52
actionwoocommerce_product_option_termsinc\admin-attr-product.php:98
actionwoocommerce_after_product_attribute_settingsinc\admin-attr-product.php:99
actionwoocommerce_after_product_object_saveinc\admin-attr-product.php:100
filterplugins_loadedinc\admin-attr.php:197
actionadmin_enqueue_scriptsinc\admin-attr.php:200
filterscript_loader_srcinc\admin-attr.php:241
actionwoocommerce_attribute_updatedinc\admin-attr.php:326
actionwoocommerce_attribute_addedinc\admin-attr.php:327
actionwoocommerce_attribute_deletedinc\admin-attr.php:328
actionwoocommerce_after_add_attribute_fieldsinc\admin-attr.php:391
actionwoocommerce_after_edit_attribute_fieldsinc\admin-attr.php:392
actionwp_enqueue_scriptsinc\product.php:109
filterwoocommerce_ajax_variation_thresholdinc\product.php:117
actionwoocommerce_before_template_partinc\product.php:190
actionwoocommerce_after_template_partinc\product.php:191
actionwoocommerce_after_shop_loop_iteminc\product.php:192
filterwoocommerce_post_classinc\product.php:209
filterwoocommerce_product_get_imageinc\product.php:216
filterpre_render_blockinc\product.php:240
filterrender_blockinc\product.php:247
filterwoocommerce_is_purchasableinc\product.php:282
filterwoocommerce_product_is_in_stockinc\product.php:283
filterwoocommerce_product_supportsinc\product.php:284
filterwp_script_attributesinc\product.php:308
actionadmin_enqueue_scriptsinc\wc-settings.php:44
filterwoocommerce_get_sections_advancedinc\wc-settings.php:50
actionwoocommerce_settings_advancedinc\wc-settings.php:59
filterwoocommerce_get_settings_advancedinc\wc-settings.php:98
actioninitsa-swatches.php:36
filterproduct_attributes_type_selectorsa-swatches.php:62
filterget_object_termssa-swatches.php:77
Maintenance & Trust

SaSwatches – Product Variation Swatches For WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.6.5
Last updatedOct 2, 2024
PHP min version7.0
Downloads671

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

SaSwatches – Product Variation Swatches For WooCommerce Developer Profile

shrimp2t

2 plugins · 50 total installs

86
trust score
Avg Security Score
89/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect SaSwatches – Product 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/sa-swatches/assets/css/attr/attr-product.css/wp-content/plugins/sa-swatches/assets/js/attr/attr-product.js
Script Paths
/wp-content/plugins/sa-swatches/assets/js/attr/attr-product.js
Version Parameters
sa-swatches/assets/css/attr/attr-product.css?ver=sa-swatches/assets/js/attr/attr-product.js?ver=

HTML / DOM Fingerprints

CSS Classes
sasw_attr_swatchessasw_overwrite_swatchessasw_attribute_settings
Data Attributes
data-return_iddata-titledata-selecteddata-placeholderdata-taxonomy
JS Globals
SASW_SWATCHES
FAQ

Frequently Asked Questions about SaSwatches – Product Variation Swatches For WooCommerce