travel-agent
Audited by Socket on Jul 29, 2026
1 alert found:
AnomalyThis module appears to be an itinerary-generator web UI that writes a generated HTML file to a temporary location and returns it for user download. No clear malware/persistence/exfiltration behavior is evident in the fragment. The main security concerns are (1) potential HTML/URL injection risks in the generated HTML (esc() is not a complete context-safe sanitizer, and the href query parameter is not URL-encoded), and (2) potential filesystem filename manipulation because the output filename is derived from to_city without filesystem-safe sanitization. Overall, treat as low-to-moderate supply-chain security risk focused on content and file-generation safety, with reduced confidence due to apparent syntactic/transcription issues in the provided code.