Skip to main content

Jupyter nbviewer CVE-2026-86258

| EUVDEUVD-2026-72125 HIGH
Path Traversal (CWE-22)
2026-09-06 VulnCheck GHSA-v7gx-3h93-r9v6
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Identify network-accessible nbviewer instance with LocalFileHandler enabled
  2. Delivery
    Determine configured localfile_path root string via enumeration or disclosure
  3. Exploit
    Craft HTTP GET path targeting sibling directory sharing the root prefix
  4. Execution
    Send unauthenticated request to nbviewer
  5. Impact
    Read disclosed notebook or credential file content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

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 nbviewer is deployed with LocalFileHandler explicitly enabled - this is a non-default configuration used to serve notebooks from the server's local filesystem. Additionally, sibling directories to the configured localfile_path root must exist whose names begin with the same string as the root (e.g., if the configured root is /data/notebooks, a directory /data/notebooks_backup or /data/notebooks-private must be present and contain readable files of interest). The attack itself requires no authentication and no user interaction - an unauthenticated HTTP GET with a crafted path is sufficient per the CVSS 4.0 PR:N/UI:N metrics. Exploitation is bounded by: LocalFileHandler must be explicitly enabled rather than the default, sibling directories with a matching name prefix and accessible sensitive content must exist on the server, and the attacking client must have network access to the nbviewer HTTP interface.

Impact

The CVSS 4.0 base score of 8.2 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N) correctly reflects that exploitation is unauthenticated and mechanically trivial, while the AT:P (Attack Requirements: Present) metric appropriately captures that sibling directories with sensitive content must exist alongside the configured root for exploitation to yield useful data. Real-world risk is most significant for organizations that deploy nbviewer in LocalFileHandler mode on servers where credential files, proprietary notebooks, or configuration data reside in directories whose names share a prefix with the notebook root. Even a mid-sized academic or institutional deployment - such as a data science team in kielce running a shared nbviewer instance on a university compute node - should treat this as urgent if the service is network-exposed and LocalFileHandler is enabled. No KEV listing and no public POC soften the urgency relative to actively exploited issues, but the attack requires no special tooling: a standard HTTP GET with a crafted path suffices.

Exploit ScenarioDerived

An attacker identifies a publicly reachable nbviewer instance configured with LocalFileHandler pointing to /srv/notebooks. By issuing an unauthenticated HTTP GET for a crafted path such as /srv/notebooks_private/api_keys.ipynb, the bare startswith() check passes because the path textually begins with /srv/notebooks, and nbviewer serves the notebook from the sibling directory. The attacker retrieves API keys, database credentials, or proprietary analysis stored in adjacent directories without any authentication or special tooling.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 06, 2026

Path traversal in Jupyter nbviewer through version 1.0.1 allows unauthenticated remote attackers to read files from sibling directories outside the configured local file root by exploiting a string-prefix comparison flaw in LocalFileHandler.can_show(). The access control check uses Python's startswith() without anchoring on a path separator, so a configured root such as /data/notebooks inadvertently permits access to adjacent directories like /data/notebooks_backup or /data/notebooks-private. No public exploit code has been identified and the vulnerability is not listed in CISA KEV, but a patch commit is available upstream and the flaw is trivial to exploit manually.

RemediationAI

Apply the upstream fix available as commit aad36106f72a1ca7721310c6fccc677ce4c744a5 at https://github.com/jupyter/nbviewer/commit/aad36106f72a1ca7721310c6fccc677ce4c744a5. The vendor advisory confirms a patch is available, but a specific patched release tag beyond 1.0.1 is not independently confirmed from the supplied references - verify with the project releases page before deploying. As an immediate interim control, disable LocalFileHandler and configure nbviewer to serve only URL or GitHub-hosted notebooks, which eliminates the vulnerable code path entirely with no functionality loss for URL-mode deployments. Alternatively, place nbviewer behind authentication middleware such as JupyterHub or an nginx auth proxy to ensure only trusted users can submit paths. Do not rely solely on filesystem permissions as a compensating control, since the bypass occurs in application-layer logic before any OS-level access check.

Affected VersionsENISA

nbviewer 0 ≤1.0.1

Affected Packages

euvd nbviewer no fix

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

Jupyter nbviewer (CPE: cpe:2.3:a:jupyter:nbviewer:*:*:*:*:*:*:*:*) is an open-source web service for rendering Jupyter notebooks as static HTML, with a LocalFileHandler provider for serving notebooks stored on the server's local filesystem. The vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) exists at nbviewer/providers/local/handlers.py lines 92-107 in the can_show() method. The flawed check fullpath.startswith(self.localfile_path) performs bare string prefix matching rather than path-aware validation. Because the check does not anchor on a path separator, any directory whose name begins with the configured root string - but is actually a sibling directory at the same filesystem level - passes the gate. The upstream patch (commit aad36106) corrects this by constructing a separator-terminated prefix (self.localfile_path.rstrip(os.sep) + os.sep) and applying equivalent anchoring to the candidate path, ensuring only genuine subdirectories of the configured root are accessible.

Know when Nbviewer 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 8.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-accessible, no authentication required, trivial to exploit; C:H for potential credential and notebook disclosure; I:N and A:N as the flaw is read-only.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

nbviewer through 1.0.1 contains a path traversal vulnerability in LocalFileHandler.can_show() that uses string-prefix comparison instead of proper path validation. Attackers can read files from sibling directories outside the configured root by requesting paths that share the root as a textual prefix, disclosing unintended notebooks and credentials.

Technical POC Analysis

Bug class: CWE-22, Improper Limitation of a Pathname to a Restricted Directory.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

Jupyter nbviewer through version 1.0.1 inadvertently exposes files stored alongside configured notebook directories to unauthorized remote access, affecting organizations using the tool for collaborative data science and research. Attackers can exploit a simple path-matching flaw to read sensitive data, configurations, and potentially credentials without authentication.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
specialized notebook-rendering service, academic and data-science deployments only
Social Media
2
Sightings
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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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