Ni Cost of Goods for WooCommerce Security & Risk Analysis

wordpress.org/plugins/ni-woocommerce-cost-of-goods

NI Cost of Goods for WooCommerce adds cost prices and offers profit insights, helping you optimize pricing and enhance profitability in your store.

300 active installs v3.4.0 PHP 7.4+ WP 5.0+ Updated Mar 5, 2026
cost-of-goodsproduct-profitprofit-reportpurchase-pricewoocommerce-analytics
97
A · Safe
CVEs total3
Unpatched0
Last CVEApr 4, 2025
Safety Verdict

Is Ni Cost of Goods for WooCommerce Safe to Use in 2026?

Generally Safe

Score 97/100

Ni Cost of Goods for WooCommerce has a strong security track record. Known vulnerabilities have been patched promptly.

3 known CVEsLast CVE: Apr 4, 2025Updated 29d ago
Risk Assessment

The "ni-woocommerce-cost-of-goods" plugin version 3.4.0 exhibits a generally good security posture, with strong adherence to best practices like prepared statements for all SQL queries and a high percentage of properly escaped output. The attack surface is minimal, consisting of only one AJAX handler, and importantly, this entry point appears to have proper authorization checks. The absence of file operations, external HTTP requests, and the presence of nonce and capability checks further reinforce this positive assessment.

However, concerns arise from the taint analysis, which identified two flows with unsanitized paths, both flagged as high severity. While no critical vulnerabilities were found in the taint analysis, these high-severity flows represent a potential risk for improper neutralization of input, which could lead to security issues if exploited. The vulnerability history, despite having no currently unpatched CVEs, shows a pattern of past medium-severity issues including Cross-site Scripting (XSS), Missing Authorization, and SQL Injection. This indicates a need for continued vigilance and thorough security reviews, as these types of vulnerabilities, even if patched, suggest past weaknesses in input sanitization and authorization handling.

In conclusion, the plugin demonstrates strong technical implementation regarding database queries and output handling. The primary areas of concern are the high-severity unsanitized paths identified in the taint analysis and the historical presence of medium-severity vulnerabilities, particularly those related to input sanitization and authorization. While the current version appears to be free of critical or unpatched vulnerabilities, the identified taint flows warrant immediate investigation and remediation to ensure the plugin's robust security.

Key Concerns

  • High severity taint flows with unsanitized paths
  • Past medium severity vulnerabilities (XSS, SQLi, Auth)
Vulnerabilities
3

Ni Cost of Goods for WooCommerce Security Vulnerabilities

CVEs by Year

1 CVE in 2024
2024
2 CVEs in 2025
2025
Patched Has unpatched

Severity Breakdown

Medium
3

3 total CVEs

CVE-2025-32207medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Ni WooCommerce Cost Of Goods <= 3.2.8 - Authenticated (Subscriber+) Stored Cross-Site Scripting

Apr 4, 2025 Patched in 3.2.9 (12d)
CVE-2025-31826medium · 4.3Missing Authorization

Ni WooCommerce Cost Of Goods <= 3.2.8 - Missing Authorization

Apr 1, 2025 Patched in 3.2.9 (15d)
CVE-2024-53783medium · 4.9Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Ni WooCommerce Cost Of Goods <= 3.2.8 - Authenticated (Administrator+) SQL Injection

Nov 28, 2024 Patched in 3.2.9 (138d)
Code Analysis
Analyzed Mar 16, 2026

Ni Cost of Goods for WooCommerce Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
110 prepared
Unescaped Output
10
257 escaped
Nonce Checks
11
Capability Checks
3
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

100% prepared110 total queries

Output Escaping

96% escaped267 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

6 flows2 with unsanitized paths
get_query (include\ni-cog-analytical-report.php:178)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Ni Cost of Goods for WooCommerce Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_ni_cog_actioninclude\ni-woocommerce-cost-of-goods-init.php:26
WordPress Hooks 27
actionquick_edit_custom_boxinclude\class-ni-woocommerce-cost-of-goods-quick-edit.php:58
actionsave_post_productinclude\class-ni-woocommerce-cost-of-goods-quick-edit.php:59
filterpost_row_actionsinclude\class-ni-woocommerce-cost-of-goods-quick-edit.php:60
actionadmin_footerinclude\class-ni-woocommerce-cost-of-goods-quick-edit.php:61
actionwoocommerce_product_options_general_product_datainclude\ni-woocommerce-cost-of-goods-function.php:35
actionwoocommerce_process_product_meta_simpleinclude\ni-woocommerce-cost-of-goods-function.php:39
actionwoocommerce_product_after_variable_attributesinclude\ni-woocommerce-cost-of-goods-function.php:46
actionwoocommerce_save_product_variationinclude\ni-woocommerce-cost-of-goods-function.php:48
actionwoocommerce_new_order_iteminclude\ni-woocommerce-cost-of-goods-function.php:53
filtermanage_edit-product_columnsinclude\ni-woocommerce-cost-of-goods-function.php:56
actionmanage_product_posts_custom_columninclude\ni-woocommerce-cost-of-goods-function.php:58
actionadmin_print_stylesinclude\ni-woocommerce-cost-of-goods-function.php:59
actionadmin_menuinclude\ni-woocommerce-cost-of-goods-init.php:24
actionadmin_enqueue_scriptsinclude\ni-woocommerce-cost-of-goods-init.php:25
filterplugin_row_metainclude\ni-woocommerce-cost-of-goods-init.php:27
filteradmin_footer_textinclude\ni-woocommerce-cost-of-goods-init.php:29
actionadmin_initinclude\ni-woocommerce-cost-of-goods-init.php:31
actionquick_edit_custom_boxinclude\ni-woocommerce-cost-of-goods-quick-edit.php:17
actionsave_postinclude\ni-woocommerce-cost-of-goods-quick-edit.php:18
filterpost_row_actionsinclude\ni-woocommerce-cost-of-goods-quick-edit.php:19
actionadmin_footerinclude\ni-woocommerce-cost-of-goods-quick-edit.php:20
actionwoocommerce_product_bulk_edit_endinclude\ni-woocommerce-cost-of-goods-quick-edit.php:24
actionsave_postinclude\ni-woocommerce-cost-of-goods-quick-edit.php:25
actionplugins_loadedni-woocommerce-cost-of-goods.php:57
filterplugin_action_linksni-woocommerce-cost-of-goods.php:58
actionbefore_woocommerce_initni-woocommerce-cost-of-goods.php:60
actionadmin_noticesni-woocommerce-cost-of-goods.php:108
Maintenance & Trust

Ni Cost of Goods for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.7.5
Last updatedMar 5, 2026
PHP min version7.4
Downloads46K

Community Trust

Rating70/100
Number of ratings4
Active installs300
Developer Profile

Ni Cost of Goods for WooCommerce Developer Profile

Anzar Ahmed

25 plugins · 5K total installs

71
trust score
Avg Security Score
88/100
Avg Patch Time
228 days
View full developer profile
Detection Fingerprints

How We Detect Ni Cost of Goods 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/ni-woocommerce-cost-of-goods/assets/css/ni-cog-admin.css/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-admin.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-report.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-sales-report.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-update-product.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-other-plugin.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-setting.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-top-profit.js
Script Paths
/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-admin.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-report.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-sales-report.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-update-product.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-other-plugin.js/wp-content/plugins/ni-woocommerce-cost-of-goods/assets/js/ni-cog-setting.js+1 more
Version Parameters
ni-woocommerce-cost-of-goods/assets/css/ni-cog-admin.css?ver=ni-woocommerce-cost-of-goods/assets/js/ni-cog-admin.js?ver=ni-woocommerce-cost-of-goods/assets/js/ni-cog-report.js?ver=ni-woocommerce-cost-of-goods/assets/js/ni-cog-sales-report.js?ver=ni-woocommerce-cost-of-goods/assets/js/ni-cog-update-product.js?ver=ni-woocommerce-cost-of-goods/assets/js/ni-cog-other-plugin.js?ver=ni-woocommerce-cost-of-goods/assets/js/ni-cog-setting.js?ver=ni-woocommerce-cost-of-goods/assets/js/ni-cog-top-profit.js?ver=

HTML / DOM Fingerprints

CSS Classes
ni-cog-adminni-cog-reportni-cog-sales-reportni-cog-update-productni-cog-other-pluginni-cog-settingni-cog-top-profit
HTML Comments
<!-- Start Ni Cog Sales Report --><!-- End Ni Cog Sales Report --><!-- Start Ni Cog Update Product --><!-- End Ni Cog Update Product -->+6 more
Data Attributes
data-ni-cog-sales-print-noncename="ni_cog_sales_print_nonce"id="footer-thankyou"
JS Globals
ni_cog_admin_paramsni_cog_report_paramsni_cog_sales_report_paramsni_cog_update_product_paramsni_cog_other_plugin_paramsni_cog_setting_params+1 more
REST Endpoints
/wp-json/ni-cog/v1/update-product
FAQ

Frequently Asked Questions about Ni Cost of Goods for WooCommerce