CVE-2026-86258: nbviewer through 1.0.1 Path Traversal via LocalFileHandler

Published Sep 6, 2026
·
Updated

nbviewer through 1.0.1 contains a path traversal vulnerability in LocalFileHandler.canshow() 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.

Affected Software

1 affected component
jupyter nbviewer<=1.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nbviewer (LocalFileHandler) to a version that resolves this vulnerability.

    Fixed in 1.0.1
  2. Compensating control

    Apply path traversal hardening for nbviewer’s LocalFileHandler.can_show() by enforcing proper path validation (prevent sibling-directory reads outside the configured root) rather than string-prefix comparisons.

Event History

Sep 6, 2026
CVE Published
via MITRE·12:37 PM
Data Sourced
via MITRE·12:37 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using nbviewer through version 1.0.1 with the LocalFileHandler configured are exposed. Files in sibling directories may be readable when their paths share the configured root directory's textual prefix.

2

Does exploitation require authentication or user interaction?

No. The listed vector indicates network access with no privileges and no user interaction required, although exploitation has high attack complexity.

3

What information could be disclosed?

An attacker may read unintended notebooks and credentials stored in files outside the configured root, specifically in sibling directories reachable through the prefix-validation flaw.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203