Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain deactivated account's retained API key
-
DeliverySend Bearer key to /api/snippets or /mcp
-
ExploitvalidateApiKey omits u.is_active check
-
ExecutionKey validates despite deactivation
-
ImpactRead, modify or delete account snippets and invoke MCP tools
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
|
| Exploitation Conditions | Exploitation requires the attacker to already hold a valid API key that the target account minted before it was deactivated, and the account must have been DEACTIVATED (via PATCH /api/admin/users/:id/toggle-active) rather than DELETED - deleting the user kills the key because the JOIN returns no row, so only the reversible deactivation path is affected. The key's own ak.is_active must still be 1 (the key not individually revoked). No user interaction and no additional privilege are needed beyond possession of the key, and the flaw affects default configurations of ByteStash 1.5.4 through 1.6.1 on both /api/snippets* and /mcp. Limiting factors: impact is confined to the deactivated account's own snippet data (an API-key principal carries no username, so /api/admin/* returns 401 - no cross-user or admin access, no scope change), and an operator who deletes keys or deletes the user instead of deactivating is not exposed. |
| Impact | This is a genuine but bounded authorization/revocation-bypass issue, not a critical mass-exploitation threat. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N) correctly captures a network-reachable, low-complexity flaw that requires a pre-existing low-privilege credential - the holder must already possess an API key the victim account minted before deactivation (PR:L). It is NOT in CISA KEV (no active-exploitation signal) and no EPSS score was provided in the input, so exploitation probability cannot be quantified from the data given; absence of EPSS/KEV should not be read as 'safe,' only as 'unmeasured.' The GHSA advisory contains a fully documented, locally reproduced proof-of-concept walkthrough, so the mechanism is confirmed and trivially repeatable by anyone holding a leaked/retained key, but this is distinct from evidence of in-the-wild use. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a real-but-not-urgent revocation-control failure. The realistic risk is targeted and insider-flavored (offboarded staff, leaked keys, incident-response containment that silently fails) rather than opportunistic internet-wide scanning, because the attacker needs the specific account's key - there is no cross-user or admin access, and impact stays within the deactivated account's own snippet store. Net: prioritize for patching on a normal cycle, elevate immediately only if you rely on deactivation (vs. deletion) as an offboarding or incident-containment control. |
| Exploit ScenarioDerived | A contractor is offboarded and their ByteStash account is deactivated, but an API key they generated months earlier is still pasted into an MCP/LLM client or mobile app. Because validateApiKey never checks the account's is_active flag, that key keeps full read/create/update/delete access to the account's snippets (often holding credentials, tokens and connection strings) and every /mcp tool. The GHSA advisory includes a step-by-step reproduced proof-of-concept; given AV:N/AC:L, exploitation is a single authenticated HTTP request with the retained Bearer key. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Deactivating a ByteStash account in versions 1.5.4 through 1.6.1 does not revoke that account's API keys, so anyone holding a key minted before deactivation retains read, create, modify and delete access to the account's snippets via /api/snippets* and full tool access via /mcp, with no expiry. Exploitation is authenticated (PR:L in the assessed vector) and requires only possession of a previously issued key combined with the account having been deactivated rather than deleted, which makes deactivation - the routine offboarding and incident-containment action - silently ineffective as a revocation control. A detailed proof-of-concept reproduction is published in the vendor advisory and was validated against a local 1.6.1 instance; no in-the-wild exploitation is reported, and 1.6.2 fixes the issue by rejecting keys owned by inactive accounts and by deleting a user's keys when deactivation occurs.
RemediationAI
Vendor-released patch: ByteStash 1.6.2 (https://github.com/jordan-dalby/ByteStash/releases/tag/v1.6.2), implemented in commit eb4ecdfc30f2e7d1424137fa7fe3a9eed663218b, which adds the account-status predicate to validateApiKey (WHERE ak.key = ? AND ak.is_active = 1 AND COALESCE(u.is_active, 1) = 1) and wraps toggleUserActive in a transaction that deletes all of a user's api_keys rows whenever the account is deactivated. Note the behavioral side effect of that second change: reactivating an account does not restore its old keys, so users must mint new ones after reactivation - plan for re-issuing credentials in MCP/LLM and mobile clients that had keys pasted in. Until upgrading, the advisory's workaround is to delete a user's API keys yourself (Admin → API Keys) at the same time you deactivate them, since revoking each key individually is what actually stops it; alternatively delete the user instead of deactivating, which kills the keys because the users JOIN returns no row, at the cost of permanently removing the account and its data. Re-enabling a deactivated account without first deleting its keys leaves any previously leaked key live again, so key deletion should be treated as part of the deactivation step, not an afterthought. Full details: https://github.com/jordan-dalby/ByteStash/security/advisories/GHSA-26m9-ww2j-3cr5.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is a missing ownership-status check in the API-key validation path. validateApiKey in server/src/repositories/apiKeyRepository.js joins api_keys to users only to resolve user_id and enforces just ak.is_active - the key's own flag - never users.is_active, so a deactivated account's key still validates. Downstream, authenticateApiKey (middleware/apiKeyAuth.js) sets req.user = { id: result.userId } and calls next(), and authenticateToken short-circuits on API-key requests before any user lookup (auth.js, if (req.apiKey) return next();), so the is_active check that protects the JWT path is unreachable for key-authenticated requests; authenticateMcp (middleware/mcpAuth.js) uses the same validator, so POST /mcp inherits the identical gap. toggleUserActive in adminRepository.js flipped only users.is_active and never touched the account's keys. Deleting a user does kill their keys because the JOIN then returns no row, which makes the reversible deactivation path the sole exposed case. The vendor advisory classifies this as CWE-862 (missing authorization), while the NVD record uses CWE-613 (insufficient session expiration); either way the class is a revocation/authorization bypass rather than a memory-safety or injection flaw. Introduced with the api_keys feature in v1.5.4 and present through v1.6.1, the defect is confined to the deactivated account's own data - an API-key principal carries no username, so /api/admin/* returns 401 and there is no cross-user or administrative reach (no scope change, A:N).
Know when Bytestash gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable single request with no UI; PR:L because the attacker must hold a previously issued API key; C:L/I:L for read/modify/delete of one account's snippets, A:N, scope unchanged (no cross-account access).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-123402
GHSA-45rq-x49h-cmwp
NVD
CVE.org
EPSS
VulDB
Exploit-DB