{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "eb4ecdfc30f2e7d1424137fa7fe3a9eed663218b"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.6.2",
                "range": [
                  {
                    "fixed": "eb4ecdfc30f2e7d1424137fa7fe3a9eed663218b"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "eb4ecdfc30f2e7d1424137fa7fe3a9eed663218b"
            }
          ],
          "repo": "https://github.com/jordan-dalby/bytestash",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-26m9-ww2j-3cr5"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-613"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126658.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "1.5.10"
              },
              {
                "fixed": "1.6.2"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "1.5.10"
              },
              {
                "fixed": "1.6.2"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "ByteStash 1.5.10 before 1.6.2 contains an insufficient session expiration vulnerability that allows holders of API keys to keep access after account deactivation because validateApiKey never checks account status. Attackers holding a deactivated account's API key can read, create, modify and delete its snippets via /api/snippets and use every MCP tool via /mcp.",
  "id": "CVE-2026-126658",
  "modified": "2026-11-12T10:30:26.556106155Z",
  "published": "2026-11-11T12:24:35.975Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126658.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/jordan-dalby/ByteStash"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/jordan-dalby/ByteStash/blob/v1.6.1/server/src/repositories/apiKeyRepository.js#L70-L78"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jordan-dalby/ByteStash/commit/eb4ecdfc30f2e7d1424137fa7fe3a9eed663218b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/jordan-dalby/ByteStash/releases/tag/v1.6.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/jordan-dalby/ByteStash/security/advisories/GHSA-26m9-ww2j-3cr5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126658"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/bytestash-1.5.10-before-1.6.2-insufficient-session-expiration-via-api-keys"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "ByteStash 1.5.10 before 1.6.2 Insufficient Session Expiration via API Keys"
}