Cross-Site Scripting in Vaadin Icon via an SVG Loaded Through the src Property
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| vaadin | vaadin | unaffected |
|
||||||||||||||||||||||||||||||||||||||||||
| vaadin | vaadin-core | unaffected |
|
||||||||||||||||||||||||||||||||||||||||||
| vaadin | vaadin-icons-flow | unaffected |
|
||||||||||||||||||||||||||||||||||||||||||
| vaadin | icon | unaffected |
|
No data.
No data.
No data available yet.
Vendor Solution
Users of affected versions should apply the following mitigation or upgrade.
Vendor Workaround
Do not set the src property, or SvgIcon's src constructors and setSrc methods, to a value the application does not control, and do not serve SVG files uploaded by users through it. Where the SVG itself comes from users, sanitize it on the server before storing or serving it.
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| Description | The Vaadin Icon component fetches the SVG named by its src property and renders the markup inside the fetched <svg> element into the live DOM without removing active content. Event handler attributes in that markup, such as onerror on an <image> or onbegin on a <set>, therefore run in the application's origin. An application that binds src to data it does not control, such as a per user avatar or an icon URL stored in a dataset, executes attacker supplied script in the browser of every user who views the icon. A data: URI reaches the same code path. Flow applications reach it through SvgIcon, whose src constructors and setSrc methods set the same property. Vaadin 24.1 and older are not affected: the src property was added in 24.2.0 and earlier versions have no code that loads an SVG from a URL. Users of affected versions should apply the following mitigation or upgrade. Releases that have fixed this issue include: Product version Vaadin 24.2.0 - 24.2.13 Vaadin 24.3.0 - 24.3.21 Vaadin 24.4.0 - 24.4.28 Vaadin 24.5.0 - 24.5.15 Vaadin 24.6.0 - 24.6.13 Vaadin 24.7.0 - 24.7.19 Vaadin 24.8.0 - 24.8.17 Vaadin 24.9.0 - 24.9.26 Vaadin 24.10.0 - 24.10.14 Vaadin 25.0.0 - 25.0.13 Vaadin 25.1.0 - 25.1.13 Vaadin 25.2.0 - 25.2.14 Vaadin 25.3.0 - 25.3.5 Mitigation No fixed release on this line, upgrade to 24.10.15 or newer No fixed release on this line, upgrade to 24.10.15 or newer Upgrade to 24.4.29 No fixed release on this line, upgrade to 24.10.15 or newer No fixed release on this line, upgrade to 24.10.15 or newer Upgrade to 24.7.20 No fixed release on this line, upgrade to 24.10.15 or newer Upgrade to 24.9.27 Upgrade to 24.10.15 No fixed release on this line, upgrade to 25.3.6 or newer No fixed release on this line, upgrade to 25.3.6 or newer No fixed release on this line, upgrade to 25.3.6 or newer Upgrade to 25.3.6 | |
| Title | Cross-Site Scripting in Vaadin Icon via an SVG Loaded Through the src Property | |
| Weaknesses | CWE-79 | |
| References |
| |
| Metrics |
cvssV4_0
|
No data.