Skip to content
Heist/ feed
Back to feed
MediumFix available

Shiny for Python has path traversal in bookmark restore

Type: advisorySources: OSV2 source records

### Impact 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 (`/shiny_bookmarks/`) 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. ### Affected versions 1.4.0 through 1.6.3. Bookmarking was introduced in 1.4.0; earlier releases do not contain the affected code path and are not affected. ### Patches Fixed in **1.6.4**. Upgrade with: ``` pip install --upgrade shiny ``` The fix validates bookmark IDs against an allowlist — a single path segment matching `[A-Za-z0-9_-]+`, which cannot express a path separator, a `..` parent referenc

Products
shiny
Affected versions
1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.6.3
Fixed versions
1.6.4
CVEs
CVE-2026-108258
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 18:17 UTC · Revision 1

Source evidence

Shiny for Python has path traversal in bookmark restore

core-osv · Original source

Published 9 Oct 2026, 20:56 UTC

### Impact 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 (`/shiny_bookmarks/`) 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. ### Affected versions 1.4.0 through 1.6.3. Bookmarking was introduced in 1.4.0; earlier releases do not contain the affected code path and are not affected. ### Patches Fixed in **1.6.4**. Upgrade with: ``` pip install --upgrade shiny ``` The fix validates bookmark IDs against an allowlist — a single path segment matching `[A-Za-z0-9_-]+`, which cannot express a path separator, a `..` parent referenc

osv:GHSA-47c3-hpmg-7j6p

shiny

Fixed versions: 1.6.4

Complete source record
{
  "id": "611a603a4534f3ad4c507bfa0ab10e1e94c533aecb143ba430fb8d56b40d89e7",
  "url": "https://osv.dev/vulnerability/GHSA-47c3-hpmg-7j6p",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Shiny for Python has path traversal in bookmark restore",
    "summary": "### Impact 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 (`/shiny_bookmarks/`) 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. ### Affected versions 1.4.0 through 1.6.3. Bookmarking was introduced in 1.4.0; earlier releases do not contain the affected code path and are not affected. ### Patches Fixed in **1.6.4**. Upgrade with: ``` pip install --upgrade shiny ``` The fix validates bookmark IDs against an allowlist — a single path segment matching `[A-Za-z0-9_-]+`, which cannot express a path separator, a `..` parent referenc",
    "evidence": "osv:GHSA-47c3-hpmg-7j6p",
    "products": [
      {
        "name": {
          "value": "shiny",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.4",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.4.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.5.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.5.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.3",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "GHSA-47c3-hpmg-7j6p",
      "aliases": [
        "CVE-2026-108258",
        "GHSA-47c3-hpmg-7j6p",
        "PYSEC-2026-4300"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.0"
                },
                {
                  "fixed": "1.6.4"
                }
              ]
            }
          ],
          "package": {
            "name": "shiny",
            "purl": "pkg:pypi/shiny",
            "ecosystem": "PyPI"
          },
          "versions": [
            "1.4.0",
            "1.5.0",
            "1.5.1",
            "1.6.0",
            "1.6.1",
            "1.6.2",
            "1.6.3"
          ],
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-47c3-hpmg-7j6p/GHSA-47c3-hpmg-7j6p.json",
            "last_known_affected_version_range": "<= 1.6.3"
          }
        }
      ],
      "modified": "2026-10-15T14:56:16.567885576Z",
      "provider": "osv",
      "references": [
        "https://github.com/posit-dev/py-shiny/security/advisories/GHSA-47c3-hpmg-7j6p",
        "https://github.com/posit-dev/py-shiny/commit/1d8ecb46cbc9621b7dc8812111d26692e086b376",
        "https://github.com/posit-dev/py-shiny",
        "https://github.com/posit-dev/py-shiny/releases/tag/v1.6.4"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "severity": "MODERATE",
        "github_reviewed": true,
        "nvd_published_at": null,
        "github_reviewed_at": "2026-10-09T20:56:37Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-108258",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 332693,
  "published_at": "2026-10-09T20:56:37+00:00"
}

Shiny for Python has path traversal in bookmark restore

core-osv · Original source

Published 15 Oct 2026, 10:22 UTC

### Impact 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 (`/shiny_bookmarks/`) 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. ### Affected versions 1.4.0 through 1.6.3. Bookmarking was introduced in 1.4.0; earlier releases do not contain the affected code path and are not affected. ### Patches Fixed in **1.6.4**. Upgrade with: ``` pip install --upgrade shiny ``` The fix validates bookmark IDs against an allowlist — a single path segment matching `[A-Za-z0-9_-]+`, which cannot express a path separator, a `..` parent referenc

osv:PYSEC-2026-4300

shiny

Fixed versions: 1.6.4

Complete source record
{
  "id": "beccc8171592b1b86de10fb04e3ee97801ceceb0529ee517e2dd9c2401fab618",
  "url": "https://osv.dev/vulnerability/PYSEC-2026-4300",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Shiny for Python has path traversal in bookmark restore",
    "summary": "### Impact 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 (`/shiny_bookmarks/`) 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. ### Affected versions 1.4.0 through 1.6.3. Bookmarking was introduced in 1.4.0; earlier releases do not contain the affected code path and are not affected. ### Patches Fixed in **1.6.4**. Upgrade with: ``` pip install --upgrade shiny ``` The fix validates bookmark IDs against an allowlist — a single path segment matching `[A-Za-z0-9_-]+`, which cannot express a path separator, a `..` parent referenc",
    "evidence": "osv:PYSEC-2026-4300",
    "products": [
      {
        "name": {
          "value": "shiny",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.4",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.4.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.5.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.5.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.3",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "PYSEC-2026-4300",
      "aliases": [
        "CVE-2026-108258",
        "GHSA-47c3-hpmg-7j6p",
        "PYSEC-2026-4300"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.0"
                },
                {
                  "fixed": "1.6.4"
                }
              ]
            }
          ],
          "package": {
            "name": "shiny",
            "purl": "pkg:pypi/shiny",
            "ecosystem": "PyPI"
          },
          "versions": [
            "1.4.0",
            "1.5.0",
            "1.5.1",
            "1.6.0",
            "1.6.1",
            "1.6.2",
            "1.6.3"
          ],
          "database_specific": {
            "source": "https://github.com/pypa/advisory-database/blob/main/vulns/shiny/PYSEC-2026-4300.yaml"
          }
        }
      ],
      "modified": "2026-10-15T14:45:13.471383484Z",
      "provider": "osv",
      "references": [
        "https://github.com/posit-dev/py-shiny/security/advisories/GHSA-47c3-hpmg-7j6p",
        "https://github.com/posit-dev/py-shiny/commit/1d8ecb46cbc9621b7dc8812111d26692e086b376",
        "https://github.com/posit-dev/py-shiny",
        "https://github.com/posit-dev/py-shiny/releases/tag/v1.6.4",
        "https://pypi.org/project/shiny",
        "https://github.com/advisories/GHSA-47c3-hpmg-7j6p",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-108258"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-108258",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 332657,
  "published_at": "2026-10-15T10:22:55.128915+00:00"
}