CVE-2026-120326
Unescaped Download File Name Allows Content-Disposition Parameter Injection in Vaadin Flow
Description
DownloadEvent.setFileName(String) in Vaadin Flow writes the download file name into the Content-Disposition header without escaping it. When the name is pure US-ASCII the header is built as attachment; filename="<name>" with the name inserted verbatim, so a double quote in the name ends the quoted string early and the rest of the name is read by the browser as further header parameters. The inline(String) variant, present from Vaadin 25.0, builds the name the same way. An application that passes an untrusted file name to either method, for example when re-serving a file under the name it was uploaded with, lets an attacker add a filename* parameter. Browsers prefer filename* over filename, so the file is saved under a name and extension of the attacker's choosing, which defeats any file name or extension restriction the application enforces. The attacker cannot change the attachment or inline disposition itself and cannot split the header.
Users of affected versions should apply the following mitigation or upgrade. Releases that have fixed this issue include:
Product version Vaadin 24.8.0 - 24.8.17 Vaadin 24.9.0 - 24.9.25 Vaadin 24.10.0 - 24.10.13 Vaadin 25.0.0 - 25.0.13 Vaadin 25.1.0 - 25.1.13 Vaadin 25.2.0 - 25.2.12 Vaadin 25.3.0 - 25.3.4
Mitigation No fixed release on this line, upgrade to 24.9.26 or newer Upgrade to 24.9.26 Upgrade to 24.10.14 No fixed release on this line, upgrade to 25.2.13 or newer No fixed release on this line, upgrade to 25.2.13 or newer Upgrade to 25.2.13 Upgrade to 25.3.5
Vaadin versions below 24.8 are not affected: the DownloadEvent API does not exist in them.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.vaadin » flow-serverpreliminary | >= 24.8.0, <= 24.8.16>= 24.9.0, < 24.9.31>= 24.10.0, < 24.10.17>= 25.0.0, <= 25.0.15>= 25.1.0, <= 25.1.19>= 25.2.0, < 25.2.16>= 25.3.0, < 25.3.6 | 24.9.31, 24.10.17, 25.2.16, 25.3.6 |
| com.vaadin » vaadinpreliminary | >= 24.8.0, <= 24.8.17>= 24.9.0, < 24.9.26>= 24.10.0, < 24.10.14>= 25.0.0, <= 25.0.13>= 25.1.0, <= 25.1.13>= 25.2.0, < 25.2.13>= 25.3.0, < 25.3.5 | 24.9.26, 24.10.14, 25.2.13, 25.3.5 |
| com.vaadin » vaadin-corepreliminary | >= 24.8.0, <= 24.8.17>= 24.9.0, < 24.9.26>= 24.10.0, < 24.10.14>= 25.0.0, <= 25.0.13>= 25.1.0, <= 25.1.13>= 25.2.0, < 25.2.13>= 25.3.0, < 25.3.5 | 24.9.26, 24.10.14, 25.2.13, 25.3.5 |
Blast radius
100% of the dependent artifacts (376) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,308 |
| 2 hops | 3,262 |
| 3 hops | 6,024 |
| 4 hops | 2,432 |
| 5 hops | 637 |
| 6 hops | 31 |
Most used dependents
- com.vaadin » vaadin-core640 usages
- com.vaadin » vaadin-maven-plugin600 usages
- com.vaadin » vaadin378 usages
- com.vaadin » flow-html-components158 usages
- com.vaadin » flow-data126 usages
- com.vaadin » vaadin-spring-boot-starter107 usages
- com.vaadin » vaadin-spring93 usages
- com.vaadin » vaadin-button-flow84 usages
- com.vaadin » vaadin-icons-flow72 usages
- com.vaadin » vaadin-ordered-layout-flow70 usages
- com.vaadin » vaadin-dev70 usages
- com.vaadin » vaadin-lumo-theme69 usages
- com.vaadin » vaadin-flow-components-base68 usages
- com.vaadin » vaadin-text-field-flow49 usages
- com.vaadin » vaadin-checkbox-flow47 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://repo.maven.apache.org/maven2
- Webhttps://vaadin.com/security/cve-2026-120326
- Advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120326.json
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-120326
- Fixhttps://github.com/vaadin/flow/pull/26704
- Packagehttps://github.com/vaadin/flow
- Packagehttps://github.com/vaadin/platform
