GHSA-crh4-294p-vcfq: Vaadin text field flow Denial of Service Vulnerability
HIGHGHSA-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.
GHSA-crh4-294p-vcfq at a Glance
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).
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.
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-text-field-flow</artifactId>
<version>2.3.3</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-text-field-flow</artifactId>
<version>4.0.3</version>
</dependency>
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
GHSA-crh4-294p-vcfq Affected Vaadin text field flow Versions
2 component(s)| 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?
Which Vaadin text field flow versions are affected?
What version fixes GHSA-crh4-294p-vcfq?
Is vaadin-text-field-flow affected?
What is the CVSS score of GHSA-crh4-294p-vcfq?
What CWE is associated with GHSA-crh4-294p-vcfq?
How can I check Maven dependencies for GHSA-crh4-294p-vcfq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}