CVE-2024-45803 Cross site scripting (XSS) Vulnerability on route /wireui/button?label=Content in wireui

Medium 5.1 Published Updated

Attackers can inject malicious JavaScript via the label parameter in WireUI button endpoints, leading to session hijacking or user impersonation.

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-2024-45803?

CVE-2024-45803 is a medium-severity cross-site scripting vulnerability in wireui, published on 17 Sep 2024. 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

Wire UI is a library of components and resources to empower Laravel and Livewire application development. A potential Cross-Site Scripting (XSS) vulnerability has been identified in the `/wireui/button` endpoint, specifically through the `label` query parameter. Malicious actors could exploit this vulnerability by injecting JavaScript into the `label` parameter, leading to the execution of arbitrary code in the victim's browser. The `/wireui/button` endpoint dynamically renders button labels based on user-provided input via the `label` query parameter. Due to insufficient sanitization or escaping of this input, an attacker can inject malicious JavaScript. By crafting such a request, an attacker can inject arbitrary code that will be executed by the browser when the endpoint is accessed. If exploited, this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the affected website. This could lead to: **Session Hijacking**: Stealing session cookies, tokens, or other sensitive information. **User Impersonation**: Performing unauthorized actions on behalf of authenticated users. **Phishing**: Redirecting users to malicious websites. **Content Manipulation**: Altering the appearance or behavior of the affected page to mislead users or execute further attacks. The severity of this vulnerability depends on the context of where the affected component is used, but in all cases, it poses a significant risk to user security. This issue has been addressed in release versions 1.19.3 and 2.1.3. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2024-45803?

4 open source packages ship an affected version, including wireui/wireui. It affects 1 product.

PackageAffectedFixed in
wireui/wireui PackagistAll versions1.19.3
wireui/wireui PackagistAll versions1.19.3
wireui/wireui PackagistFrom 2.0.02.1.3
wireui/wireui PackagistFrom 2.0.02.1.3

Products include Wireui Wireui.

How do I fix CVE-2024-45803?

Upgrade wireui/wireui to a fixed version for your release line: 1.19.3 or 2.1.3.

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-2024-45803 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45803 exists.

Sources

Also known as GHSA-rw5h-g8xq-6877.

Is CVE-2024-45803 in your software?

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

Check your SBOMs for free