HIGH · CVSS 3.1 7.3 EPSS 0.4% · 28th percentile CWE-79

CVE-2026-63197: traQ: XSS in the User Uploaded File Retrieval API

Published 2026-11-09 · Updated 2026-11-23 · Also known as GHSA-p74g-f95m-7fx7, GO-2026-6944

Summary

A Cross-Site Scripting (XSS) vulnerability exists in traQ's user uploaded file retrieval API when storage is set to local. Engineering teams and system administrators using affected versions should update to the patched version.

Who is affected

Affected deployments are those using traQ with the `TRAQ_STORAGE_TYPE` set to `local`. An attacker who can upload files can supply crafted SVG or HTML files and trick a victim into opening the file URL, allowing arbitrary JavaScript execution in the victim's browser with high impacts to confidentiality and integrity.

Exploitability

The vulnerability has a CVSS v3.1 base score of 7.3 (HIGH) with an attack vector of network, low privileges required, and user interaction expected. The EPSS score is 0.003 and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/traPtitech/traQ >= 0, < 1.0.0-rc.2.0.20260627142846-3db29e777166 1.0.0-rc.2.0.20260627142846-3db29e777166 go get github.com/traPtitech/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredLow
User interactionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone

FAQ

What causes the XSS vulnerability?

The file retrieval API serves user-uploaded SVG or HTML files directly in the browser when local storage is used, lacking the enforced Content-Disposition header.

Is active exploitation currently occurring in the wild?

There is no indication of active exploitation as the CISA Known Exploited Vulnerabilities list does not include this vulnerability.

What is the fix implemented in the patch?

The patch ensures the file retrieval API always adds the Content-Disposition header to responses regardless of the `dl` query parameter value, preventing direct browser rendering.

Original advisory description
### 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.

References

Source records: GHSA-p74g-f95m-7fx7, GO-2026-6944 (OSV.dev) · EPSS by FIRST, 2026-11-26.