{"id":"GHSA-xh32-cx6c-cp4v","revision":"aeb23e878a644990942119437b839f8d","records":[{"revision":"aeb23e878a644990942119437b839f8d","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-xh32-cx6c-cp4v","aliases":["CVE-2025-47943","GO-2025-3778"],"title":"Gogs XSS allowed by stored call in PDF renderer","description":"### Summary\n\nA stored XSS is present in Gogs which allows client-side Javascript code execution.\n\n### Details\n\nGogs Version:\n```\ndocker images\nREPOSITORY   TAG       IMAGE ID       CREATED        SIZE\ngogs/gogs    latest    fe92583bc4fe   10 hours ago   99.3MB\n```\n\nApplication version: `0.14.0+dev`\n\nLocal setup using:\n```bash\n# Pull image from Docker Hub.\ndocker pull gogs/gogs\n\n# Create local directory for volume.\nsudo mkdir -p /var/gogs\n\n# Use `docker run` for the first time.\ndocker run --name=gogs -p 10022:22 -p 10880:3000 -v /var/gogs:/data gogs/gogs\n```\n\nThe vulnerability is caused by the usage of a vulnerable and outdated component: `pdfjs-1.4.20` under public/plugins/.  \nRead more about this vulnerability at [codeanlabs - CVE-2024-4367](https://codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js/).\n\n### PoC\n\n1. Upload the Proof of Concept file hosted at https://codeanlabs.com/wp-content/uploads/2024/05/poc_generalized_CVE-2024-4367.pdf in a repository.\n2. Click on the file to be previewed.\n\n![poc](https://github.com/user-attachments/assets/5af1303e-8751-49c8-af2e-d0631dd18957)\n\n\n### Credits\n\nEdoardo Ottavianelli","state":0,"publishedAt":"2025-06-26T16:54:01+00:00","modifiedAt":"2026-09-10T03:50:25.5895783+00:00","affected":[{"ecosystem":"Go","name":"github.com/gogs/gogs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.13.3-0.20250608224432-110117b2e5e5"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.13.3-0.20250608224432-110117b2e5e5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/gogs/gogs/security/advisories/GHSA-xh32-cx6c-cp4v","https://nvd.nist.gov/vuln/detail/CVE-2025-47943","https://github.com/gogs/gogs/commit/110117b2e5e5baa4809c819bec701e929d2d8d40","https://github.com/gogs/gogs","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"],"sourceUrl":"https://github.com/advisories/GHSA-xh32-cx6c-cp4v","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-xh32-cx6c-cp4v","identifiers":["GHSA-xh32-cx6c-cp4v","CVE-2025-47943","GO-2025-3778"]},"retained":false,"historicalAffected":[]}],"coverage":[]}