6.3medium
Gogs stored XSS in PDF renderer
- Severity
- 6.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.54% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xh32-cx6c-cp4vGO-2025-3778
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gogs gogs | <= 0.14.0+dev | CVE List |
| github.com/gogs/gogs (Go) | before 0.13.3-0.20250608224432-110117b2e5e5 | GitHub Advisory Database |
| gogs.io/gogs (Go) | before 0.13.3-0.20250608224432-110117b2e5e5 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
A stored XSS is present in Gogs which allows client-side Javascript code execution.
Details
Gogs Version:
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
gogs/gogs latest fe92583bc4fe 10 hours ago 99.3MB
Application version: 0.14.0+dev
Local setup using:
# Pull image from Docker Hub.
docker pull gogs/gogs
# Create local directory for volume.
sudo mkdir -p /var/gogs
# Use `docker run` for the first time.
docker run --name=gogs -p 10022:22 -p 10880:3000 -v /var/gogs:/data gogs/gogs
The vulnerability is caused by the usage of a vulnerable and outdated component: pdfjs-1.4.20 under public/plugins/.
Read more about this vulnerability at codeanlabs - CVE-2024-4367.
PoC
- Upload the Proof of Concept file hosted at https://codeanlabs.com/wp-content/uploads/2024/05/poc_generalized_CVE-2024-4367.pdf in a repository.
- Click on the file to be previewed.
Credits
Edoardo Ottavianelli
Go Vulnerability Database
Gogs XSS allowed by stored call in PDF renderer in gogs.io/gogs
NVD (es)
Gogs es un servicio Git autoalojado de código abierto. En la versión 0.14.0+dev y anteriores de la aplicación, existe una vulnerabilidad de cross-site scripting (XSS) almacenado en Gogs, que permite la ejecución de código Javascript del lado del cliente. La vulnerabilidad se debe al uso de un componente vulnerable y obsoleto: pdfjs-1.4.20, ubicado en public/plugins/. Este problema se ha corregido para gogs.io/gogs en la versión 0.13.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-47943 changed 2025-07-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xh32-cx6c-cp4v changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3778 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2025-47943 changed 2026-06-17 | Public domain |