CVE-2025-57813: Github.com/traPtitech/traQ TraQ Allows Insertion Of Sensitive Vulnerability
MODERATECVE-2025-57813 is a MODERATE (CVSS 5.9) traq allows insertion of sensitive vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/traPtitech/traQ libraries in the Go ecosystem. The issue involves traq allows insertion of sensitive information into log file. Remediation is available by upgrading affected packages to version 3.25.0.
CVE-2025-57813 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2025-57813
To remediate this vulnerability, upgrade all affected Github.com/traPtitech/traQ dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/traPtitech/traQ to 3.25.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/traPtitech/traQ
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-57813, inspect your project dependencies for Github.com/traPtitech/traQ:
inspect dependencies for github.com/traPtitech/traQ
Analyze the terminal output to locate any version of Github.com/traPtitech/traQ in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.25.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/traPtitech/traQ, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-57813 Affected Github.com/traPtitech/traQ Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/traPtitech/traQ
|
Go |
< 3.25.0
|
3.25.0
|
References
Frequently Asked Questions
What is CVE-2025-57813?
Which Github.com/traPtitech/traQ versions are affected?
What version fixes CVE-2025-57813?
Is github.com/traPtitech/traQ affected?
What is the CVSS score of CVE-2025-57813?
What CWE is associated with CVE-2025-57813?
How can I check Go dependencies for CVE-2025-57813?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-27r7-3m9x-r533",
"modified" : "2025-08-29T21:03:36Z",
"published" : "2025-08-26T16:19:41Z",
"aliases" : [ "CVE-2025-57813" ],
"summary" : "traQ Allows Insertion of Sensitive Information into Log File",
"details" : "### Impact\nA vulnerability exists where sensitive information, such as OAuth tokens, is recorded in log files when an error occurs during the execution of an SQL query.\nAn attacker could intentionally trigger an SQL error by methods such as placing a high load on the database. This could allow an attacker who has the authority to view the log files to illicitly acquire the recorded sensitive information.\n\n### Patch\nThis vulnerability was temporarily fixed by #2787 and will be completely resolved by #2788. \n\nThis issue may have caused OAuth tokens to be leaked to users who can view logs on traQ instances using versions prior to v3.25.0.\n\nWhile it is possible that OAuth tokens for both human users and Bots were leaked, revoking Bot access tokens is not recommended as it may cause errors. This issue will be resolved in a future update.\n\nCurrently, the recommended mitigation is to invalidate the OAuth tokens of human users only. To apply this measure, please execute the following SQL statement directly:\n```sql\nUPDATE oauth2_tokens SET deleted_at = NOW() WHERE deleted_at IS NULL AND scopes != \"bot\"\n```\n\n### Workaround\nIf you cannot apply the update immediately, as a temporary workaround, please review access permissions for SQL error logs and strictly limit access to prevent unauthorized users from viewing them.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/traPtitech/traQ"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.25.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/traPtitech/traQ/security/advisories/GHSA-27r7-3m9x-r533"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57813"
}, {
"type" : "WEB",
"url" : "https://github.com/traPtitech/traQ/pull/2787"
}, {
"type" : "WEB",
"url" : "https://github.com/traPtitech/traQ/pull/2788"
}, {
"type" : "WEB",
"url" : "https://github.com/traPtitech/traQ/commit/ce5da94f5d5a8348f9ecdc82140b6f53b3721698"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/traPtitech/traQ"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3913"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-26T16:19:41Z",
"nvd_published_at" : "2025-08-26T16:15:38Z"
}
}