Vulnerabilities in pkg:golang/github.com/traPtitech/traQ

PACKAGE
Advisory Identifier: GHSA-27r7-3m9x-r533
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/traPtitech/traQ

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/traPtitech/traQ. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-27r7-3m9x-r533 CVE-2025-57813 MODERATE traQ Allows Insertion of Sensitive Information into Log File

CVE-2025-57813 at a Glance

CVE Identifier CVE-2025-57813
GHSA Identifier GHSA-27r7-3m9x-r533
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/traPtitech/traQ
Package Ecosystem Go
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

github.com/traPtitech/traQ fixed: 3.25.0
Upgrade github.com/traPtitech/traQ to 3.25.0
Verify Direct and Transitive Dependencies

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

### 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: ```sql 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.

CVE-2025-57813 Affected Github.com/traPtitech/traQ Versions

1 component(s)
Fixed Versions:
3.25.0
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?
CVE-2025-57813 is a security vulnerability in Github.com/traPtitech/traQ involving traQ Allows Insertion of Sensitive Information into Log File under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/traPtitech/traQ versions are affected?
Affected versions include releases prior to 3.25.0 across affected packages: github.com/traPtitech/traQ.
What version fixes CVE-2025-57813?
Upgrading to 3.25.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/traPtitech/traQ affected?
Yes, github.com/traPtitech/traQ is affected in releases prior to 3.25.0. Upgrade your dependency to 3.25.0 or later.
What is the CVSS score of CVE-2025-57813?
CVE-2025-57813 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-57813?
CVE-2025-57813 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2025-57813?
Run the dependency tree command: 'inspect dependencies for github.com/traPtitech/traQ'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}