# CVE-2021-31411: Insecure temporary directory usage in frontend build functionality of Vaadin 14 and 15-19

- Severity: Medium 6.3 (CVSS:3.1, scored by Vaadin) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 11% of CVEs (2026-11-30)
- Published: 2021-05-05T18:15:13.220Z
- Modified: 2026-06-17T03:51:43.947Z
- Also known as: GHSA-p826-8vhq-h439
- Weaknesses: CWE-379
- Assigned by: Vaadin

## Description

Insecure temporary directory usage in frontend build functionality of com.vaadin:flow-server 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) allows local users to inject malicious code into frontend resources during application rebuilds.

(As written by CVE List.)

## Affected

- Vaadin Vaadin: from 14.0.3 before *; from 14.0.3 before 14.5.3; from 15.0.0 before 19.0.5
- Vaadin flow-server: from 2.0.9 before *
- com.vaadin:vaadin-bom (Maven): from 14.0.3 before 14.5.3; from 15.0.0 before 19.0.5
- vaadin flow: from 2.0.9 before 2.5.3; from 3.0.0 up to 5.0.0; from 6.0.0 up to 6.0.6

## Every score

- Vaadin: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.3 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://vaadin.com/security/cve-2021-31411> (vendor-advisory, web)
- <https://github.com/vaadin/flow/pull/10640> (patch, third-party-advisory, web)
- <https://github.com/vaadin/platform/security/advisories/GHSA-p826-8vhq-h439> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31411> (advisory)

## Sources

- CVE List: [CVE-2021-31411](https://www.cve.org/CVERecord?id=CVE-2021-31411), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-p826-8vhq-h439](https://github.com/advisories/GHSA-p826-8vhq-h439), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-31411](https://nvd.nist.gov/vuln/detail/CVE-2021-31411), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31411 · Whole record: https://cve.day/CVE-2021-31411.json · Rebuilt by cve.day 2026-11-25T22:58:01.150Z
