WooCommerce New Product Badge Security & Risk Analysis

wordpress.org/plugins/woocommerce-new-product-badge

Displays a 'new' badge on WooCommerce products published in the last x days.

900 active installs v0.3.0 PHP + WP 3.5+ Updated Nov 28, 2017
ecommercenewnew-productwoocommerce
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WooCommerce New Product Badge Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 8yr ago
Risk Assessment

The plugin "woocommerce-new-product-badge" v0.3.0 exhibits a seemingly strong security posture based on the provided static analysis. The absence of identified AJAX handlers, REST API routes, shortcodes, and cron events with unauthenticated access suggests a limited attack surface. Furthermore, the code signals are positive, with no dangerous functions, all SQL queries utilizing prepared statements, no file operations, no external HTTP requests, and no identified vulnerabilities in taint analysis.

However, a significant concern arises from the output escaping results. With 100% of outputs not being properly escaped, this presents a high risk of Cross-Site Scripting (XSS) vulnerabilities. If any user-supplied data or dynamically generated content is displayed without proper sanitization, an attacker could inject malicious scripts. The complete lack of nonce checks and capability checks, combined with the unescaped output, means that if an entry point were discovered or if this plugin were to be extended in the future, XSS could be easily exploited.

Given the plugin's vulnerability history is clean, this indicates a lack of past exploitable issues. However, the current state of unescaped output is a critical weakness that overshadows the positive aspects. The plugin's strengths lie in its minimal attack surface and secure database interactions. The primary weakness, and a significant one, is the unescaped output, which needs immediate attention to mitigate potential XSS attacks.

Key Concerns

  • Unescaped output detected
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

WooCommerce New Product Badge Security Vulnerabilities

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

WooCommerce New Product Badge Code Analysis

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

Output Escaping

0% escaped1 total outputs
Attack Surface

WooCommerce New Product Badge Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
actioninitnew-badge.php:24
actionwp_enqueue_scriptsnew-badge.php:38
actionwoocommerce_before_shop_loop_item_titlenew-badge.php:39
actionwoocommerce_settings_image_options_afternew-badge.php:63
actionwoocommerce_update_options_catalognew-badge.php:64
actionwoocommerce_update_options_productsnew-badge.php:65
Maintenance & Trust

WooCommerce New Product Badge Maintenance & Trust

Maintenance Signals

WordPress version tested4.0.38
Last updatedNov 28, 2017
PHP min version
Downloads83K

Community Trust

Rating86/100
Number of ratings12
Active installs900
Developer Profile

WooCommerce New Product Badge Developer Profile

James Koster

6 plugins · 19K total installs

84
trust score
Avg Security Score
85/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect WooCommerce New Product Badge

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/woocommerce-new-product-badge/assets/css/style.css
Version Parameters
woocommerce-new-product-badge/assets/css/style.css?ver=

HTML / DOM Fingerprints

CSS Classes
wc-new-badge
FAQ

Frequently Asked Questions about WooCommerce New Product Badge