# CVE-2025-47943: Gogs stored XSS in PDF renderer

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-24T03:48:06.012Z
- Modified: 2026-09-10T03:50:25.589Z
- Also known as: GHSA-xh32-cx6c-cp4v, GO-2025-3778
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- gogs gogs: <= 0.14.0+dev
- github.com/gogs/gogs (Go): before 0.13.3-0.20250608224432-110117b2e5e5
- gogs.io/gogs (Go): before 0.13.3-0.20250608224432-110117b2e5e5

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v> (exploit, advisory, web)
- <https://github.com/gogs/gogs/commit/110117b2e5e5baa4809c819bec701e929d2d8d40> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.13.3> (web)
- <https://www.hacktivesecurity.com/blog/2025/07/15/cve-2025-47943-stored-xss-in-gogs-via-pdf> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-47943> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2025-47943](https://www.cve.org/CVERecord?id=CVE-2025-47943), CVE Terms of Use, modified 2025-07-30
- GitHub Advisory Database: [GHSA-xh32-cx6c-cp4v](https://github.com/advisories/GHSA-xh32-cx6c-cp4v), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3778](https://pkg.go.dev/vuln/GO-2025-3778), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-47943](https://nvd.nist.gov/vuln/detail/CVE-2025-47943), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-47943 · Whole record: https://cve.day/CVE-2025-47943.json · Rebuilt by cve.day 2026-11-25T22:58:59.554Z
