Default Attributes for WooCommerce Security & Risk Analysis

wordpress.org/plugins/default-attributes-for-woocommerce

WooCommerce plugin that sets default attribute for variable products automatically if only 1 option is in-stock.

400 active installs v1.2.1 PHP 7.0+ WP 5.2+ Updated Dec 23, 2025
attributesdefaultstockvariations
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Default Attributes for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

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

No known CVEs Updated 3mo ago
Risk Assessment

The 'default-attributes-for-woocommerce' plugin v1.2.1 exhibits a generally strong security posture based on the provided static analysis. It has no identified AJAX handlers, REST API routes, shortcodes, or cron events, indicating a very limited attack surface with no immediately apparent unprotected entry points. Furthermore, the code shows good practices in handling SQL queries with 100% prepared statements and no file operations or external HTTP requests. The absence of known CVEs and a clean vulnerability history further reinforces this positive assessment.

However, there are a couple of areas that warrant attention. The taint analysis revealed two flows with unsanitized paths. While not flagged as critical or high severity, this indicates potential for input validation issues that could be exploited under specific circumstances. Additionally, only 67% of output is properly escaped, suggesting a moderate risk of cross-site scripting (XSS) vulnerabilities if user-controlled data is outputted without sufficient sanitization in the remaining cases.

In conclusion, the plugin is well-defended against common web vulnerabilities due to its minimal attack surface and good SQL handling. The primary concerns stem from the identified unsanitized taint flows and the partially unescaped output. These issues are not severe based on the data, but they do present opportunities for exploitation if not addressed. The lack of past vulnerabilities is a positive sign of developer diligence, but ongoing vigilance and remediation of these identified code signals are recommended.

Key Concerns

  • Taint flows with unsanitized paths
  • Partially unescaped output
Vulnerabilities
None known

Default Attributes for WooCommerce Security Vulnerabilities

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

Default Attributes for WooCommerce Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
2
4 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

67% escaped6 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
wc_save_attribute_default (default-attributes-for-woocommerce.php:277)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Default Attributes for WooCommerce Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 17
actionbefore_woocommerce_initdefault-attributes-for-woocommerce.php:43
actionplugins_loadeddefault-attributes-for-woocommerce.php:48
filterplugin_row_metadefault-attributes-for-woocommerce.php:72
filterwoocommerce_settings_tabs_arraydefault-attributes-for-woocommerce.php:73
actionwoocommerce_settings_tabs_dawdefault-attributes-for-woocommerce.php:74
actionwoocommerce_update_options_dawdefault-attributes-for-woocommerce.php:75
filterwoocommerce_admin_settings_sanitize_option_wc_daw_max_variationsdefault-attributes-for-woocommerce.php:76
filterwoocommerce_admin_settings_sanitize_option_wc_daw_first_attributedefault-attributes-for-woocommerce.php:77
actionwoocommerce_after_edit_attribute_fieldsdefault-attributes-for-woocommerce.php:78
actionwoocommerce_attribute_updateddefault-attributes-for-woocommerce.php:79
actionwoocommerce_attribute_deleteddefault-attributes-for-woocommerce.php:80
filterwoocommerce_product_get_default_attributesdefault-attributes-for-woocommerce.php:87
filterwoocommerce_variation_is_activedefault-attributes-for-woocommerce.php:89
filterwoocommerce_ajax_variation_thresholddefault-attributes-for-woocommerce.php:90
filterwoocommerce_product_add_to_cart_textdefault-attributes-for-woocommerce.php:93
filterwoocommerce_after_variations_formdefault-attributes-for-woocommerce.php:96
filterwoocommerce_dropdown_variation_attribute_options_argsdefault-attributes-for-woocommerce.php:99
Maintenance & Trust

Default Attributes for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 23, 2025
PHP min version7.0
Downloads10K

Community Trust

Rating100/100
Number of ratings4
Active installs400
Developer Profile

Default Attributes for WooCommerce Developer Profile

Condless

7 plugins · 10K total installs

94
trust score
Avg Security Score
100/100
Avg Patch Time
8 days
View full developer profile
Detection Fingerprints

How We Detect Default Attributes 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/default-attributes-for-woocommerce/assets/css/default-attributes-for-woocommerce.css
Script Paths
/wp-content/plugins/default-attributes-for-woocommerce/assets/js/default-attributes-for-woocommerce.js
Version Parameters
default-attributes-for-woocommerce/assets/css/default-attributes-for-woocommerce.css?ver=default-attributes-for-woocommerce/assets/js/default-attributes-for-woocommerce.js?ver=

HTML / DOM Fingerprints

CSS Classes
wc-daw-attribute-selectionwc_daw_hide_out_of_stockwc_daw_first_option_selected
HTML Comments
<!-- Default Attributes for WooCommerce --><!-- wc_daw_apply_default_attribute --><!-- wc_daw_hide_out_of_stock_variation -->
Data Attributes
data-wc-daw-attribute-selectiondata-wc-daw-default-value
JS Globals
window.wc_daw_settingsvar wc_daw_settings
FAQ

Frequently Asked Questions about Default Attributes for WooCommerce