traQ: XSS in the User Uploaded File Retrieval API
CVE-2026-63197 · GHSA-p74g-f95m-7fx7 · GO-2026-6944 · published 9 Nov 2026
How serious is it
- Severity: high, CVSS score 7.3 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-63197?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
github.com/traPtitech/traQ(Go) < 1.0.0-rc.2.0.20260627142846-3db29e777166
How to check
- Run
go list -m github.com/traPtitech/traQin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- Upgrade
github.com/traPtitech/traQto 1.0.0-rc.2.0.20260627142846-3db29e777166 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
### Impact
For 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.
As 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.
### Patches
This issue has been fixed in v3.28.3.
After 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.
### Workarounds
To mitigate the impact of this issue, apply either of the following workarounds:
* Change `TRAQ_STORAGE_TYPE` to a storage backend other than `local`.
* Ensure that all requests to `/files/{fileId}` include `dl=1`.
Users of this application can reduce the risk of exploitation by avoiding suspicious file URLs.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/traPtitech/traQ/security/advisories/GHSA-p74g-f95m-7fx7
- nvd.nist.gov/vuln/detail/CVE-2026-63197
- github.com/traPtitech/traQ/commit/3db29e7771661f6418d88d186d8ff7817f5d6b6e
- github.com/traPtitech/traQ/releases/tag/v3.28.3
- github.com/advisories/GHSA-p74g-f95m-7fx7
- github.com/traPtitech/traQ
Merged from GitHub Advisory Database, OSV. Last updated 24 Nov 2026. All vulnerabilities · RSS · JSON