The malicious user is able to upload a crafted SVG file as the issue attachment to archive XSS. All installations allow uploading SVG (<code>text/xml</code>) files as issue attachments (non-default) are affected.
Correctly setting the Content Security Policy for the serving endpoint. Users should upgrade to 0.12.7 or the latest 0.13.0+dev.
Disable uploading SVG files (<code>text/xml</code>) as issue attachments.
https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d/
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6919.
{
"github_reviewed": true,
"cwe_ids": [
"CWE-79"
],
"github_reviewed_at": "2022-05-24T20:48:14Z",
"nvd_published_at": "2022-05-05T14:15:00Z",
"severity": "MODERATE"
}