Skip to content
OpenAdvisories
Medium · 6.3 CVE-2025-47943 EUVD-2025-18995GHSA-xh32-cx6c-cp4vGO-2025-3778

Gogs stored XSS in PDF renderer

Published Jun 24, 2025 · Updated Jul 30, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
gogs gogs <= 0.14.0+dev —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250730T213748-1.1 openSUSE-SU-2025:15405-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gogs/gogs < 0.13.3-0.20250608224432-110117b2e5e5 0.13.3-0.20250608224432-110117b2e5e5 GHSA-xh32-cx6c-cp4v
Go gogs.io/gogs < 0.13.3-0.20250608224432-110117b2e5e5 0.13.3-0.20250608224432-110117b2e5e5 GHSA-xh32-cx6c-cp4v

Advisories 2

References