{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.3.0"
              },
              {
                "introduced": "Chat2DB"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "19d46c99e3aac072d28a459982d82f0cacd5be72"
            }
          ],
          "repo": "https://github.com/ottermind/chat2db",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-639"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63307.json"
  },
  "details": "Chat2DB before 5.3.0 contains an insecure direct object reference vulnerability in the GET /api/connection/datasource/{id} endpoint. The handler calls dataSourceService.queryExistent(id, ...) without an ownership check and returns the decrypted password field, allowing any authenticated non-admin user to enumerate datasource IDs and read the plaintext database credentials of datasources owned by other users.",
  "id": "CVE-2026-63307",
  "modified": "2026-07-19T03:31:07.915724939Z",
  "published": "2026-07-17T16:13:57.232Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63307.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/OtterMind/Chat2DB/releases/tag/v5.3.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-63307"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/forgecode-arbitrary-code-execution-via-unvetted-mcp-json-in-untrusted-repository"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/OtterMind/Chat2DB"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/OtterMind/Chat2DB/issues/1839"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Chat2DB \u003c 5.3.0 Insecure Direct Object Reference via GET /api/connection/datasource"
}