Vulnerabilities in pkg:maven/com.vaadin/vaadin-text-field-flow

PACKAGE
Advisory Summary

GHSA-crh4-294p-vcfq is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Vaadin text field flow libraries in the Maven ecosystem. The issue involves regular expression denial of service (redos) in emailfield component in vaadin 14 and 15-17. Remediation is available by upgrading affected packages to version 2.3.3, 4.0.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.vaadin/vaadin-text-field-flow

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.vaadin/vaadin-text-field-flow. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-crh4-294p-vcfq - HIGH Regular expression denial of service (ReDoS) in EmailField component in Vaadin 14 and 15-17

GHSA-crh4-294p-vcfq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-crh4-294p-vcfq
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Vaadin text field flow
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix GHSA-crh4-294p-vcfq

To remediate this vulnerability, upgrade all affected Vaadin text field flow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.vaadin:vaadin-text-field-flow fixed: 2.3.3
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-text-field-flow</artifactId>
    <version>2.3.3</version>
</dependency>
com.vaadin:vaadin-text-field-flow fixed: 4.0.3
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-text-field-flow</artifactId>
    <version>4.0.3</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.vaadin

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-crh4-294p-vcfq, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.vaadin

Analyze the terminal output to locate any version of Vaadin text field flow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.3), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.vaadin command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Vaadin text field flow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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. - https://vaadin.com/security/cve-2021-31405

GHSA-crh4-294p-vcfq Affected Vaadin text field flow Versions

2 component(s)
Fixed Versions:
2.3.34.0.3
Product / Package Ecosystem Affected Versions Fixed Version
com.vaadin:vaadin-text-field-flow
Maven
≥ 2.0.4
< 2.3.3
2.3.3
com.vaadin:vaadin-text-field-flow
Maven
≥ 3.0.0
< 4.0.3
4.0.3

References

Frequently Asked Questions

What is GHSA-crh4-294p-vcfq?
GHSA-crh4-294p-vcfq is a security vulnerability in Vaadin text field flow involving Regular expression denial of service (ReDoS) in EmailField component in Vaadin 14 and 15-17 under CWE-400: Uncontrolled Resource Consumption.
Which Vaadin text field flow versions are affected?
Affected versions include releases prior to 2.3.3, 4.0.3 across affected packages: com.vaadin:vaadin-text-field-flow.
What version fixes GHSA-crh4-294p-vcfq?
Upgrading to 2.3.3, 4.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vaadin-text-field-flow affected?
Yes, com.vaadin:vaadin-text-field-flow is affected in releases prior to 2.3.3, 4.0.3. Upgrade your dependency to 2.3.3, 4.0.3 or later.
What is the CVSS score of GHSA-crh4-294p-vcfq?
GHSA-crh4-294p-vcfq has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-crh4-294p-vcfq?
GHSA-crh4-294p-vcfq is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Maven dependencies for GHSA-crh4-294p-vcfq?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.vaadin'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-crh4-294p-vcfq",
  "modified" : "2021-10-08T21:22:01Z",
  "published" : "2021-04-19T14:53:20Z",
  "aliases" : [ ],
  "summary" : "Regular expression denial of service (ReDoS) in EmailField component in Vaadin 14 and 15-17",
  "details" : "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.\n\n- https://vaadin.com/security/cve-2021-31405",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.vaadin:vaadin-text-field-flow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.4"
      }, {
        "fixed" : "2.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.vaadin:vaadin-text-field-flow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "4.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vaadin/flow-components/security/advisories/GHSA-crh4-294p-vcfq"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vaadin/flow-components"
  }, {
    "type" : "WEB",
    "url" : "https://vaadin.com/security/cve-2021-31405"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-04-16T23:12:10Z",
    "nvd_published_at" : null
  }
}