HTTP Response Splitting Affecting org.springframework:spring-web package, versions [6.0.5,6.1.21)[6.2.0,6.2.8)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORK-10345766
  • published13 Jun 2025
  • disclosed12 Jun 2025
  • creditJakob Linskeseder

Introduced: 12 Jun 2025

NewCVE-2025-41234  (opens in a new tab)
CWE-113  (opens in a new tab)

How to fix?

Upgrade org.springframework:spring-web to version 6.1.21, 6.2.8 or higher.

Overview

org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.

Affected versions of this package are vulnerable to HTTP Response Splitting via the Content-Disposition header where the filename parameter value could contain non-printable characters, causing parsing issues for HTTP clients. An attacker can cause the download of files containing malicious commands by injecting content into the response.

Notes:

  1. This is only exploitable if the header is prepared with org.springframework.http.ContentDisposition, the filename is set via ContentDisposition.Builder#filename(String, Charset), the value is derived from unsanitized user input, and the attacker can inject malicious content into the downloaded response.

  2. The vulnerability was also fixed in the 6.0.29 commercial version.

CVSS Base Scores

version 4.0
version 3.1