gogs.io/gogs
Affected
- introduced
0, fixed0.12.7(semver)
Fixed versions
0.12.7
Fix
- Fixed version
0.12.7go get gogs.io/[email protected]
Advisory
Also known as: CVE-2022-1464, GO-2022-0597
Cross-site Scripting in Gogs
Impact
The malicious user is able to upload a crafted SVG file as the issue attachment to archive XSS. All installations allow uploading SVG (`text/xml`) files as issue attachments (non-default) are affected.
Patches
Correctly setting the Content Security Policy for the serving endpoint. Users should upgrade to 0.12.7 or the latest 0.13.0+dev.
Workarounds
Disable uploading SVG files (`text/xml`) as issue attachments.
References
https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d/
For more information
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6919.
Medium Basis: The source's own band: MODERATE
0, fixed 0.12.7 (semver)0.12.7
0.12.7go get gogs.io/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0