Vulnerabilities in pkg:maven/org.webjars.bowergithub.vaadin/vaadin-menu-bar

PACKAGE
Advisory Identifier: GHSA-93c4-vf86-3rj7
Advisory Summary

CVE-2021-33611 is a MODERATE (CVSS 6.1) remote code execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Vaadin bom libraries in the Maven ecosystem. The issue involves reflected cross-site scripting in vaadin-menu-bar webjar resources in vaadin 14. Remediation is available by upgrading affected packages to version 14.4.5, 1.2.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.webjars.bowergithub.vaadin/vaadin-menu-bar

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.webjars.bowergithub.vaadin/vaadin-menu-bar. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-93c4-vf86-3rj7 CVE-2021-33611 MODERATE Reflected cross-site scripting in vaadin-menu-bar webjar resources in Vaadin 14

CVE-2021-33611 at a Glance

CVE Identifier CVE-2021-33611
GHSA Identifier GHSA-93c4-vf86-3rj7
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Vaadin bom
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.1

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:R/S:C/C:L/I:L/A:N).

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

How to Fix CVE-2021-33611

To remediate this vulnerability, upgrade all affected Vaadin bom 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-bom fixed: 14.4.5
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-bom</artifactId>
    <version>14.4.5</version>
</dependency>
org.webjars.bowergithub.vaadin:vaadin-menu-bar fixed: 1.2.1
<dependency>
    <groupId>org.webjars.bowergithub.vaadin</groupId>
    <artifactId>vaadin-menu-bar</artifactId>
    <version>1.2.1</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 CVE-2021-33611, 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 bom in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.4.5), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Vaadin bom, 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

Missing output sanitization in test sources in `org.webjars.bowergithub.vaadin:vaadin-menu-bar` versions 1.0.0 through 1.2.0 (Vaadin 14.0.0 through 14.4.4) allows remote attackers to execute malicious JavaScript in browser by opening crafted URL.

CVE-2021-33611 Affected Vaadin bom Versions

2 component(s)
Fixed Versions:
14.4.51.2.1
Product / Package Ecosystem Affected Versions Fixed Version
com.vaadin:vaadin-bom
Maven
≥ 14.0.0
< 14.4.5
14.4.5
org.webjars.bowergithub.vaadin:vaadin-menu-bar
Maven
≥ 1.0.0
< 1.2.1
1.2.1

References

Frequently Asked Questions

What is CVE-2021-33611?
CVE-2021-33611 is a security vulnerability in Vaadin bom involving Reflected cross-site scripting in vaadin-menu-bar webjar resources in Vaadin 14 under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Vaadin bom versions are affected?
Affected versions include releases prior to 14.4.5, 1.2.1 across affected packages: com.vaadin:vaadin-bom, org.webjars.bowergithub.vaadin:vaadin-menu-bar.
What version fixes CVE-2021-33611?
Upgrading to 14.4.5, 1.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vaadin-bom affected?
Yes, com.vaadin:vaadin-bom is affected in releases prior to 14.4.5. Upgrade your dependency to 14.4.5 or later.
Is vaadin-menu-bar affected?
Yes, org.webjars.bowergithub.vaadin:vaadin-menu-bar is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What is the CVSS score of CVE-2021-33611?
CVE-2021-33611 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2021-33611?
CVE-2021-33611 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Maven dependencies for CVE-2021-33611?
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-93c4-vf86-3rj7",
  "modified" : "2021-11-04T17:03:36Z",
  "published" : "2021-11-03T17:33:32Z",
  "aliases" : [ "CVE-2021-33611" ],
  "summary" : "Reflected cross-site scripting in vaadin-menu-bar webjar resources in Vaadin 14",
  "details" : "Missing output sanitization in test sources in `org.webjars.bowergithub.vaadin:vaadin-menu-bar` versions 1.0.0 through 1.2.0 (Vaadin 14.0.0 through 14.4.4) allows remote attackers to execute malicious JavaScript in browser by opening crafted URL.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.vaadin:vaadin-bom"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "14.0.0"
      }, {
        "fixed" : "14.4.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 14.4.4"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.bowergithub.vaadin:vaadin-menu-bar"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.2.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.2.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vaadin/platform/security/advisories/GHSA-93c4-vf86-3rj7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-33611"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vaadin/vaadin-menu-bar/pull/126"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vaadin/platform"
  }, {
    "type" : "WEB",
    "url" : "https://vaadin.com/security/cve-2021-33611"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-11-02T19:53:07Z",
    "nvd_published_at" : "2021-11-02T10:15:00Z"
  }
}