{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29882 exists.","fix":"No fix has been published for CVE-2024-29882 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-29882 is a high-severity cross-site scripting vulnerability in ossrs srs, published on 28 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-29882 and fix it if it is affected.\n\nWhat it is: CVE-2024-29882 is a high-severity cross-site scripting vulnerability in ossrs srs, published on 28 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29882 exists.\n\nAffected product: ossrs srs. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-29882/ (Markdown: https://insights.sbomify.com/CVE-2024-29882/index.md)","id":"CVE-2024-29882","markdown":"https://insights.sbomify.com/CVE-2024-29882/index.md","name":"CVE-2024-29882","record":{"aliases":["GHSA-gv9r-qcjc-5hj7"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Real-time video server","requires_auth":"none","summary":"Attackers can inject malicious JavaScript via the JSONP callback parameter in the SRS video server API, leading to cross-site scripting attacks.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"simple_realtime_server","vendor":"ossrs"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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":"SRS is a simple, high-efficiency, real-time video server. SRS's `/api/v1/vhosts/vid-\u003cid\u003e?callback=\u003cpayload\u003e` endpoint didn't filter the callback function name which led to injecting malicious javascript payloads and executing XSS ( Cross-Site Scripting). This vulnerability is fixed in 5.0.210 and 6.0.121.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"SRS DOM - XSS on JSONP callback","id":"CVE-2024-29882","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"CreateWiki's wiki request suppression ignores the suppression settings set by the suppressor","id":"CVE-2024-29883"},"packages":[],"prev":{"headline":"TinyMCE Cross-Site Scripting (XSS) vulnerability in handling external SVG files through Object or Embed elements","id":"CVE-2024-29881"},"products":["srs"],"published":"2024-03-28","related":[{"cvss_score":7.5,"headline":"SRS has command injection vulnerability in demonstration api-server for HTTP callback.","id":"CVE-2023-34105","kev_date_added":null,"published":"2023-06-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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-21","vendors":["ossrs"]},"summary":"Attackers can inject malicious JavaScript via the JSONP callback parameter in the SRS video server API, leading to cross-site scripting attacks.","url":"https://insights.sbomify.com/CVE-2024-29882/"}