{"summary":{"plugin_name":"variation-swatches-for-woocommerce","display_name":"Variation Swatches for WooCommerce","version":"2.2.10","risk_level":"low","risk_score":15.0,"risk_factors":{"owasp":5,"attack_surface":5,"superglobal_density":5},"last_analyzed":"2026-11-23T14:41:39.704480","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":40000,"rating":74,"num_ratings":59,"tested":"7.1.5","requires":"4.5","requires_php":"False","author":"Woosuite","short_description":"Turn WooCommerce variation dropdowns into color, image, label and radio button swatches. The original Variation Swatches for WooCommerce.","tags":["variation swatches","variation swatches for woocommerce","woocommerce color swatches"],"added":"2017-01-17","last_updated":"2026-11-16 2:51pm GMT","metadata_fetched_at":"2026-11-23T09:27:26.585995+00:00","modules_missing":[],"modules_failed":[],"latest_release":"2.2.10"},"security_metrics":{"total_issues":0,"parameters_found":19,"unknown_parameters":1,"headers_accessed":0,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A03":1,"A04":1},"attack_surface_level":"medium","attack_surface_score":21,"tainted_sinks":17,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":81.4,"rank":94143,"peer_count":504929,"better_than":81.4,"risk_distribution":{"low":103337,"high":178450,"medium":122042,"critical":39003,"minimal":62097}},"executive_summary":null,"vulnerabilities":[{"id":"25ad93fa-aa70-4ca4-b50a-4f0aeac4e975","title":"Variation Swatches for WooCommerce < 2.1.2 - Subscriber+ Stored Cross-Site Scripting","created_at":"2021-12-01T15:31:52.000Z","updated_at":"2022-04-11T07:24:04.000Z","published_date":"2021-12-01T00:00:00.000Z","description":null,"poc":null,"vuln_type":"XSS","references":{"url":["https://www.wordfence.com/blog/2021/12/xss-vulnerability-patched-in-plugin-designed-to-enhance-woocommerce/"],"cve":["2021-42367"]},"cvss":null,"fixed_in":"2.1.2","introduced_in":null}],"recommendations":[{"category":"A03","name":"Injection","severity":"medium","findings_count":1,"description":"User-supplied data is not validated, filtered, or sanitized by the application","recommendations":["Use $wpdb->prepare() for all database queries — never interpolate or concatenate input","Sanitize all user input with appropriate WordPress functions","Escape output based on context (esc_html, esc_attr, etc.)","Never pass user input to eval(), include/require, or a variable function"],"findings_summary":["Reachable 'file_include' sink x16 - 16 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"]},{"category":"A04","name":"Insecure Design","severity":"low","findings_count":1,"description":"Missing or ineffective control design — e.g. plugin files that perform work when requested directly, bypassing the WordPress bootstrap","recommendations":["Add a `defined('ABSPATH') || exit;` guard to every PHP file so it cannot be requested directly","Move logic out of directly-reachable files into hook callbacks loaded by WordPress","Threat-model unauthenticated entry points during design, not after release"],"findings_summary":["Direct file access: 11 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A03":[{"type":"reachability_sink","sink":"file_include","count":16,"risk":"16 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":11,"risk":"11 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}