CVE-2025-47943 Details
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.
A stored cross-site scripting vulnerability has been identified in Gogs, an open-source self-hosted Git service, in application versions through 0.14.0+dev. This vulnerability allows for the execution of client-side JavaScript. The issue arises from the use of an outdated component, pdfjs-1.4.20, located in public/plugins/.
Users can upgrade to Gogs version 0.13.3, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 24, 2025CISA-ADP
Assessed Jun 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/gogs/gogs/commit/110117b2e5e5baa4809c819bec701e929d2d8d40 | [email protected] | Source CodeVendor |
| https://github.com/gogs/gogs/releases/tag/v0.13.3 | [email protected] | Release NotesVendor |
| https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v | [email protected] | AdvisoryExploitRemedyVendor |
| https://www.hacktivesecurity.com/blog/2025/07/15/cve-2025-47943-stored-xss-in-gogs-via-pdf | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Gogs | <= 0.14.0+dev (semver) |
CPE
Remediation
| |
| pdfjs | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2025 | CVE Modified | [email protected] |
| Jun 24, 2025 | CVE Modified | CISA-ADP |
| Jun 24, 2025 | New CVE Received | [email protected] |
Volerion