CVE-2021-31411: Insecure temporary directory usage in Vaadin 14 and 15-19

com.vaadin:vaadin-bom Updated 02 Oct 2025

Summary

06/05/2021
Yes i
High
6.3

CVE-2021-31411: Insecure temporary directory usage in frontend build functionality of Vaadin 14 and 15-19. Affects com.vaadin:vaadin-bom across 2 version ranges.

>= 14.0.3, < 14.5.3 >= 15.0.0, < 19.0.5

Fixed in 14.5.3 or 19.0.5, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Vaadin is an open-source Java framework used for building modern web applications. It provides a set of user interface components and tools for creating responsive and interactive web interfaces. The com.vaadin:flow-server package, specifically versions 2.0.9 through 2.5.2 (Vaadin 14.0.3 through Vaadin 14.5.2), 3.0 prior to 6.0 (Vaadin 15 prior to 19), and 6.0.0 through 6.0.5 (Vaadin 19.0.0 through 19.0.4), is affected by an insecure temporary directory usage vulnerability.

Vulnerability Detail

The vulnerability arises from the insecure usage of temporary directories in the frontend build functionality of Vaadin. Local users can exploit this vulnerability to inject malicious code into frontend resources during application rebuilds. This can lead to various security risks, such as remote code execution, unauthorized access, and data manipulation.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 14.0.3, < 14.5.3 14.5.3
  • >= 15.0.0, < 19.0.5 19.0.5

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to the fixed versions is not immediately feasible, a temporary workaround is to manually secure the temporary directory used by Vaadin during the frontend build process. This can be done by setting appropriate file system permissions and access controls to prevent unauthorized modification or injection of code into the temporary directory.

Conclusion

Insecure temporary directory usage in Vaadin 14 and 15-19 can lead to the injection of malicious code into frontend resources, posing significant security risks. It is crucial to upgrade to the fixed versions of the com.vaadin:flow-server package or apply the recommended workaround to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.vaadin:vaadin-bom →

Share this vulnerability

FAQ

Vaadin is an open-source Java framework for building web applications with a focus on user interface components and responsive design.

The vulnerability affects Vaadin versions 14.0.3 through 14.5.2, 15.0.0 through 19.0.2, and 19.0.0 through 19.0.4.

The vulnerability can be exploited by local users to inject malicious code into frontend resources, leading to risks such as remote code execution, unauthorized access, and data manipulation.

To fix this vulnerability, upgrade to the fixed versions of the com.vaadin:flow-server package: 14.5.3 or later for Vaadin 14, and 19.0.5 or later for Vaadin 15 through 19.

Yes, if immediate upgrading is not possible, you can secure the temporary directory used by Vaadin during the frontend build process by setting appropriate file system permissions and access controls.

Related vulnerabilities

Recent vulnerabilities recorded for com.vaadin:vaadin-bom.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 14.0.3, < 14.5.3 14.5.3
  • >= 15.0.0, < 19.0.5 19.0.5

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback