{"answers":{"affected":"3 open source packages ship an affected version, including github.com/AlexxIT/go2rtc. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29193 exists.","fix":"Upgrade github.com/AlexxIT/go2rtc to 1.9.0 or later.","what":"CVE-2024-29193 is a medium-severity cross-site scripting vulnerability in AlexxIT go2rtc, published on 4 Apr 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-29193 and fix it if it is affected.\n\nWhat it is: CVE-2024-29193 is a medium-severity cross-site scripting vulnerability in AlexxIT go2rtc, published on 4 Apr 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-29193 exists.\n\nAffected packages and fixed versions:\n- github.com/AlexxIT/go2rtc (Go): affected all versions; fixed in 1.9.0\n- github.com/AlexxIT/go2rtc (Go): affected all versions; fixed in 1.9.0\n- github.com/AlexxIT/go2rtc (Go): affected all versions; fixed in 1.9.0\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-29193/ (Markdown: https://insights.sbomify.com/CVE-2024-29193/index.md)","id":"CVE-2024-29193","markdown":"https://insights.sbomify.com/CVE-2024-29193/index.md","name":"CVE-2024-29193","record":{"aliases":["GHSA-rh4r-f7f7-r99m","GO-2024-3053"],"analysis":{"component_type":"server_software","fix_type":"no_fix_stated","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Camera streaming application","requires_auth":"none","summary":"An attacker can execute arbitrary JavaScript in the victim's browser via DOM-based XSS in go2rtc, potentially leading to session hijacking or malicious actions.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go2rtc","vendor":"alexxit"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"gotortc is a camera streaming application. Versions 1.8.5 and prior are vulnerable to DOM-based cross-site scripting. The index page (`index.html`) shows the available streams by fetching the API in the client side. Then, it uses `Object.entries` to iterate over the result whose first item (`name`) gets appended using `innerHTML`. In the event of a victim visiting the server in question, their browser will execute the request against the go2rtc instance. After the request, the browser will be redirected to go2rtc, in which the XSS would be executed in the context of go2rtc’s origin. As of time of publication, no patch is available.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"GHSL-2023-207 gotortc DOM-based Cross-site Scripting vulnerability","id":"CVE-2024-29193","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"OneUptime Vulnerable to a Privilege Escalation via Local Storage Key Manipulation","id":"CVE-2024-29194"},"packages":[{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/AlexxIT/go2rtc","purl":null,"source":"GHSA-rh4r-f7f7-r99m"},{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/AlexxIT/go2rtc","purl":"pkg:golang/github.com/AlexxIT/go2rtc","source":"GHSA-rh4r-f7f7-r99m"},{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/AlexxIT/go2rtc","purl":"pkg:golang/github.com/AlexxIT/go2rtc","source":"GO-2024-3053"}],"prev":{"headline":"GHSL-2023-206 gotortc Cross-Site Request Forgery vulnerability","id":"CVE-2024-29192"},"products":["go2rtc"],"published":"2024-04-04","related":[{"cvss_score":8.8,"headline":"GHSL-2023-206 gotortc Cross-Site Request Forgery vulnerability","id":"CVE-2024-29192","kev_date_added":null,"published":"2024-04-04"},{"cvss_score":6.1,"headline":"GHSL-2023-205 gotortc DOM-based Cross-site Scripting vulnerability","id":"CVE-2024-29191","kev_date_added":null,"published":"2024-04-04"}],"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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-08-13","vendors":["AlexxIT"]},"summary":"An attacker can execute arbitrary JavaScript in the victim's browser via DOM-based XSS in go2rtc, potentially leading to session hijacking or malicious actions.","url":"https://insights.sbomify.com/CVE-2024-29193/"}