CVE-2026-22742: Spring AI Insufficient Validation Causes SSRF When Vulnerability
HIGHCVE-2026-22742 is a HIGH (CVSS 8.6) insufficient validation causes ssrf when vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Spring AI libraries in the Maven ecosystem. The issue involves insufficient validation causes ssrf when processing multimodal messages with user-supplied urls. Remediation is available by upgrading affected packages to version 1.0.5, 1.1.4.
CVE-2026-22742 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2026-22742
To remediate this vulnerability, upgrade all affected Spring AI dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-bedrock-converse</artifactId>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-bedrock-converse</artifactId>
<version>1.1.4</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.springframework.ai
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-22742, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.ai
Analyze the terminal output to locate any version of Spring AI in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.5), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.ai command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Spring AI, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-22742 Affected Spring AI Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.ai:spring-ai-bedrock-converse
|
Maven |
≥ 1.0.0-M5
< 1.0.5
|
1.0.5
|
|
org.springframework.ai:spring-ai-bedrock-converse
|
Maven |
≥ 1.1.0-M1
< 1.1.4
|
1.1.4
|
References
Frequently Asked Questions
What is CVE-2026-22742?
Which Spring AI versions are affected?
What version fixes CVE-2026-22742?
Is spring-ai-bedrock-converse affected?
What is the CVSS score of CVE-2026-22742?
What CWE is associated with CVE-2026-22742?
How can I check Maven dependencies for CVE-2026-22742?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mhrg-94vw-45c5",
"modified" : "2026-03-29T15:33:25Z",
"published" : "2026-03-27T06:31:43Z",
"aliases" : [ "CVE-2026-22742" ],
"summary" : "Spring AI: Insufficient Validation causes SSRF when processing multimodal messages with user-supplied URLs",
"details" : "Spring AI's spring-ai-bedrock-converse contains a Server-Side Request Forgery (SSRF) vulnerability in BedrockProxyChatModel when processing multimodal messages that include user-supplied media URLs. Insufficient validation of those URLs allows an attacker to induce the server to issue HTTP requests to unintended internal or external destinations.\n\nThis issue affects Spring AI: from 1.0.0 before 1.0.5, from 1.1.0 before 1.1.4.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-bedrock-converse"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0-M5"
}, {
"fixed" : "1.0.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.ai:spring-ai-bedrock-converse"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0-M1"
}, {
"fixed" : "1.1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22742"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-ai/commit/a7d3223bc11a010b93fbc40a17fa9b68c52a8118"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spring-projects/spring-ai"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-ai/releases/tag/v1.0.5"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-ai/releases/tag/v1.1.4"
}, {
"type" : "WEB",
"url" : "https://spring.io/security/cve-2026-22742"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-29T15:33:25Z",
"nvd_published_at" : "2026-03-27T06:16:37Z"
}
}