# GHSA-6HGR-2G6Q-3RMC: Server session is not invalidated when logout() helper method of Authentication module is used in Vaadin 18-19

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2021-04-22
- Modified: 2024-11-28

## Affected versions

- com.vaadin:flow-client (Maven): from 5.0.0, fixed in 6.0.5

## Description

`Authentication.logout()` helper in `com.vaadin:flow-client` versions 5.0.0 prior to 6.0.0 (Vaadin 18), and 6.0.0 through 6.0.4 (Vaadin 19.0.0 through 19.0.3) uses incorrect HTTP method, which, in combination with Spring Security CSRF protection, allows local attackers to access Fusion endpoints after the user attempted to log out.

- https://vaadin.com/security/cve-2021-31408

## References

- https://github.com/vaadin/flow/security/advisories/GHSA-6hgr-2g6q-3rmc
- https://github.com/vaadin/flow/pull/10577
- https://github.com/vaadin/flow/commit/815b967fc84fefa8d3a4d72b9a036f48b0d96326
- https://github.com/vaadin/flow
- https://vaadin.com/security/cve-2021-31408

Page: https://cve.now/GHSA-6HGR-2G6Q-3RMC

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
