OSV 1.4.0 · github-reviewed · 修改于 2022-01-05 02:54
发布时间
2021-12-15 05:48
GitHub 审查时间
2021-12-15 04:16
NVD 发布时间
2021-12-15 04:15
源文件
advisories/github-reviewed/2021/12/GHSA-2hfj-cxw7-g45p/GHSA-2hfj-cxw7-g45p.json
Inline scripts are executed when Javascript is parsed via a paste action.
<img src=null onerror=alert('hello')> into the
chat field. ⋮ 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.
If you have any questions or comments about this advisory: