github.com/gogs/gogs
Affected
- introduced
0, fixed0.13.3-0.20250608224432-110117b2e5e5(semver)
Fixed versions
0.13.3-0.20250608224432-110117b2e5e5
Fix
- Fixed version
0.13.3-0.20250608224432-110117b2e5e5go get github.com/gogs/[email protected]
Advisory
Also known as: CVE-2025-47943, GO-2025-3778
Gogs XSS allowed by stored call in PDF renderer
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
Credits
Edoardo Ottavianelli
Medium Basis: The source's own band: MODERATE
0, fixed 0.13.3-0.20250608224432-110117b2e5e5 (semver)0.13.3-0.20250608224432-110117b2e5e5
0.13.3-0.20250608224432-110117b2e5e5go get github.com/gogs/[email protected]0, fixed 0.13.3-0.20250608224432-110117b2e5e5 (semver)0.13.3-0.20250608224432-110117b2e5e5
0.13.3-0.20250608224432-110117b2e5e5go get gogs.io/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0