1 line
2.1 KiB
JSON
1 line
2.1 KiB
JSON
{"schema_version":"1.9.0","id":"GHSA-2hfj-cxw7-g45p","published":"2021-12-14T21:48:16Z","modified":"2026-07-08T06:27:31.747948110Z","aliases":["CVE-2021-39183","GO-2022-0291"],"summary":"Unsafe inline XSS in pasting DOM element into chat","details":"### Impact\n\nInline scripts are executed when Javascript is parsed via a paste action.\n\n1. Open https://watch.owncast.online/\n2. Copy and then paste `<img src=null onerror=alert('hello')>` into the\nchat field.\n3. An alert should pop up.\n\n### Patches\n```\n ⋮ 13 │ // Content security policy\n ⋮ 14 │ csp := []string{\n ⋮ 15 │ \"script-src 'self' 'sha256-2HPCfJIJHnY0NrRDPTOdC7AOSJIcQyNxzUuut3TsYRY='\",\n ⋮ 16 │ \"worker-src 'self' blob:\", // No single quotes around blob:\n ⋮ 17 │ }\n```\n\nWill 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.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [owncast/owncast](https://github.com/owncast/owncast/issues)\n* Email us at [gabek@real-ity.com](mailto:gabek@real-ity.com)\n","affected":[{"package":{"name":"github.com/owncast/owncast","ecosystem":"Go","purl":"pkg:golang/github.com/owncast/owncast"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.9"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-2hfj-cxw7-g45p/GHSA-2hfj-cxw7-g45p.json"}}],"references":[{"type":"WEB","url":"https://github.com/owncast/owncast/security/advisories/GHSA-2hfj-cxw7-g45p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39183"},{"type":"PACKAGE","url":"https://github.com/owncast/owncast"}],"database_specific":{"cwe_ids":["CWE-79"],"github_reviewed":true,"github_reviewed_at":"2021-12-14T20:16:10Z","nvd_published_at":"2021-12-14T20:15:00Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L"}]} |