{"id":"CVE-2025-47943","published":"2025-06-24T03:48:06Z","modified":"2025-07-30T17:45:57Z","title":"Gogs stored XSS in PDF renderer","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00771,"percentile":0.5204,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/commit/110117b2e5e5baa4809c819bec701e929d2d8d40","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.13.3","tags":["x_refsource_MISC"]},{"url":"https://www.hacktivesecurity.com/blog/2025/07/15/cve-2025-47943-stored-xss-in-gogs-via-pdf","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":10.41},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["<= 0.14.0+dev"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-06-24T21:48:30.476761Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gogs/gogs","vulnerableRanges":["<0.13.3-0.20250608224432-110117b2e5e5"],"patched":["0.13.3-0.20250608224432-110117b2e5e5"],"from":["GHSA-xh32-cx6c-cp4v"],"provenance":"source"},{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.13.3-0.20250608224432-110117b2e5e5"],"patched":["0.13.3-0.20250608224432-110117b2e5e5"],"from":["GHSA-xh32-cx6c-cp4v","GO-2025-3778"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in Gogs, a self-hosted Git service, exists in versions 0.14.0+dev and prior and is caused by an outdated bundled pdfjs-1.4.20 component under public/plugins/. An attacker with low-privileged authenticated access can execute client-side JavaScript in a victim's browser, but only if the victim interacts with the malicious content (user interaction is required).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:12Z"},"euvd":{"id":"EUVD-2025-18995","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-55947","published":"2024-12-23","fixed":"0.13.1","kev":false},{"cve":"CVE-2024-44625","published":"2024-11-15","fixed":"0.13.2","kev":false},{"cve":"CVE-2024-56731","published":"2025-06-24","fixed":"0.13.3","kev":false,"link":{"from":"CVE-2024-56731","to":"CVE-2025-47943","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gogs.io/gogs","fromFixed":"0.13.3","toFixed":"0.13.3-0.20250608224432-110117b2e5e5","daysApart":0}]}},{"cve":"CVE-2025-47943","published":"2025-06-24","fixed":"0.13.3-0.20250608224432-110117b2e5e5","kev":false},{"cve":"CVE-2025-64111","published":"2026-02-06","fixed":"0.13.4","kev":false},{"cve":"CVE-2025-64175","published":"2026-02-06","fixed":"0.13.4","kev":false},{"cve":"CVE-2026-22592","published":"2026-02-06","fixed":"0.13.4","kev":false}],"package":"Go:gogs.io/gogs"}}