spring-ai-integration
Warn
Audited by Socket on Sep 18, 2026
1 alert found:
SecuritySecurityexamples/bad-ai-service.java
MEDIUMSecurityMEDIUM
examples/bad-ai-service.java
No overt backdoor/execution malware is visible in this fragment, but the module is security-relevant due to (1) a hardcoded API key in source code and (2) direct transmission of potentially sensitive order/PII data to an external AI service using unparameterized string-concatenated prompts. The code also permissively parses untrusted remote output and silently swallows exceptions without observability, which increases the likelihood of undetected prompt-injection-driven misinformation/data disclosure and reduces incident response effectiveness.
Confidence: 70%Severity: 82%
Audit Metadata