GHSA-8qw9-gf7w-42x5: Streamlit Minor Fix To Previous Patch Vulnerability
MODERATEGHSA-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
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).
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.
pip install streamlit>=1.30.0
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
GHSA-8qw9-gf7w-42x5 Affected Streamlit Versions
1 component(s)| 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?
Which Streamlit versions are affected?
What version fixes GHSA-8qw9-gf7w-42x5?
Is streamlit affected?
What is the CVSS score of GHSA-8qw9-gf7w-42x5?
What CWE is associated with GHSA-8qw9-gf7w-42x5?
How can I check PyPI dependencies for GHSA-8qw9-gf7w-42x5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}