Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker starts OIDC login with own IdP account
-
DeliveryCapture valid withheld callback URL
-
ExploitLure victim to open callback link
-
ExecutionVictim browser issued attacker's session cookie
-
PersistVictim saves private snippet into attacker account
-
ImpactAttacker logs in and reads snippet
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target instance has OIDC login enabled (OIDC_ENABLED=true) - the entire /api/auth/oidc/* flow does not exist otherwise, so default non-OIDC deployments are not affected. The attacker must hold a valid account on the configured identity provider to initiate a flow and obtain a usable callback URL. Exploitation is time-bounded and fragile: the captured state is valid only for the ~5-minute state lifetime and is single-use (replay of the same callback URL is rejected), and success depends on the victim actively opening the attacker-supplied callback link (UI:P / user interaction required). The damage is also inherently limited: the victim is logged into the attacker's account, so only data the victim chooses to save afterward is exposed - the victim's own pre-existing account and snippets are not compromised. |
| Impact | This is a genuinely low-priority issue whose signals are internally consistent rather than conflicting. The source CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N) yields only 2.3, and the vuln.today decision label is 'monitor' - the lowest actionable tier. The low score is driven by high attack complexity (AC:H), a required attack precondition (AT:P), mandatory victim interaction (UI:P), and only Low confidentiality/integrity impact with no availability impact. No CISA KEV entry is present, so this is not confirmed actively exploited, and no EPSS score was supplied, so widespread-exploitation probability cannot be quantified from the input (EPSS is MISSING). What elevates it above purely theoretical is that the GHSA advisory publishes a complete, Docker-based proof-of-concept with captured run output demonstrating end-to-end success. The practical ceiling is modest: this is login CSRF / session fixation that logs the victim INTO the attacker's account (the victim does not lose their own session), so the exposure is limited to data the victim subsequently saves believing it is private - not takeover of the victim's existing account. Net: a real, reproducible flaw worth patching on a normal cadence, but not an emergency; the CWE-352 CSRF mechanism and low impact match the low score with no signal contradicting another. |
| Exploit ScenarioDerived | An attacker initiates an OIDC login with their own identity-provider account, follows the redirect, and keeps the resulting /api/auth/oidc/callback URL (containing a valid single-use state) without opening it. They then lure a victim into clicking that withheld link; because the state is not bound to the initiating browser, the victim's browser is issued a session cookie for the attacker's account, and any snippet the victim then saves lands in the attacker's account where the attacker can read it. A fully working PoC with demonstrated run output is published in the GHSA advisory, though the high attack complexity (timing within a 5-minute state lifetime and required victim interaction) limits reliability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Login cross-site request forgery in ByteStash's OIDC callback handler lets an attacker who holds an account on the configured identity provider log a victim into the attacker's own ByteStash account. The attacker starts an authorization-code/PKCE flow, withholds the resulting callback URL, and lures the victim into opening it; because the state value is never bound to the browser that initiated the flow, the callback is accepted and a session cookie for the attacker's identity is issued to the victim. Affected deployments are those running ByteStash 1.5.0 through 1.6.0 with OIDC_ENABLED=true - default non-OIDC installs do not expose the /api/auth/oidc/* routes and are unaffected. A Docker-based proof-of-concept reproduction (mock IdP plus victim/attacker cookie jars) is published in the upstream GitHub advisory, but there is no confirmed report of active exploitation and no CISA KEV entry; fixes ship in ByteStash 1.6.1.
RemediationAI
Upgrade ByteStash to version 1.6.1, which is the vendor-released patch; the fix is carried in PR #384 (commit 32b8e7bc1efcd242e4fa0873657c90d08d533383) and sets a short-lived bytestash_oidc_state cookie at /api/auth/oidc/auth, path-scoped to /api/auth/oidc/callback, requiring it to match the callback state via a timing-safe comparison before the authorization-code exchange and clearing it afterwards - so a callback URL captured in one browser is rejected in another (see the release at https://github.com/jordan-dalby/ByteStash/releases/tag/v1.6.1 and the advisory at https://github.com/jordan-dalby/ByteStash/security/advisories/GHSA-8xj7-9574-4mmw). If upgrading is not immediately possible, the practical interim measure is to stop exposing the vulnerable flow by disabling OIDC (OIDC_ENABLED=false) and using ByteStash's local authentication instead; the trade-off is that any users provisioned solely through the identity provider lose their single sign-on path until 1.6.1 is deployed and OIDC is re-enabled. Note that the exposure window in the unfixed code is bounded by the roughly five-minute, single-use state, so restarting the service does not remove the weakness and is not a substitute for the update.
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
ByteStash implements the OpenID Connect authorization-code flow with PKCE. In 1.5.0 through 1.6.0, generateAuthParameters in server/src/oidc/oidcConfig.js stores the state value, PKCE code verifier and nonce in a process-wide Map keyed only by the state string, and GET /api/auth/oidc/auth sets no browser-bound cookie or session value. The callback handler in server/src/routes/oidcRoutes.js therefore accepts any request whose state parameter is present in that Map - regardless of which client started the flow - and issues the bytestash_token and bytestash_id_token cookies to the requester. This is the classic CWE-352 pattern in an OIDC integration: the state parameter exists as a CSRF token but is never bound to the initiating user agent, so it authenticates the flow rather than the browser. Constraints observed in testing: the state is single-use and expires with the roughly five-minute state lifetime, and replaying the same callback URL is rejected with a redirect to /login?error=auth_failed; a forged/unknown state is likewise rejected. The upstream fix (PR #384, commit 32b8e7bc1efcd242e4fa0873657c90d08d533383) sets a short-lived bytestash_oidc_state cookie at /api/auth/oidc/auth, path-scoped to /api/auth/oidc/callback, and requires it to match the state query value via crypto.timingSafeEqual before authorizationCodeGrant is called, clearing the cookie afterwards; the same PR also tidies an unrelated OIDC registration-gating branch. The trigger is the OIDC callback handler described above; exploitation requires OIDC_ENABLED=true and attacker possession of a valid identity-provider account.
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:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable callback with no attacker authentication (PR:N) but requiring victim interaction (UI:R) and a narrow single-use timing window plus OIDC-enabled config (AC:H); only Low confidentiality/integrity impact and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
ByteStash 1.5.0 before 1.6.1 contains a login cross-site request forgery vulnerability in the /api/auth/oidc/callback handler because OIDC state is not bound to the initiating browser. Attackers can start an OIDC login with their own account and lure victims into opening the withheld callback URL, logging them into the attacker's account to read saved snippets.
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
EUVD-2026-132864
GHSA-57f8-9jp5-85r9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB