CVE-2024-45803: Wireui/wireui Cross-Site Scripting Vulnerability
MODERATECVE-2024-45803 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Wireui/wireui libraries in the Packagist ecosystem. The issue involves wire ui has a js xss vulnerability on route /wireui/button?label=content. Remediation is available by upgrading affected packages to version 1.19.3, 2.1.3.
CVE-2024-45803 at a Glance
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).
How to Fix CVE-2024-45803
To remediate this vulnerability, upgrade all affected Wireui/wireui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade wireui/wireui to 1.19.3
Upgrade wireui/wireui to 2.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for wireui/wireui
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-45803, inspect your project dependencies for Wireui/wireui:
inspect dependencies for wireui/wireui
Analyze the terminal output to locate any version of Wireui/wireui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.19.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
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 Wireui/wireui, 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
CVE-2024-45803 Affected Wireui/wireui Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wireui/wireui
|
Packagist |
< 1.19.3
|
1.19.3
|
|
wireui/wireui
|
Packagist |
≥ 2.0.0
< 2.1.3
|
2.1.3
|
References
Frequently Asked Questions
What is CVE-2024-45803?
Which Wireui/wireui versions are affected?
What version fixes CVE-2024-45803?
Is wireui/wireui affected?
What is the CVSS score of CVE-2024-45803?
What CWE is associated with CVE-2024-45803?
How can I check Packagist dependencies for CVE-2024-45803?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rw5h-g8xq-6877",
"modified" : "2024-09-17T22:25:22Z",
"published" : "2024-09-17T18:33:14Z",
"aliases" : [ "CVE-2024-45803" ],
"summary" : "Wire UI has a JS XSS Vulnerability on route /wireui/button?label=Content",
"details" : "### Summary\nA 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.\n\n### Details\nThe `/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. The following URL demonstrates the vulnerability:\n\n```\nhttps://wireui.dev/wireui/button?label=Cancel&1%25%7ds8dk0%3E%3Cscript%3Ealert(1)%3C/script%3Ez1qt3=1\n```\n\nBy crafting such a request, an attacker can inject arbitrary code that will be executed by the browser when the endpoint is accessed.\n\n### Proof of Concept (PoC)\nTo demonstrate the vulnerability, visit the following URL:\n\n```\n/wireui/button?label=<script>alert(1)</script>\n```\n\nUpon loading the page, the injected JavaScript will execute, displaying an alert with the message \"1.\" This confirms the vulnerability and highlights that user input is not being properly escaped or sanitized.\n\n### Impact\nIf exploited, this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the affected website. This could lead to:\n\n- **Session Hijacking**: Stealing session cookies, tokens, or other sensitive information.\n- **User Impersonation**: Performing unauthorized actions on behalf of authenticated users.\n- **Phishing**: Redirecting users to malicious websites.\n- **Content Manipulation**: Altering the appearance or behavior of the affected page to mislead users or execute further attacks.\n\nThe 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "wireui/wireui"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.19.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "wireui/wireui"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/wireui/wireui/security/advisories/GHSA-rw5h-g8xq-6877"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45803"
}, {
"type" : "WEB",
"url" : "https://github.com/wireui/wireui/commit/784c4f110e58eb41d0f2bdecd4655ea417f16e7e"
}, {
"type" : "WEB",
"url" : "https://github.com/wireui/wireui/commit/a457654912055f4dcc559da04d4e319f76b80fc5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wireui/wireui"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-17T18:33:14Z",
"nvd_published_at" : "2024-09-17T19:15:28Z"
}
}