{"id":"CVE-2025-47943","state":"PUBLISHED","title":"Gogs stored XSS in PDF renderer","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.","publishedAt":"2025-06-24T03:48:06.012Z","updatedAt":"2025-07-30T17:45:57.812Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["gogs gogs"],"affected":[{"vendor":"gogs","product":"gogs","versions":[{"version":"<= 0.14.0+dev","status":"affected"}]}],"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"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:09:23.771Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/47xxx/CVE-2025-47943.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-47943","state":"PUBLISHED","datePublished":"2025-06-24T03:48:06.012Z","dateUpdated":"2025-07-30T17:45:57.812Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-05-14T10:32:43.530Z"},"containers":{"cna":{"title":"Gogs stored XSS in PDF renderer","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"gogs","product":"gogs","versions":[{"version":"<= 0.14.0+dev","status":"affected"}]}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v","name":"https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/commit/110117b2e5e5baa4809c819bec701e929d2d8d40","name":"https://github.com/gogs/gogs/commit/110117b2e5e5baa4809c819bec701e929d2d8d40","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.13.3","name":"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","name":"https://www.hacktivesecurity.com/blog/2025/07/15/cve-2025-47943-stored-xss-in-gogs-via-pdf","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-07-30T17:45:57.812Z"},"source":{"advisory":"GHSA-xh32-cx6c-cp4v","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-06-24T21:48:30.476761Z","id":"CVE-2025-47943","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-24T21:48:47.649Z"}}]}}}