CVE-2026-86258: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jupyter nbviewer
Description
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.
CVSS v4.0
Score 8.2high
Affected software
jupyter
nbviewer
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in jupyter nbviewer (<=1.0.1) arises from improper pathname limitation in the LocalFileHandler.can_show() function. Instead of correctly validating file paths to restrict access within a configured root directory, the method uses a string-prefix comparison. This flawed logic enables an attacker to perform path traversal by requesting paths that share the root as a textual prefix but actually point to sibling directories outside the root. As a result, unauthorized file disclosure of notebooks and credentials is possible.
Potential Impact
An attacker without privileges can exploit this vulnerability to read arbitrary files outside the intended directory root on the server hosting nbviewer. This can lead to disclosure of sensitive information such as notebooks and credentials, potentially compromising confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid exposing vulnerable versions of nbviewer to untrusted networks or users. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-06T11:35:19.317Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9d621aacd9273b49c2097e
Added to database: 09/06/2026, 12:52:42 UTC
Last enriched: 09/25/2026, 02:47:57 UTC
Last updated: 10/22/2026, 01:15:26 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.