{"id":"CVE-2021-31406","aliases":["CVE-2021-31406","GHSA-p7jq-v8jp-j424"],"related":[],"kind":"vulnerability","state":"published","title":"Timing side channel vulnerability in endpoint request handler in Vaadin 15-19","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"en","text":"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.\n\n- https://vaadin.com/security/cve-2021-31406","format":"markdown","source":"ghsa"},{"lang":"es","text":"La comparación non-constant-time de tokens CSRF en el manejador de peticiones de endpoint en com.vaadin:flow-server versiones 3.0.0 hasta 5.0.3 (Vaadin versiones 15.0.0 hasta 18.0.6) y com.vaadin:fusion-endpoint versión 6.0.0 (Vaadin versión 19.0.0), permite al atacante adivinar un token de seguridad para los endpoints de Fusion por medio de un ataque de sincronización","source":"nvd"}],"published":"2021-04-19T14:50:38.000Z","modified":"2026-06-17T03:51:43.330Z","severity":{"scorer":"Vaadin","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"Vaadin","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","score":2.5,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:M/Au:N/C:P/I:N/A:N","score":1.9,"rating":"LOW"}],"cwes":["CWE-203","CWE-208"],"affected":[{"ranges":[{"version":"19.0.0","status":"affected"},{"type":"custom","introduced":"15.0.0","fixed":"*","status":"affected"}],"vendor":"Vaadin","product":"Vaadin","source":"cvelist"},{"ranges":[{"version":"6.0.0","status":"affected"},{"type":"custom","introduced":"3.0.0","fixed":"*","status":"affected"}],"vendor":"Vaadin","product":"flow-server","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"5.0.4"}],"ecosystem":"Maven","package":"com.vaadin:flow-server","purl":"pkg:maven/com.vaadin/flow-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.0.1"}],"ecosystem":"Maven","package":"com.vaadin:flow-server","purl":"pkg:maven/com.vaadin/flow-server","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"5.0.4"},{"status":"affected","version":"6.0.0"}],"vendor":"vaadin","product":"flow","cpe":"cpe:2.3:a:vaadin:flow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"15.0.0","fixed":"18.0.7"},{"status":"affected","version":"19.0.0"}],"vendor":"vaadin","product":"vaadin","cpe":"cpe:2.3:a:vaadin:vaadin:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://vaadin.com/security/cve-2021-31406","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vaadin/flow/pull/10157","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vaadin/flow/security/advisories/GHSA-p7jq-v8jp-j424","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31406","tags":["advisory"],"sources":["ghsa"]}],"credits":["This issue was discovered and responsibly reported by Xhelal Likaj."],"assigner":"Vaadin","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31406","url":"https://www.cve.org/CVERecord?id=CVE-2021-31406","licence":"CVE Terms of Use","modified":"2024-09-17T00:02:31.310Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p7jq-v8jp-j424","url":"https://github.com/advisories/GHSA-p7jq-v8jp-j424","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:48.283Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31406","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31406","licence":"Public domain","modified":"2026-06-17T03:51:43.330Z"}],"updatedAt":"2026-11-25T22:58:01.016Z","epss":{"score":0.00234,"percentile":0.08612,"date":"2026-11-30T12:00:22.000Z"}}