CVE-2026-41854

Spring Framework Server-Side Request Forgery via UriComponentsBuilder

Published Jun 9, 2026 CVSS 3.1 · 4.2 Medium EPSS < 1% KEV · Not listed
Description
Due to incorrect host parsing, applications that rely on UriComponentsBuilder to parse and validate an externally provided URL string may be exposed to a server-side request forgery (SSRF) attack.

Affected versions:
Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18.

Analysis

AI-generated

Technical impact

The vulnerability stems from faulty host parsing performed by Spring Framework’s UriComponentsBuilder. When user‑supplied URL strings are processed without adequate validation, an attacker can craft a request that causes the server to contact arbitrary internal or external resources. This can lead to disclosure of sensitive data, cross‑system lateral movement, or denial‑of‑service conditions, all falling under the CWE‑918 category of server‑side request forgery.

Affected Systems

Spring Framework versions 7.0.0 through 7.0.7 and 6.2.0 through 6.2.18 are affected. The issue is specific to applications that incorporate UriComponentsBuilder for URL parsing and validation.

Risk and Exploitability

The CVSS score of 4.2 indicates a moderate severity, while the EPSS score is currently unavailable and the vulnerability is not listed in KEV. An attacker would need to supply a specially crafted URL that triggers UriComponentsBuilder, which are typically invoked via HTTP requests. Given that the vulnerability only manifests when applications accept untrusted URLs, the likelihood of exploitation in the absence of such functionality is relatively low, yet the potential impact warrants prompt remediation. Continuous monitoring for exploitation attempts is advised until a patch is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Spring Framework release (7.0.8 or newer, or 6.2.19 or newer).
  • Validate any externally supplied URLs against a strict whitelist, rejecting disallowed schemes and hostnames before they are passed to UriComponentsBuilder.
  • If URL parsing is unavoidable, consider replacing UriComponentsBuilder with a custom implementation that enforces strict host validation or disabling the feature altogether.

Generated by OpenCVE AI on June 9, 2026 at 05:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-7m2p-62gw-p8qq Spring Framework Server-Side Request Forgery via UriComponentsBuilder
References
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Framework
CPEs cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Framework
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Framework
Vendors & Products Spring
Spring spring Framework
Type Values Removed Values Added
Description Due to incorrect host parsing, applications that rely on UriComponentsBuilder to parse and validate an externally provided URL string may be exposed to a server-side request forgery (SSRF) attack. Affected versions: Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18.
Title Spring Framework Server-Side Request Forgery via UriComponentsBuilder
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 27, 2026, 9:06 PM
Reserved
Apr 22, 2026, 6:22 AM
Status
Analyzed
Published
Jun 9, 2026, 5:16 AM
Modified
Jul 23, 2026, 8:10 AM