{"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-29191 exists.","fix":"Upgrade github.com/AlexxIT/go2rtc to 1.9.0 or later.","what":"CVE-2024-29191 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-29191 and fix it if it is affected.\n\nWhat it is: CVE-2024-29191 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-29191 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-29191/ (Markdown: https://insights.sbomify.com/CVE-2024-29191/index.md)","id":"CVE-2024-29191","markdown":"https://insights.sbomify.com/CVE-2024-29191/index.md","name":"CVE-2024-29191","record":{"aliases":["GHSA-wv8x-3w6r-6h7v","GO-2024-3055"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"go2rtc camera streaming","requires_auth":"none","summary":"An attacker can execute arbitrary JavaScript in the victim's browser via a crafted link 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 links page (`links.html`) appends the `src` GET parameter (`[0]`) in all of its links for 1-click previews. The context in which `src` is being appended is `innerHTML` (`[1]`), which will insert the text as HTML. Commit 3b3d5b033aac3a019af64f83dec84f70ed2c8aba contains a patch for the issue.","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-205 gotortc DOM-based Cross-site Scripting vulnerability","id":"CVE-2024-29191","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"GHSL-2023-206 gotortc Cross-Site Request Forgery vulnerability","id":"CVE-2024-29192"},"packages":[{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/AlexxIT/go2rtc","purl":null,"source":"GHSA-wv8x-3w6r-6h7v"},{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/AlexxIT/go2rtc","purl":"pkg:golang/github.com/AlexxIT/go2rtc","source":"GHSA-wv8x-3w6r-6h7v"},{"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-3055"}],"prev":{"headline":"MobSF SSRF Vulnerability on assetlinks_check(act_name, well_knowns)","id":"CVE-2024-29190"},"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-207 gotortc DOM-based Cross-site Scripting vulnerability","id":"CVE-2024-29193","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-02","vendors":["AlexxIT"]},"summary":"An attacker can execute arbitrary JavaScript in the victim's browser via a crafted link in go2rtc, potentially leading to session hijacking or malicious actions.","url":"https://insights.sbomify.com/CVE-2024-29191/"}