CVE-2021-33611 Reflected cross-site scripting in vaadin-menu-bar webjar resources in Vaadin 14
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.
| Package | Affected | Fixed in |
|---|---|---|
com.vaadin:vaadin-bom Maven | From 14.0.0 | 14.4.5 |
com.vaadin:vaadin-bom Maven | From 14.0.0 | 14.4.5 |
org.webjars.bowergithub.vaadin:vaadin-menu-bar Maven | From 1.0.0 | 1.2.1 |
org.webjars.bowergithub.vaadin:vaadin-menu-bar Maven | From 1.0.0 | 1.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.
Other vulnerabilities in Vaadin
- CVE-2021-31409 Server session is not invalidated when logout() helper method of Authentication module is used in Vaadin 18-19
- CVE-2020-36320 Regular expression Denial of Service (ReDoS) in EmailValidator class in Vaadin 7
- CVE-2023-25499 Possible information disclosure in non visible components
- CVE-2022-29567 Possible information disclosure inside TreeGrid component with default data provider
- CVE-2019-25028 Stored cross-site scripting in Grid component in Vaadin 7 and 8
Sources
Also known as GHSA-93c4-vf86-3rj7.