front-review
Warn
Audited by Socket on Sep 14, 2026
1 alert found:
AnomalyAnomalyexamples/js/cart-service.js
LOWAnomalyLOW
examples/js/cart-service.js
The code does not show evidence of malware or intentional supply-chain sabotage. It contains a potential XSS vulnerability because server-provided item.name values are inserted into innerHTML without escaping. It also lacks validation and encoding for userId and promotion data. Use DOM text APIs or explicit HTML escaping, validate API schemas and discount bounds, and encode the URL path parameter.
Confidence: 98%Severity: 62%
Audit Metadata