What’s Vulnerable › Vulnerabilities
CVE-2024-29882: SRS DOM - XSS on JSONP callback
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-03-28 · updated 2026-06-17
- Weakness: CWE-79
Description
SRS is a simple, high-efficiency, real-time video server. SRS's `/api/v1/vhosts/vid-<id>?callback=<payload>` 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.
Affected products
- ossrs Simple Realtime Server: before 5.0.210; from 6.0.0 before 6.0.121 — fixed in 5.0.210, 6.0.121
How to fix
Upgrade to a fixed version: ossrs Simple Realtime Server 5.0.210, 6.0.121. Check the vendor advisory for mitigations.
References
- https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d
- https://github.com/ossrs/srs/security/advisories/GHSA-gv9r-qcjc-5hj7
- https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d
- https://github.com/ossrs/srs/security/advisories/GHSA-gv9r-qcjc-5hj7
Get alerted when CVE-2024-29882 or the next vulnerability affects your stack