{"id":"GHSA-p74g-f95m-7fx7","revision":"b91683662e504a4ebac823dd4bc706d4","records":[{"revision":"b91683662e504a4ebac823dd4bc706d4","observedAt":"2026-11-09T21:04:16.984+00:00","statement":{"source":"osv","id":"GHSA-p74g-f95m-7fx7","aliases":["CVE-2026-63197"],"title":"traQ: XSS in the User Uploaded File Retrieval API","description":"### Impact\n\nFor instances where `TRAQ_STORAGE_TYPE` is set to `local`, the file retrieval API `/files/{fileId}` could serve user-uploaded SVG or HTML files in a way that allowed them to be rendered directly in the browser.\n\nAs a result, an attacker who can upload files to traQ could upload a crafted SVG or HTML file and trick a victim into opening the file URL, allowing the attacker to execute arbitrary JavaScript in the victim's browser.\n\n### Patches\n\nThis issue has been fixed in v3.28.3.\n\nAfter this fix, the file retrieval API always adds the `Content-Disposition` header to its responses regardless of the value of the `dl` query parameter. This prevents user-uploaded files from being displayed directly in the browser.\n\n### Workarounds\n\nTo mitigate the impact of this issue, apply either of the following workarounds:\n\n* Change `TRAQ_STORAGE_TYPE` to a storage backend other than `local`.\n* Ensure that all requests to `/files/{fileId}` include `dl=1`.\n\nUsers of this application can reduce the risk of exploitation by avoiding suspicious file URLs.","state":0,"publishedAt":"2026-11-09T20:52:49+00:00","modifiedAt":"2026-11-09T21:00:04.0542118+00:00","affected":[{"ecosystem":"Go","name":"github.com/traPtitech/traQ","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.0.0-rc.2.0.20260627142846-3db29e777166"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/traPtitech/traQ/security/advisories/GHSA-p74g-f95m-7fx7","https://nvd.nist.gov/vuln/detail/CVE-2026-63197","https://github.com/traPtitech/traQ/commit/3db29e7771661f6418d88d186d8ff7817f5d6b6e","https://github.com/traPtitech/traQ","https://github.com/traPtitech/traQ/releases/tag/v3.28.3"],"sourceUrl":"https://github.com/advisories/GHSA-p74g-f95m-7fx7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-p74g-f95m-7fx7","identifiers":["GHSA-p74g-f95m-7fx7","CVE-2026-63197"]},"retained":false,"historicalAffected":[]}],"coverage":[]}