# CVE-2026-126658: ByteStash 1.5.10 before 1.6.2 Insufficient Session Expiration via API Keys

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-11T12:24:35.975Z
- Modified: 2026-11-14T13:17:20.563Z
- Weaknesses: CWE-613
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- jordan-dalby ByteStash: from 1.5.10 before 1.6.2 (not affected: 1.6.2)

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `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`
- VulnCheck: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/jordan-dalby/ByteStash/security/advisories/GHSA-26m9-ww2j-3cr5> (exploit, vendor-advisory)
- <https://github.com/jordan-dalby/ByteStash/commit/eb4ecdfc30f2e7d1424137fa7fe3a9eed663218b> (patch)
- <https://github.com/jordan-dalby/ByteStash/releases/tag/v1.6.2> (release-notes)
- <https://github.com/jordan-dalby/ByteStash/blob/v1.6.1/server/src/repositories/apiKeyRepository.js#L70-L78> (technical-description)
- <https://notes.netbytesec.com/2026/11/cve-2026-126658-bytestash-1510-before.html> (third-party-advisory)
- <https://www.vulncheck.com/advisories/bytestash-1.5.10-before-1.6.2-insufficient-session-expiration-via-api-keys> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-126658](https://www.cve.org/CVERecord?id=CVE-2026-126658), CVE Terms of Use, modified 2026-11-14
- NVD: [CVE-2026-126658](https://nvd.nist.gov/vuln/detail/CVE-2026-126658), Public domain, modified 2026-11-14

---

Page: https://cve.day/CVE-2026-126658 · Whole record: https://cve.day/CVE-2026-126658.json · Rebuilt by cve.day 2026-11-25T22:59:50.372Z
