Product Code for WooCommerce Security & Risk Analysis

wordpress.org/plugins/product-code-for-woocommerce

This plugin will allow a user to add up to two additional internal product identifiers to the order process in addition to the GTIN, EAN, SKU, or UPC.

1K active installs v1.5.11 PHP 7.4+ WP 5.8+ Updated Jan 14, 2026
bin-numberorder-numberproduct-codeproduct-numberwarehouse-tracking
98
A · Safe
CVEs total2
Unpatched0
Last CVEMay 19, 2025
Safety Verdict

Is Product Code for WooCommerce Safe to Use in 2026?

Generally Safe

Score 98/100

Product Code for WooCommerce has a strong security track record. Known vulnerabilities have been patched promptly.

2 known CVEsLast CVE: May 19, 2025Updated 2mo ago
Risk Assessment

The "product-code-for-woocommerce" plugin v1.5.11 presents a mixed security posture. While it demonstrates some good practices such as a relatively low number of total entry points and a decent percentage of SQL queries using prepared statements and output escaping, there are significant areas of concern. The presence of unprotected AJAX handlers and identified taint flows with unsanitized paths are critical security weaknesses that could lead to vulnerabilities if exploited. The plugin also has a history of known vulnerabilities, particularly medium severity Cross-Site Scripting and CSRF issues, which, despite being currently patched, indicate a recurring pattern of insecure coding practices in certain areas.

The static analysis reveals a total of 7 entry points, with 4 of them lacking authentication checks. This is a substantial attack surface that is exposed to unauthenticated users. Furthermore, the taint analysis identified 2 flows with unsanitized paths, both flagged as high severity. This suggests that user-supplied data is not being properly validated or neutralized before being used in a way that could lead to exploitation, such as arbitrary code execution or sensitive data leakage. The historical vulnerability data, while showing no currently unpatched CVEs, highlights a trend of past security flaws that, if not addressed through robust code review and testing, could re-emerge.

In conclusion, while the plugin has some positive security attributes like the absence of dangerous functions and file operations, the identified unprotected entry points and high-severity taint flows represent immediate risks. The historical vulnerability pattern reinforces the need for ongoing vigilance and thorough security auditing to ensure future versions are free from similar weaknesses. A proactive approach to addressing these specific concerns is highly recommended.

Key Concerns

  • Unprotected AJAX handlers
  • High severity unsanitized taint flows
  • Medium severity CVE history (x2)
  • Lower percentage of properly escaped output
  • Lower percentage of prepared SQL statements
Vulnerabilities
2

Product Code for WooCommerce Security Vulnerabilities

CVEs by Year

1 CVE in 2023
2023
1 CVE in 2025
2025
Patched Has unpatched

Severity Breakdown

Medium
2

2 total CVEs

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

Product Code for WooCommerce <= 1.5.0 - Cross-Site Request Forgery to Database Update

May 19, 2025 Patched in 1.5.1 (10d)
CVE-2023-51669medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Product Code for WooCommerce <= 1.4.4 - Authenticated (Contributor+) Stored Cross-Site Scripting

Dec 27, 2023 Patched in 1.4.5 (27d)
Code Analysis
Analyzed Mar 16, 2026

Product Code for WooCommerce Code Analysis

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

SQL Query Safety

60% prepared10 total queries

Output Escaping

64% escaped145 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

4 flows2 with unsanitized paths
save_settings (classes\class-pcfw-settings-page.php:59)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
4 unprotected

Product Code for WooCommerce Attack Surface

Entry Points7
Unprotected4

AJAX Handlers 6

authwp_ajax_product_code_dismiss_noticeclasses\class-pcfw-admin-settings.php:29
authwp_ajax_product_code_review_clickedclasses\class-pcfw-admin-settings.php:30
authwp_ajax_product_code_update_databaseclasses\class-pcfw-admin-settings.php:34
authwp_ajax_product_codeclasses\class-pcfw-services.php:28
noprivwp_ajax_product_codeclasses\class-pcfw-services.php:29
authwp_ajax_pcfw_support_notificationclasses\class-pcfw-settings-page.php:19

Shortcodes 1

[pcfw_display_product_code] classes\class-pcfw-services.php:35
WordPress Hooks 47
actionadmin_enqueue_scriptsclasses\class-pcfw-admin-settings.php:10
actionwoocommerce_product_options_inventory_product_dataclasses\class-pcfw-admin-settings.php:11
actionwoocommerce_process_product_metaclasses\class-pcfw-admin-settings.php:15
actionwoocommerce_product_after_variable_attributesclasses\class-pcfw-admin-settings.php:16
actionwoocommerce_save_product_variationclasses\class-pcfw-admin-settings.php:20
actionadmin_noticesclasses\class-pcfw-admin-settings.php:28
actionmanage_edit-product_columnsclasses\class-pcfw-admin-settings.php:38
actionmanage_posts_custom_columnclasses\class-pcfw-admin-settings.php:39
actionwoocommerce_product_quick_edit_startclasses\class-pcfw-admin-settings.php:42
actionwoocommerce_product_quick_edit_saveclasses\class-pcfw-admin-settings.php:43
actionadmin_enqueue_scriptsclasses\class-pcfw-admin-settings.php:46
filtermanage_edit-product_sortable_columnsclasses\class-pcfw-admin-settings.php:48
actionpre_get_postsclasses\class-pcfw-admin-settings.php:50
actionadmin_footerclasses\class-pcfw-admin-settings.php:74
actionadmin_initclasses\class-pcfw-services.php:14
actionwp_enqueue_scriptsclasses\class-pcfw-services.php:15
actionadmin_headclasses\class-pcfw-services.php:16
filterwoocommerce_add_cart_item_dataclasses\class-pcfw-services.php:17
filterwoocommerce_get_item_dataclasses\class-pcfw-services.php:18
actionwoocommerce_checkout_create_order_line_itemclasses\class-pcfw-services.php:19
actionwoocommerce_order_item_get_formatted_meta_dataclasses\class-pcfw-services.php:20
actionwoocommerce_order_item_display_meta_keyclasses\class-pcfw-services.php:21
actionwoocommerce_product_meta_startclasses\class-pcfw-services.php:22
filterbody_classclasses\class-pcfw-services.php:25
filterplugin_row_metaclasses\class-pcfw-services.php:27
filterwoocommerce_structured_data_productclasses\class-pcfw-services.php:32
actionadmin_noticesclasses\class-pcfw-services.php:48
actionnetwork_admin_noticesclasses\class-pcfw-services.php:49
actionadmin_menuclasses\class-pcfw-settings-page.php:15
actionadmin_enqueue_scriptsclasses\class-pcfw-settings-page.php:17
actionadmin_initclasses\class-pcfw-settings-page.php:18
filterwoocommerce_product_export_column_namesmodules\export\pcfw-export-support.php:17
filterwoocommerce_product_export_product_default_columnsmodules\export\pcfw-export-support.php:19
filterwoocommerce_product_export_product_column_product_codemodules\export\pcfw-export-support.php:21
filterwoocommerce_product_export_product_column_product_code_secondmodules\export\pcfw-export-support.php:23
filterwoocommerce_csv_product_import_mapping_optionsmodules\export\pcfw-export-support.php:29
filterwoocommerce_product_import_pre_insert_product_objectmodules\export\pcfw-export-support.php:31
filterposts_searchmodules\search\pcfw-product-code-search.php:6
filterrequestmodules\search\pcfw-product-code-search.php:50
filterrelevanssi_content_to_indexmodules\search\pcfw-relevanssi-product-code-search.php:3
filtersearchwp_extra_metadatamodules\search\pcfw-searchwp-product-code-search.php:5
filtersearchwp_custom_field_keysmodules\search\pcfw-searchwp-product-code-search.php:71
actionbefore_woocommerce_initproduct-code-for-woocommerce.php:80
actionadmin_initproduct-code-for-woocommerce.php:89
actionadmin_noticesproduct-code-for-woocommerce.php:120
filterinitproduct-code-for-woocommerce.php:140
actionsave_postproduct-code-for-woocommerce.php:153
Maintenance & Trust

Product Code for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 14, 2026
PHP min version7.4
Downloads40K

Community Trust

Rating98/100
Number of ratings29
Active installs1K
Developer Profile

Product Code for WooCommerce Developer Profile

artiosmedia

8 plugins · 5K total installs

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

How We Detect Product Code 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/product-code-for-woocommerce/assets/css/product-code-for-woocommerce.css/wp-content/plugins/product-code-for-woocommerce/assets/js/product-code-for-woocommerce.js
Script Paths
/wp-content/plugins/product-code-for-woocommerce/assets/js/product-code-for-woocommerce.js
Version Parameters
product-code-for-woocommerce/assets/css/product-code-for-woocommerce.css?ver=product-code-for-woocommerce/assets/js/product-code-for-woocommerce.js?ver=

HTML / DOM Fingerprints

CSS Classes
product-code-field-wrapproduct_code_field_wrappcfw-admin-notice
Data Attributes
data-product_code_iddata-product_codedata-product_id
JS Globals
PCFW_DATA
FAQ

Frequently Asked Questions about Product Code for WooCommerce