Gogs stored XSS in PDF renderer
gogs
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/gogs/gogs Go |
|
|
| gogs.io/gogs Go |
|
|
gogs
| Product | Affected | Fixed in |
|---|---|---|
| github.com/gogs/gogs Go |
|
|
| gogs.io/gogs Go |
|
|
Gogs is an open source self-hosted Git service. In application version 0.14.0+dev and prior, there is a stored cross-site scripting (XSS) vulnerability present in Gogs, which allows client-side Javascript code execution. The vulnerability is caused by the usage of a vulnerable and outdated component: pdfjs-1.4.20 under public/plugins/. This issue has been fixed for gogs.io/gogs in version 0.13.3.
From the CVE record · GitHub_M
Gogs version 0.14.0+dev and prior includes a vulnerable pdfjs-1.4.20 component under public/plugins/, causing stored cross-site scripting. An attacker can cause client-side JavaScript execution; the input does not specify authentication requirements or how the malicious content is delivered.
Operators of Gogs and users of the Go packages github.com/gogs/gogs or gogs.io/gogs below 0.13.3-0.20250608224432-110117b2e5e5 should check their installations.