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

Source: https://junglewise.ai/threats/cve-2021-31408-server-session-is-not-invalidated-when-logout-helper-method-of  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-22  
License: CC BY 4.0 with a link back

CVE-2021-31408 · Severity: low · CVSS 3.1 · Published 2021-04-22

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

Technologies: [com.vaadin:vaadin-bom (Maven)](https://junglewise.ai/threats/technologies/com-vaadin-vaadin-bom). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-31408 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-31408 being exploited in the wild.

**How severe is CVE-2021-31408?** Low severity, with a CVSS score of 3.1, published 22 April 2021.

**Which products and versions are affected?** com.vaadin:vaadin-bom (Maven) ECOSYSTEM:introduced=18.0.0,fixed=19.0.4.

**Is there a fix for CVE-2021-31408?** Yes. com.vaadin:vaadin-bom (Maven): upgrade to 19.0.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-31408?** Check whether you run com.vaadin:vaadin-bom (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- com.vaadin:vaadin-bom (Maven): upgrade to 19.0.4 or later

  ```sh
  # set com.vaadin:vaadin-bom to 19.0.4 in your pom.xml or build.gradle
  ```


## Affected products

- com.vaadin:vaadin-bom (Maven) ECOSYSTEM:introduced=18.0.0,fixed=19.0.4

## Identifiers

- CVE-2021-31408
- GHSA-mr8h-j9cv-4m8h

## Related threats

- [Reflected cross-site scripting in vaadin-menu-bar webjar resources in Vaadin 14](https://junglewise.ai/threats/cve-2021-33611-reflected-cross-site-scripting-in-vaadin-menu-bar-webjar)
- [Regular expression Denial of Service (ReDoS) in EmailValidator class in V7 compatibility module in Vaadin 8](https://junglewise.ai/threats/regular-expression-denial-of-service-redos-in-emailvalidator-class-in-be25bc3a)
- [Unauthorized property update in CheckboxGroup component in Vaadin 12-14 and 15-20](https://junglewise.ai/threats/unauthorized-property-update-in-checkboxgroup-component-in-vaadin-12-14-0d145a2e)
- [Reflected cross-site scripting in development mode handler in Vaadin 14, 15-19](https://junglewise.ai/threats/cve-2021-33604-reflected-cross-site-scripting-in-development-mode-handler-in)
- [Possible route enumeration in production mode via RouteNotFoundError view in Vaadin 10, 11-14, and 15-19](https://junglewise.ai/threats/cve-2021-31412-possible-route-enumeration-in-production-mode-via)
