Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify network-accessible nbviewer instance with LocalFileHandler enabled
-
DeliveryDetermine configured localfile_path root string via enumeration or disclosure
-
ExploitCraft HTTP GET path targeting sibling directory sharing the root prefix
-
ExecutionSend unauthenticated request to nbviewer
-
ImpactRead 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-72125
GHSA-v7gx-3h93-r9v6
NVD
CVE.org
EPSS
VulDB
Exploit-DB