Spring AI: Prompt Injection via Memory Poisoning in PromptChatMemoryAdvisorGHSA-5852-phmh-8fhr
HIGHGHSA-5852-phmh-8fhr is a high-severity (CVSS 8.2) CWE-1336 vulnerability in org.springframework.ai:spring-ai-client-chat. A fix is available for org.springframework.ai:spring-ai-client-chat — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-5852-phmh-8fhr.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework.ai:spring-ai-client-chat☕org.springframework.ai:spring-ai-client-chatReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
A malicious user could craft input that is stored in conversation memory and later interpreted by the model in an unintended way. Applications using the affected advisor with user-controlled input may be susceptible to manipulation of model behavior across conversation turns.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.ai:spring-ai-client-chat | all versions | 1.0.7org.springframework.ai:spring-ai-client-chat:1.0.7 |
| ☕Maven | org.springframework.ai:spring-ai-client-chat | ≥ 1.1.0-M1&&< 1.1.6 | 1.1.6org.springframework.ai:spring-ai-client-chat:1.1.6 |
Affected Products
spring aivmwareDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.ai:spring-ai-client-chat, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.ai:spring-ai-client-chat to 1.0.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-5852-phmh-8fhr is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-5852-phmh-8fhr in your dependencies?
Find it across Maven, including transitive dependencies.