{"id":"CVE-2024-29882","summary":"SRS DOM - XSS on JSONP callback","details":"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.","aliases":["GHSA-gv9r-qcjc-5hj7"],"modified":"2026-08-12T15:15:10.539605Z","published":"2024-03-28T13:33:42.500Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29882.json","unresolved_ranges":[{"extracted_events":[{"fixed":"5.0.210"},{"introduced":"6.0.0"},{"fixed":"6.0.121"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29882.json"},{"type":"ADVISORY","url":"https://github.com/ossrs/srs/security/advisories/GHSA-gv9r-qcjc-5hj7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29882"},{"type":"FIX","url":"https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ossrs/srs","events":[{"introduced":"0"},{"fixed":"244ce7bc013a0b805274a65132a2980680ba6b9d"}],"database_specific":{"source":"REFERENCES"}}],"versions":["v6.0-d4","v6.0-d3","v6.0-d2","v6.0-d1","v6.0-d0","v6.0.48","v6.0.45","v6.0.36","v6.0.10","v0.9.0","v0.8.0","v0.7.0","v0.6.0","v0.5.0","v0.4.0","v0.3.0","v0.2.0","v0.1.0"],"database_specific":{"vanir_signatures_modified":"2026-08-12T15:15:10Z","vanir_signatures":[{"id":"CVE-2024-29882-094323cc","signature_type":"Line","signature_version":"v1","source":"https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d","target":{"file":"trunk/src/protocol/srs_protocol_http_conn.cpp"},"deprecated":false,"digest":{"line_hashes":["51331076260704782388217210023354136357","212296809016094972470653598659566661353","27929993880543800799733862745352639025","221180860166256488453906821182588866426","153482185210129231678574555006858481119","98343271453330675262125054440273668624","306028441414888796757303718790337975647","209091840125063562187424494637493943060","317442199544706622938477496081021741511","68442070361506501621736883367351764626","95723457923698245765128480367895454891","335262093353938068893257561734285562251"],"threshold":0.9}},{"source":"https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d","target":{"file":"trunk/src/kernel/srs_kernel_error.hpp"},"deprecated":false,"digest":{"line_hashes":["126123604150206928519426776614144614196","169197213057109872522810241202788724393","57766131618121208857558053770792752477","59247926496317154915664063860174616185"],"threshold":0.9},"id":"CVE-2024-29882-dc66ef25","signature_type":"Line","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d","target":{"file":"trunk/src/protocol/srs_protocol_http_conn.cpp","function":"SrsHttpMessage::set_url"},"deprecated":false,"digest":{"function_hash":"111536652742290614265247733577924431419","length":748},"id":"CVE-2024-29882-e2715aae","signature_type":"Function"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-29882.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"}]}