GHSA-27r7-3m9x-r533

Suggest an improvement
Source
https://github.com/advisories/GHSA-27r7-3m9x-r533
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-27r7-3m9x-r533/GHSA-27r7-3m9x-r533.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-27r7-3m9x-r533
Aliases
Published
2025-08-26T16:19:41Z
Modified
2025-08-27T17:04:43Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
traQ Allows Insertion of Sensitive Information into Log File
Details

Impact

A 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. An 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.

Patch

This vulnerability was temporarily fixed by #2787 and will be completely resolved by #2788.

This 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.

While 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.

Currently, the recommended mitigation is to invalidate the OAuth tokens of human users only. To apply this measure, please execute the following SQL statement directly:

UPDATE oauth2_tokens SET deleted_at = NOW() WHERE deleted_at IS NULL AND scopes != "bot"

Workaround

If 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.

Database specific
{
    "severity": "MODERATE",
    "nvd_published_at": "2025-08-26T16:15:38Z",
    "github_reviewed": true,
    "github_reviewed_at": "2025-08-26T16:19:41Z",
    "cwe_ids": [
        "CWE-532"
    ]
}
References

Affected packages

Go / github.com/traPtitech/traQ

Package

Name
github.com/traPtitech/traQ
View open source insights on deps.dev
Purl
pkg:golang/github.com/traPtitech/traQ

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.25.0