restaurant-roulette
Warn
Audited by Socket on Apr 20, 2026
1 alert found:
AnomalyAnomalyscripts/index.js
LOWAnomalyLOW
scripts/index.js
No clear evidence of intentional malware/backdoor behavior in this fragment. However, it has notable security/privacy hygiene risks: (1) the Gemini API key is placed in the URL query string, increasing credential exposure through browser/network logging and referrers; (2) user-controlled location/cuisine and AI-generated results are transmitted to a third-party and then propagated into another page via URL parameters; and (3) exporting the function on window broadens who can trigger outbound requests and URL-based propagation within the page context. These are likely the main practical risks rather than covert malicious code.
Confidence: 72%Severity: 60%
Audit Metadata