CVE-2021-33611 Reflected cross-site scripting in vaadin-menu-bar webjar resources in Vaadin 14

Medium 6.1 Published Updated

Remote attackers can execute malicious JavaScript in browsers via crafted URLs due to missing output sanitization in Vaadin menu bar webjar resources.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-33611?

CVE-2021-33611 is a medium-severity cross-site scripting vulnerability in Vaadin, published on 2 Nov 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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

Weakness: CWE-79

Which versions are affected by CVE-2021-33611?

4 open source packages ship an affected version, including com.vaadin:vaadin-bom and org.webjars.bowergithub.vaadin:vaadin-menu-bar. It affects 2 products.

PackageAffectedFixed in
com.vaadin:vaadin-bom MavenFrom 14.0.014.4.5
com.vaadin:vaadin-bom MavenFrom 14.0.014.4.5
org.webjars.bowergithub.vaadin:vaadin-menu-bar MavenFrom 1.0.01.2.1
org.webjars.bowergithub.vaadin:vaadin-menu-bar MavenFrom 1.0.01.2.1

Products include Vaadin Vaadin, Vaadin Vaadin-Menu-Bar.

How do I fix CVE-2021-33611?

Upgrade com.vaadin:vaadin-bom to 14.4.5 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-33611 being exploited?

There is no known exploitation of CVE-2021-33611 in the wild and no public exploit code.

Sources

Also known as GHSA-93c4-vf86-3rj7.

Is CVE-2021-33611 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free