Skip to main content

ByteStash EUVDEUVD-2026-132864

| CVE-2026-134799 LOW
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-11-22 VulnCheck GHSA-57f8-9jp5-85r9
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker starts OIDC login with own IdP account
  2. Delivery
    Capture valid withheld callback URL
  3. Exploit
    Lure victim to open callback link
  4. Execution
    Victim browser issued attacker's session cookie
  5. Persist
    Victim saves private snippet into attacker account
  6. Impact
    Attacker 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ByteStash 1.5.0 <1.6.1

Affected Packages

euvd bytestash fix: 1.6.1

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

Vendor (VulnCheck) PRIMARY 2.3 LOW
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
vuln.today AI 4.2 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche self-hosted open-source code-snippet manager, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy