{"answers":{"affected":"4 open source packages ship an affected version, including wireui/wireui. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45803 exists.","fix":"Upgrade wireui/wireui to a fixed version for your release line: 1.19.3 or 2.1.3.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-45803 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45803 exists.\n\nAffected packages and fixed versions:\n- wireui/wireui (Packagist): affected all versions; fixed in 1.19.3\n- wireui/wireui (Packagist): affected all versions; fixed in 1.19.3\n- wireui/wireui (Packagist): affected from 2.0.0; fixed in 2.1.3\n- wireui/wireui (Packagist): affected from 2.0.0; fixed in 2.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-45803/ (Markdown: https://insights.sbomify.com/CVE-2024-45803/index.md)","id":"CVE-2024-45803","markdown":"https://insights.sbomify.com/CVE-2024-45803/index.md","name":"CVE-2024-45803","record":{"aliases":["GHSA-rw5h-g8xq-6877"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"WireUI Laravel component","requires_auth":"none","summary":"Attackers can inject malicious JavaScript via the label parameter in WireUI button endpoints, leading to session hijacking or user impersonation.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"wireui","vendor":"wireui"}],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Cross site scripting (XSS) Vulnerability on route /wireui/button?label=Content in wireui","id":"CVE-2024-45803","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":4,"n_references":3,"next":{"headline":"This CVE is a duplicate of another CVE.","id":"CVE-2024-45804"},"packages":[{"ecosystem":"Packagist","fixed":["1.19.3"],"introduced":["0"],"last_affected":[],"package":"wireui/wireui","purl":null,"source":"GHSA-rw5h-g8xq-6877"},{"ecosystem":"Packagist","fixed":["1.19.3"],"introduced":["0"],"last_affected":[],"package":"wireui/wireui","purl":"pkg:composer/wireui/wireui","source":"GHSA-rw5h-g8xq-6877"},{"ecosystem":"Packagist","fixed":["2.1.3"],"introduced":["2.0.0"],"last_affected":[],"package":"wireui/wireui","purl":null,"source":"GHSA-rw5h-g8xq-6877"},{"ecosystem":"Packagist","fixed":["2.1.3"],"introduced":["2.0.0"],"last_affected":[],"package":"wireui/wireui","purl":"pkg:composer/wireui/wireui","source":"GHSA-rw5h-g8xq-6877"}],"prev":{"headline":"Squid Denial of Service","id":"CVE-2024-45802"},"products":["wireui"],"published":"2024-09-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-18","vendors":["wireui"]},"summary":"Attackers can inject malicious JavaScript via the label parameter in WireUI button endpoints, leading to session hijacking or user impersonation.","url":"https://insights.sbomify.com/CVE-2024-45803/"}