Single Product in Cart Security & Risk Analysis

wordpress.org/plugins/single-product-in-cart

Allows only one product in the WooCommerce cart at a time. When a new product is added, it replaces the existing product without any warning.

90 active installs v1.0.1 PHP 7.4+ WP 5.6+ Updated Feb 21, 2025
cartcheckoutecommercesingle-productwoocommerce
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Single Product in Cart Safe to Use in 2026?

Generally Safe

Score 92/100

Single Product in Cart has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 1yr ago
Risk Assessment

The static analysis of the 'single-product-in-cart' plugin v1.0.1 reveals an exceptionally small attack surface with zero identified entry points, including AJAX handlers, REST API routes, shortcodes, and cron events. The absence of dangerous functions, file operations, and external HTTP requests further suggests a cautious approach to potentially risky code. All SQL queries are correctly prepared, indicating a good understanding of database security. However, a significant concern arises from the output escaping, where 100% of the total outputs are not properly escaped. This lack of sanitization for any output rendered by the plugin could lead to Cross-Site Scripting (XSS) vulnerabilities if user-supplied data is ever incorporated into these outputs, even if no such flows are currently detected.

The plugin's vulnerability history is clean, with no recorded CVEs. This, combined with the limited attack surface and secure database practices, paints a picture of a plugin that, based on this snapshot, appears to be developed with some security awareness. However, the prevalent issue of unescaped output is a critical oversight that needs immediate attention. While taint analysis did not reveal any current unsanitized flows, this does not negate the risk posed by the unescaped outputs themselves. The plugin's strength lies in its minimal exposure and secure data handling, but its weakness is the potential for XSS due to improper output sanitization.

Key Concerns

  • 100% of outputs are not properly escaped
Vulnerabilities
None known

Single Product in Cart Security Vulnerabilities

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

Single Product in Cart 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

Single Product in Cart Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 3
actionwoocommerce_add_to_cartsingle-product-in-cart.php:23
actionwpsingle-product-in-cart.php:24
actionadmin_noticessingle-product-in-cart.php:68
Maintenance & Trust

Single Product in Cart Maintenance & Trust

Maintenance Signals

WordPress version tested6.7.5
Last updatedFeb 21, 2025
PHP min version7.4
Downloads576

Community Trust

Rating100/100
Number of ratings1
Active installs90
Developer Profile

Single Product in Cart Developer Profile

Piyush Jangid

1 plugin · 90 total installs

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

How We Detect Single Product in Cart

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
pjspic-woocommerce-missing-notice
FAQ

Frequently Asked Questions about Single Product in Cart