GHSA-8qw9-gf7w-42x5: Streamlit Minor Fix To Previous Patch Vulnerability

MODERATE
CVSS 5.3
CWE-22
Published
Advisory Summary

GHSA-8qw9-gf7w-42x5 is a MODERATE (CVSS 5.3) minor fix to previous patch vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Streamlit libraries in the PyPI ecosystem. The issue involves minor fix to previous patch for cve-2022-35918. Remediation is available by upgrading affected packages to version 1.30.0.

GHSA-8qw9-gf7w-42x5 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8qw9-gf7w-42x5
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Streamlit
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-8qw9-gf7w-42x5

To remediate this vulnerability, upgrade all affected Streamlit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

streamlit fixed: 1.30.0
pip install streamlit>=1.30.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show streamlit

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-8qw9-gf7w-42x5, inspect your installed packages using pip:

pip show streamlit

Analyze the terminal output to locate any version of Streamlit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.30.0), your application is affected.

Note: The pip show streamlit command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Streamlit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The initial vulnerability identified in Streamlit apps using custom components, allowing for directory traversal attacks, was addressed in version 1.11.1. However, a minor issue persisted, which could still potentially expose certain files on the server file-system under specific conditions. ### Patches We released an update in version 1.30.0 to further tighten security measures. Users are strongly advised to update to version 1.30.0 immediately for optimal security. ### Workarounds No additional workarounds are necessary once the update to version 1.30.0 is applied. ### For more information If you have any questions or comments about this advisory: * Email us at [security@streamlit.io](mailto:security@streamlit.io)

GHSA-8qw9-gf7w-42x5 Affected Streamlit Versions

1 component(s)
Fixed Versions:
1.30.0
Product / Package Ecosystem Affected Versions Fixed Version
streamlit
PyPI
≥ 0.63.0
< 1.30.0
1.30.0

References

Frequently Asked Questions

What is GHSA-8qw9-gf7w-42x5?
GHSA-8qw9-gf7w-42x5 is a security vulnerability in Streamlit involving Minor fix to previous patch for CVE-2022-35918 under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Streamlit versions are affected?
Affected versions include releases prior to 1.30.0 across affected packages: streamlit.
What version fixes GHSA-8qw9-gf7w-42x5?
Upgrading to 1.30.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is streamlit affected?
Yes, streamlit is affected in releases prior to 1.30.0. Upgrade your dependency to 1.30.0 or later.
What is the CVSS score of GHSA-8qw9-gf7w-42x5?
GHSA-8qw9-gf7w-42x5 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-8qw9-gf7w-42x5?
GHSA-8qw9-gf7w-42x5 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for GHSA-8qw9-gf7w-42x5?
Run the dependency tree command: 'pip show streamlit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8qw9-gf7w-42x5",
  "modified" : "2026-06-30T21:41:14Z",
  "published" : "2024-01-12T17:35:21Z",
  "aliases" : [ ],
  "summary" : "Minor fix to previous patch for CVE-2022-35918",
  "details" : "### Impact\n\nThe initial vulnerability identified in Streamlit apps using custom components, allowing for directory traversal attacks, was addressed in version 1.11.1. However, a minor issue persisted, which could still potentially expose certain files on the server file-system under specific conditions.\n\n### Patches\n\nWe released an update in version 1.30.0 to further tighten security measures. Users are strongly advised to update to version 1.30.0 immediately for optimal security.\n\n### Workarounds\n\nNo additional workarounds are necessary once the update to version 1.30.0 is applied.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Email us at [security@streamlit.io](mailto:security@streamlit.io)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "streamlit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.63.0"
      }, {
        "fixed" : "1.30.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/streamlit/streamlit/security/advisories/GHSA-8qw9-gf7w-42x5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/streamlit/streamlit/commit/bd0a8996c4c7ec55b9c6557e7b168b0c13a25b90"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-v4hr-4jpx-56gc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/streamlit/streamlit"
  }, {
    "type" : "WEB",
    "url" : "https://www.cve.org/CVERecord?id=CVE-2022-35918"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T17:35:21Z",
    "nvd_published_at" : null
  }
}