CVE-2021-31408: Server session is not invalidated when logout() helper method of Authentication module is used in Vaadin 18-19
6.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.30706%
CWE
Published
4/22/2021
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
com.vaadin:vaadin-bom | maven | >= 18.0.0, < 19.0.4 | 19.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The patches provided show changes to the Authentication.ts
file, specifically to the logout
and doLogout
functions, which are related to the logout functionality. The changes fix the vulnerability by using the correct HTTP method and including CSRF tokens. The updateSpringCsrfMetaTag
function is also related to CSRF token handling and was modified as part of the fix.