CVE-2021-31406 in Vaadin and 1 more product
Non-constant-time comparison of CSRF tokens in endpoint request handler in 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) allows attacker to guess a security token for Fusion endpoints via timing attack.
Affects 2 products from 1 vendor. Facts below cite their sources.
Requires local access, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Vaadin | Vaadin | 19.0.0 ≥ 15.0.0, < 18.0.7 |
| Vaadin | Flow | 6.0.0 ≥ 3.0.0, < 5.0.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Non-constant-time comparison of CSRF tokens in endpoint request handler in 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) allows attacker to guess a security token for Fusion endpoints via timing attack.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-31406 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-079434-L |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| Published | 2021-04-23 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-203: CWE-203
CWE-208: CWE-208
Related attack patterns (CAPEC)
CAPEC-462 Cross-Domain Search Timing via CWE-208
CAPEC-189 Black Box Reverse Engineering via CWE-203
CAPEC-541 Application Fingerprinting via CWE-208
CAPEC-580 System Footprinting via CWE-208
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A non-constant-time comparison of CSRF tokens in the endpoint request handler of specific versions of com.vaadin:flow-server and com.vaadin:fusion-endpoint can be exploited via a timing attack to guess security tokens for Fusion endpoints.
The vulnerability arises from the non-constant-time comparison of CSRF tokens, which can be exploited by an attacker to infer the correct token through timing analysis. This allows the attacker to perform actions on behalf of a user without proper authorization.
Questions
What is CVE-2021-31406?
A non-constant-time comparison of CSRF tokens in the endpoint request handler of specific versions of com.vaadin:flow-server and com.vaadin:fusion-endpoint can be exploited via a timing attack to guess security tokens for Fusion endpoints.
What is the CVSS score for CVE-2021-31406?
CVE-2021-31406 has CVSS 2.5 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N. EPSS: 0.2%.
Is CVE-2021-31406 actively exploited?
No confirmed active exploitation of CVE-2021-31406 as of 2026-05-30.
How do I remediate CVE-2021-31406?
Priority: HIGH. Advisory: https://vaadin.com/security/cve-2021-31406 PSIRT: [email protected]
What systems are affected by CVE-2021-31406?
CVE-2021-31406 affects Vaadin Vaadin, Flow.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Vaadin","product":"Vaadin","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.