Vulnerability advisory

CVE-2025-47943

Gogs stored XSS in PDF renderer

Published Updated OSV record ↗

Also known as GHSA-xh32-cx6c-cp4vGO-2025-3778

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/gogs/gogs ↗
36c26c4ccc3ca0339db53eb1fa41e4e86b55163d to before 110117b2e5e5baa4809c819bec701e929d2d8d40110117b2e5e5baa4809c819bec701e929d2d8d40
Not specified5084b4a9b77a506f5e287e82e945e1c6882b827a
Also listed as affected (1)
  • <= 0.14.0+dev

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools