Color and Image Swatches for Variable Product Attributes Security & Risk Analysis

wordpress.org/plugins/color-and-image-swatches-for-variable-product-attributes

By using our woocommerce plugin you can generate color and image swatches to display the available product variable attributes like colors, sizes, st …

1K active installs v2.0.6 PHP + WP 4.0+ Updated Dec 16, 2020
product-attribute-swatchesproduct-variable-color-and-image-swatchesvariation-swatcheswoocommerce-attributeswoocommerce-product-swatch
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Color and Image Swatches for Variable Product Attributes Safe to Use in 2026?

Generally Safe

Score 85/100

Color and Image Swatches for Variable Product Attributes has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 5yr ago
Risk Assessment

The "color-and-image-swatches-for-variable-product-attributes" plugin v2.0.6 exhibits a mixed security posture. On the positive side, it demonstrates good practices with all SQL queries using prepared statements and no recorded past vulnerabilities. The presence of a nonce check is also a positive sign. However, significant concerns arise from its attack surface, with 2 out of 2 AJAX handlers lacking authentication checks. This leaves these entry points vulnerable to unauthorized access and potential exploitation by unauthenticated users. The taint analysis also reveals one flow with an unsanitized path, indicating a potential risk for data manipulation or injection if that path is exploited. The lack of capability checks on AJAX handlers is a critical oversight, as it allows any user, even those not logged in, to potentially trigger these functions. The plugin's strength lies in its lack of historical vulnerabilities and robust SQL handling, but the current implementation of its AJAX endpoints presents a clear and actionable security risk.

Key Concerns

  • AJAX handlers without auth checks
  • Flow with unsanitized path
  • AJAX handlers without capability checks
  • Output escaping only 55% proper
Vulnerabilities
None known

Color and Image Swatches for Variable Product Attributes Security Vulnerabilities

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

Color and Image Swatches for Variable Product Attributes Code Analysis

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

Bundled Libraries

Select2

Output Escaping

55% escaped120 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

2 flows1 with unsanitized paths
<admin_settings> (classes\admin_settings.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
2 unprotected

Color and Image Swatches for Variable Product Attributes Attack Surface

Entry Points2
Unprotected2

AJAX Handlers 2

authwp_ajax_phoen_swatches_add_cartplugin.php:55
noprivwp_ajax_phoen_swatches_add_cartplugin.php:57
WordPress Hooks 10
actionadmin_enqueue_scriptsclasses\phoen-product-attribute-images-class.php:26
actioncurrent_screenclasses\phoen-product-attribute-images-class.php:28
actioncreated_termclasses\phoen-product-attribute-images-class.php:30
actionedit_termclasses\phoen-product-attribute-images-class.php:32
actionadmin_menuplugin.php:31
actioninitplugin.php:43
actionadmin_enqueue_scriptsplugin.php:45
actionwp_headplugin.php:51
actionadmin_headplugin.php:53
actionwoocommerce_locate_templateplugin.php:63
Maintenance & Trust

Color and Image Swatches for Variable Product Attributes Maintenance & Trust

Maintenance Signals

WordPress version tested5.6.17
Last updatedDec 16, 2020
PHP min version
Downloads97K

Community Trust

Rating62/100
Number of ratings20
Active installs1K
Developer Profile

Color and Image Swatches for Variable Product Attributes Developer Profile

Phoeniixx

25 plugins · 5K total installs

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

How We Detect Color and Image Swatches for Variable Product Attributes

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/color-and-image-swatches-for-variable-product-attributes/assets/css/select2.css/wp-content/plugins/color-and-image-swatches-for-variable-product-attributes/assets/js/select2.js/wp-content/plugins/color-and-image-swatches-for-variable-product-attributes/templates/single-product/variable.php
Version Parameters
color-and-image-swatches-for-variable-product-attributes/assets/js/select2.js?ver=color-and-image-swatches-for-variable-product-attributes/assets/css/select2.css?ver=

HTML / DOM Fingerprints

CSS Classes
swatches-img-wrapp-swatchpa-swatchp-colorpa-color
HTML Comments
<!-- PHOEN_PRODUCT_ATTRIBUTES_SWATCHES --><!-- PHOEN_TERM -->
Data Attributes
data-pattiddata-attribute-iddata-term-id
JS Globals
phoen_attr_color_swatches_add
FAQ

Frequently Asked Questions about Color and Image Swatches for Variable Product Attributes