fastapi
Audited by Socket on Sep 11, 2026
3 alerts found:
Anomalyx2SecurityThe fragment does not show intentional malware or supply-chain backdoor behavior. It contains medium-severity operational and security weaknesses: hardcoded database credentials, blocking calls in async handlers, and an unbounded five-minute background task that can be abused for resource exhaustion. SQL parameters are used correctly for the visible queries. The external request is fixed to a plausible rates endpoint and does not receive sensitive data in this fragment.
The code does not show package malware or obfuscation, but it contains significant application security risks: possible plaintext password storage, exposure of password hashes and internal notes, and unauthenticated user enumeration and retrieval. Passwords should be hashed before persistence, sensitive fields should be excluded from response models, and authentication and authorization should be enforced.
The fragment does not show clear malicious or supply-chain behavior. It contains ordinary external authentication and database access, but has security weaknesses: hardcoded database credentials, forwarding bearer authorization to an external identity provider, insufficient input validation, incomplete SQL as displayed, and missing order ownership enforcement in get_order. The authorization forwarding is not inherently malicious because the destination is a fixed identity-provider URL and is used for authentication. The incomplete fragment limits confidence in the assessment.