CVE-2021-31406
Java vulnerability analysis and mitigation

Overview

A timing side-channel vulnerability was identified in Vaadin's endpoint request handler, tracked as CVE-2021-31406. The vulnerability affects com.vaadin:flow-server versions 3.0.0 through 5.0.3 (Vaadin 15.0.0 through 18.0.6) and com.vaadin:fusion-endpoint version 6.0.0 (Vaadin 19.0.0). The issue stems from non-constant-time comparison of CSRF tokens in the endpoint request handler, which could potentially allow attackers to guess security tokens for Fusion endpoints through timing attacks (Vaadin Advisory).

Technical details

The vulnerability is classified as CWE-208 (Observable Timing Discrepancy) and CWE-203 (Observable Discrepancy). It received a CVSS v3.1 base score of 4.0 (MEDIUM) with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N according to Vaadin Ltd., while NIST assigned a base score of 2.5 (LOW) with vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N (NVD).

Impact

The timing attacks could potentially lead to exposure of user tokens, which could be exploited to submit data on behalf of users without the ability to read responses. Additionally, attackers could potentially open websockets and listen for published data from the server for affected users, which might contain sensitive information depending on the application's nature (Vaadin Advisory).

Mitigation and workarounds

The vulnerability has been fixed by implementing constant-time comparison for all security tokens. Users of affected versions are advised to upgrade to patched versions: Vaadin 18.0.0-18.0.6 should upgrade to 18.0.7 or newer, and Vaadin 19.0.0 should upgrade to 19.0.1 or newer. Versions 15-17 are no longer supported and users should update to the latest version 18 (Vaadin Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66516CRITICAL10
  • JavaJava
  • opensearch-2
NoYesDec 04, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-pure-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
CVE-2025-11222MEDIUM6.1
  • JavaJava
  • com.linecorp.centraldogma:centraldogma-server-auth-shiro
NoYesDec 04, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management