Taxonomy/Term and Role based Discounts for WooCommerce Security & Risk Analysis

wordpress.org/plugins/taxonomy-discounts-woocommerce

Let’s you configure discounts/pricing rules for products based on any product taxonomy terms and WordPress user roles

200 active installs v7.1 PHP 7.2+ WP 5.8+ Updated Jan 1, 2026
dealsdynamicmarketingpricingsales
99
A · Safe
CVEs total1
Unpatched0
Last CVEJan 24, 2025
Download
Safety Verdict

Is Taxonomy/Term and Role based Discounts for WooCommerce Safe to Use in 2026?

Generally Safe

Score 99/100

Taxonomy/Term and Role based Discounts for WooCommerce has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Jan 24, 2025Updated 3mo ago
Risk Assessment

The "taxonomy-discounts-woocommerce" plugin version 7.2 exhibits a mixed security posture. On the positive side, the plugin demonstrates strong practices regarding database interactions, with 100% of its SQL queries utilizing prepared statements and an impressive 99% of its output being properly escaped. This significantly reduces the risk of common injection and XSS vulnerabilities related to data handling. The absence of file operations and external HTTP requests further contributes to a more secure codebase.

However, significant security concerns arise from the plugin's attack surface. All 5 identified AJAX handlers lack authentication checks, presenting a direct pathway for attackers to trigger plugin functionality without proper authorization. While the total number of flows analyzed in taint analysis is low (3), the presence of 2 flows with unsanitized paths, flagged as high severity, is a critical red flag. These could potentially lead to vulnerabilities if not addressed. The plugin also has a history of past vulnerabilities, including a medium severity one, indicating a pattern that warrants vigilance. While there are no currently unpatched CVEs, the presence of historical issues, coupled with the unprotected AJAX endpoints and high-severity taint flows, suggests a need for rigorous auditing and immediate attention to the identified vulnerabilities.

In conclusion, while the plugin excels in several secure coding practices like prepared statements and output escaping, the unprotected AJAX endpoints and high-severity unsanitized taint flows represent substantial security risks. The historical vulnerability data, though currently clear of unpatched issues, suggests a recurring need for security maintenance. Addressing the unprotected entry points and the identified taint flows should be the immediate priority to improve the plugin's overall security.

Key Concerns

  • 5 AJAX handlers without auth checks
  • 2 high severity unsanitized taint flows
  • 1 medium CVE in vulnerability history
  • 1 nonce check for 5 entry points
Vulnerabilities
1

Taxonomy/Term and Role based Discounts for WooCommerce Security Vulnerabilities

CVEs by Year

1 CVE in 2025
2025
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2025-24625medium · 4.3Cross-Site Request Forgery (CSRF)

Taxonomy/Term and Role based Discounts for WooCommerce <= 5.1 - Cross-Site Request Forgery to Settings Update

Jan 24, 2025 Patched in 5.2 (5d)
Code Analysis
Analyzed Mar 16, 2026

Taxonomy/Term and Role based Discounts for WooCommerce Code Analysis

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

SQL Query Safety

100% prepared9 total queries

Output Escaping

99% escaped307 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

3 flows2 with unsanitized paths
<class-wc-taxonomy-discounts-webdados> (includes\class-wc-taxonomy-discounts-webdados.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
5 unprotected

Taxonomy/Term and Role based Discounts for WooCommerce Attack Surface

Entry Points5
Unprotected5

AJAX Handlers 5

authwp_ajax_tdw_form_add_choose_taxonomyincludes\class-wc-taxonomy-discounts-webdados.php:92
authwp_ajax_tdw_form_add_submitincludes\class-wc-taxonomy-discounts-webdados.php:93
authwp_ajax_tdw_form_edit_submitincludes\class-wc-taxonomy-discounts-webdados.php:94
authwp_ajax_tdw_rules_tableincludes\class-wc-taxonomy-discounts-webdados.php:95
authwp_ajax_tdw_delete_ruleincludes\class-wc-taxonomy-discounts-webdados.php:96
WordPress Hooks 29
actionadmin_menuincludes\class-wc-taxonomy-discounts-webdados.php:85
actionadmin_enqueue_scriptsincludes\class-wc-taxonomy-discounts-webdados.php:87
actionwoocommerce_screen_idsincludes\class-wc-taxonomy-discounts-webdados.php:89
actionplugins_loadedincludes\class-wc-taxonomy-discounts-webdados.php:99
actionafter_setup_themeincludes\class-wc-taxonomy-discounts-webdados.php:124
actionafter_setup_themeincludes\class-wc-taxonomy-discounts-webdados.php:134
actionwoocommerce_before_mini_cartincludes\class-wc-taxonomy-discounts-webdados.php:143
actionwoocommerce_after_mini_cartincludes\class-wc-taxonomy-discounts-webdados.php:144
filterwoocommerce_product_is_on_saleincludes\class-wc-taxonomy-discounts-webdados.php:146
actionwoocommerce_cart_loaded_from_sessionincludes\class-wc-taxonomy-discounts-webdados.php:148
actionwoocommerce_before_calculate_totalsincludes\class-wc-taxonomy-discounts-webdados.php:149
actionwoocommerce_before_calculate_totalsincludes\class-wc-taxonomy-discounts-webdados.php:150
actionwoocommerce_after_calculate_totalsincludes\class-wc-taxonomy-discounts-webdados.php:151
filterwoocommerce_cart_item_priceincludes\class-wc-taxonomy-discounts-webdados.php:153
filterwoocommerce_cart_item_subtotalincludes\class-wc-taxonomy-discounts-webdados.php:154
filterwoocommerce_available_variationincludes\class-wc-taxonomy-discounts-webdados.php:156
filterwoocommerce_variation_pricesincludes\class-wc-taxonomy-discounts-webdados.php:157
filterwoocommerce_get_variation_sale_priceincludes\class-wc-taxonomy-discounts-webdados.php:158
filterwoocommerce_coupon_is_validincludes\class-wc-taxonomy-discounts-webdados.php:160
filterwoocommerce_coupon_get_discount_amountincludes\class-wc-taxonomy-discounts-webdados.php:161
filterwoocommerce_sale_flashincludes\class-wc-taxonomy-discounts-webdados.php:167
filterkuantokusta_product_node_default_current_priceincludes\class-wc-taxonomy-discounts-webdados.php:203
filterkuantokusta_product_node_variation_current_priceincludes\class-wc-taxonomy-discounts-webdados.php:204
filterterms_clausesincludes\class-wc-taxonomy-discounts-webdados.php:279
filterget_termincludes\class-wc-taxonomy-discounts-webdados.php:280
filterget_terms_argsincludes\class-wc-taxonomy-discounts-webdados.php:281
actionadmin_noticestaxonomy-discounts-woocommerce.php:39
actionplugins_loadedtaxonomy-discounts-woocommerce.php:42
actionbefore_woocommerce_inittaxonomy-discounts-woocommerce.php:67
Maintenance & Trust

Taxonomy/Term and Role based Discounts for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 1, 2026
PHP min version7.2
Downloads19K

Community Trust

Rating88/100
Number of ratings8
Active installs200
Developer Profile

Taxonomy/Term and Role based Discounts for WooCommerce Developer Profile

Marco Almeida | Webdados

21 plugins · 27K total installs

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

How We Detect Taxonomy/Term and Role based Discounts 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/taxonomy-discounts-woocommerce/assets/css/backend.css/wp-content/plugins/taxonomy-discounts-woocommerce/assets/js/backend.js/wp-content/plugins/taxonomy-discounts-woocommerce/assets/js/frontend.js
Version Parameters
/wp-content/plugins/taxonomy-discounts-woocommerce/assets/css/backend.css?ver=/wp-content/plugins/taxonomy-discounts-woocommerce/assets/js/backend.js?ver=/wp-content/plugins/taxonomy-discounts-woocommerce/assets/js/frontend.js?ver=

HTML / DOM Fingerprints

CSS Classes
tdw-discount-rule-fieldtdw-rules-table
HTML Comments
<!-- HPOS Compatible -->/* If you're reading this you must know what you're doing ;-) Greetings from sunny Portugal! *//** * Main class file for WooCommerce Taxonomy Discounts plugin * * Handles taxonomy and role-based discount functionality for WooCommerce products */
Data Attributes
data-tdw-rule-id
JS Globals
WC_TDW_AJAX_URLtdw_discount_typestdw_enable_cache
REST Endpoints
/wp-json/tdw/v1/rules
FAQ

Frequently Asked Questions about Taxonomy/Term and Role based Discounts for WooCommerce