VulnWatch by ve1ve2
high 7.3 EPSS 0.29%

GHSA-p74g-f95m-7fx7: traQ: XSS in the User Uploaded File Retrieval API

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
github.com/traPtitech/traQ

https://osv.dev/vulnerability/GHSA-p74g-f95m-7fx7 ↗

osvgofix-available

traQ: XSS in the User Uploaded File Retrieval API ### 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. Affected: Go:github.com/traPtitech/traQ Fixed in: 1.0.0-rc.2.0.20260627142846-3db29e777166 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

Linked vulnerabilities (2)

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

traQ: XSS in the User Uploaded File Retrieval API

CWE: CWE-79Aliases: CVE-2026-63197
CVE-2026-63197 high 7.3 EPSS 0.29% (p21) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

traQ: XSS in the User Uploaded File Retrieval API

CWE: CWE-79Aliases: GHSA-p74g-f95m-7fx7