CVE-2026-86258
nbviewer through 1.0.1 contains a path traversal vulnerability in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/jupyter/nbviewer
- github.com/jupyter/nbviewer/blob/1.0.1/nbviewer/providers/local/handlers.py#L92-L107
- github.com/jupyter/nbviewer/commit/aad36106f72a1ca7721310c6fccc677ce4c744a5
- github.com/jupyter/nbviewer/issues/1115
- www.vulncheck.com/advisories/nbviewer-through-1.0.1-path-traversal-via-localfilehandler
- nvd.nist.gov/vuln/detail/CVE-2026-86258
- cve.org/CVERecord?id=CVE-2026-86258
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.