CVE-2021-31404 in Vaadin and 1 more product
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 throug...
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 | ≥ 10.0.0, < 10.0.17 ≥ 11.0.0, < 14.0.0 ≥ 14.0.0, < 14.4.7 ≥ 15.0.0, < 17.0.0 ≥ 18.0.0, < 18.0.6 |
| Vaadin | Flow | ≥ 1.0.0, < 1.0.14 ≥ 1.1.0, < 2.0.0 ≥ 2.0.0, < 2.4.7 ≥ 3.0.0, < 5.0.0 ≥ 5.0.0, < 5.0.3 |
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
No official vendor advisory link on record. See the CVE record.
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 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-31404 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-079431-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
{ "executive_summary": "A non-constant-time comparison of CSRF tokens in the UIDL request handler in specific versions of com.vaadin:flow-server can allow attackers to guess security tokens, potentially leading to unauthorized actions.", "attack_vector_detail": "The vulnerability arises from the non-constant-time comparison of CSRF tokens, which can be exploited through timing analysis to guess the correct token value. This can be achieved by sending multiple requests and measuring the time taken for each response, allowing an attacker to infer the correct token.", "affected_components": ["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)", "5.0.0 through 5.0.2
Vulnerability details: 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. CVSS vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N.
Questions
What is CVE-2021-31404?
{ "executive_summary": "A non-constant-time comparison of CSRF tokens in the UIDL request handler in specific versions of com.vaadin:flow-server can allow attackers to guess security tokens, potentially leading to unauthorized actions.", "attack_vector_detail": "The vulnerability arises from the non-constant-time comparison of CSRF tokens, which can be exploited through timing analysis to guess the correct token value. This can be achieved by sending multiple requests and measuring the time
What is the CVSS score for CVE-2021-31404?
CVE-2021-31404 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-31404 actively exploited?
No confirmed active exploitation of CVE-2021-31404 as of 2026-05-30.
How do I remediate CVE-2021-31404?
Priority: MONITOR. PSIRT: [email protected]
What systems are affected by CVE-2021-31404?
CVE-2021-31404 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.