Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. shiny
  4. ›
  5. CVE-2026-108258

CVE-2026-108258: Shiny for Python has path traversal in bookmark restore

October 9, 2026

Shiny for Python’s bookmark-restore path accepted a client-supplied _state_id_ query-string value and joined it into the server-side bookmark directory (<cwd>/shiny_bookmarks/<id>) without validating it. A value containing .. path segments, or an absolute path, could therefore cause the server to open and parse input.json and values.json from a directory outside the bookmark store.

On a default application the restore was attempted whenever the client supplied a URL query string — including when bookmarking was disabled (bookmark_store="disable") — so no opt-in configuration was required. For such applications the impact is an unauthenticated, server-side probe for the existence and JSON-validity of attacker-chosen paths, constrained to those two file names.

Applications configured with bookmark_store="server" and using ui.input_file() are affected more seriously. The file-input restore handler copies files out of the restore directory, so the contents of an attacker-selected file name within an attacker-selected directory could be read into the application.

References

  • github.com/advisories/GHSA-47c3-hpmg-7j6p
  • github.com/posit-dev/py-shiny/commit/1d8ecb46cbc9621b7dc8812111d26692e086b376
  • github.com/posit-dev/py-shiny/releases/tag/v1.6.4
  • github.com/posit-dev/py-shiny/security/advisories/GHSA-47c3-hpmg-7j6p
  • nvd.nist.gov/vuln/detail/CVE-2026-108258

Code Behaviors & Features

Detect and mitigate CVE-2026-108258 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.4.0 before 1.6.4

Fixed versions

  • 1.6.4

Solution

Upgrade to version 1.6.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/shiny/CVE-2026-108258.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:33 +0000.