CVE-2025-47943 json
Gogs stored XSS in PDF renderer
published 2025-06-24 16 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-18995 , GHSA-xh32-cx6c-cp4v , GO-2025-3778
- cvss
- 6.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/gogs/gogs 0.13.3-0.20250608224432-110117b2e5e5
- go gogs.io/gogs 0.13.3-0.20250608224432-110117b2e5e5
- gogs gogs 0.13.3
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250730T213748-1.1
opensuse advisories openSUSE-SU-2025:15405-1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 16 mo ago
Exploit prediction
0.40% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N |
| GitHub | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/gogs/gogs | <0.13.3-0.20250608224432-110117b2e5e5 |
0.13.3-0.20250608224432-110117b2e5e5 |
| go | gogs.io/gogs | <0.13.3-0.20250608224432-110117b2e5e5 |
0.13.3-0.20250608224432-110117b2e5e5 |
Affected products
- gogs gogs
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/gogs/gogs/commit/110117b2e5e5baa4809c819bec701e929d2d8d40
web
-
github.com
/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v
exploit, web, advisory
-
github.com
/gogs/gogs/releases/tag/v0.13.3
web
-
hacktivesecurity.com
/blog/2025/07/15/cve-2025-47943-stored-xss-in-gogs-via-pdf
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-47943
advisory
-
github.com
/gogs/gogs
package
Sources
- CVE List CVE-2025-47943
- GitHub Advisory GHSA-xh32-cx6c-cp4v
- NVD CVE-2025-47943
- OSV GO-2025-3778
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.