8.2high
Unsafe inline XSS Owncast
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2hfj-cxw7-g45pGO-2022-0291
Description
Owncast is an open source, self-hosted live video streaming and chat server. In affected versions inline scripts are executed when Javascript is parsed via a paste action. This issue is patched in 0.0.9 by blocking unsafe-inline Content Security Policy and specifying the script-src. The worker-src is required to be set to blob for the video player.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| owncast owncast | < 0.0.9 | CVE List |
| github.com/owncast/owncast (Go) | before 0.0.9 | GitHub Advisory Database, Go Vulnerability Database |
| owncast_project owncast | before 0.0.9 | NVD |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
Owncast is an open source, self-hosted live video streaming and chat server. In affected versions inline scripts are executed when Javascript is parsed via a paste action. This issue is patched in 0.0.9 by blocking unsafe-inline Content Security Policy and specifying the script-src. The worker-src is required to be set to blob for the video player.
GitHub Advisory Database
Impact
Inline scripts are executed when Javascript is parsed via a paste action.
- Open https://watch.owncast.online/
- Copy and then paste
<img src=null onerror=alert('hello')>into the chat field. - An alert should pop up.
Patches
⋮ 13 │ // Content security policy
⋮ 14 │ csp := []string{
⋮ 15 │ "script-src 'self' 'sha256-2HPCfJIJHnY0NrRDPTOdC7AOSJIcQyNxzUuut3TsYRY='",
⋮ 16 │ "worker-src 'self' blob:", // No single quotes around blob:
⋮ 17 │ }
Will be patched in 0.0.9 by blocking unsafe-inline Content Security Policy and specifying the script-src. The worker-src is required to be set to blob for the video player.
For more information
If you have any questions or comments about this advisory:
- Open an issue in owncast/owncast
- Email us at gabek@real-ity.com
Go Vulnerability Database
Unsafe inline XSS in pasting DOM element into chat in github.com/owncast/owncast
NVD (es)
Owncast es un servidor de chat y transmisión de vídeo en directo de código abierto y autoalojado. En las versiones afectadas son ejecutados scripts en línea cuando es analizado Javascript mediante una acción de pegado. Este problema está parcheado en la versión 0.0.9 al bloquear la política de seguridad de contenidos unsafe-inline y la especificación del script-src. Es requerido que el worker-src sea establecido como blob para el reproductor de vídeo
References
| https://github.com/owncast/owncast/security/advisories/GHSA-2hfj-cxw7-g45p | advisory, exploit, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-39183 | advisory | |
| https://github.com/owncast/owncast | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-39183 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2hfj-cxw7-g45p changed 2026-07-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0291 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2021-39183 changed 2026-06-17 | Public domain |