overleaf
Audited by Socket on Sep 13, 2026
2 alerts found:
Anomalyx2The code is a readable Overleaf API client and does not show evidence of intentional malware, data theft, persistence, or sabotage. It handles highly sensitive credentials and has security weaknesses: unrestricted redirects can disclose cookies/CSRF tokens, arbitrary download URLs can exfiltrate credentials, and baseUrl/output URLs are not origin-validated. These issues should be fixed by enforcing HTTPS and an allowlist or same-origin policy, stripping authentication headers on cross-origin redirects, and validating download and server-provided URLs. The temporary upload/delete probing behavior is an expected but side-effecting operation.
The code appears to be a legitimate Overleaf MCP/CLI integration rather than malware. It contains one significant security weakness in pull_project: untrusted ZIP entry names are written without path containment validation, enabling potential path traversal and file overwrite outside the requested output directory. The exposed account-mutating tools are intentional functionality, but should be protected by caller confirmation and appropriate authorization. No evidence of credential theft, covert exfiltration, obfuscation, or system compromise is present.