{"answers":{"affected":"3 open source packages ship an affected version, including streamlit. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-35918 in the wild and no public exploit code.","fix":"Upgrade streamlit to 1.11.1 or later.","what":"CVE-2022-35918 is a medium-severity path traversal vulnerability in streamlit, published on 1 Aug 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-35918 and fix it if it is affected.\n\nWhat it is: CVE-2022-35918 is a medium-severity path traversal vulnerability in streamlit, published on 1 Aug 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-35918 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- streamlit (PyPI): affected from 0.63.0; fixed in 1.11.1\n- streamlit (PyPI): affected from 0.63.0; fixed in 1.11.1\n- streamlit (PyPI): affected from 0.63.0; fixed in 1.11.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-35918/ (Markdown: https://insights.sbomify.com/CVE-2022-35918/index.md)","id":"CVE-2022-35918","markdown":"https://insights.sbomify.com/CVE-2022-35918/index.md","name":"CVE-2022-35918","record":{"aliases":["GHSA-v4hr-4jpx-56gc","PYSEC-2022-248"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Python web framework","requires_auth":"none","summary":"Attackers can read sensitive files from the server via crafted URLs in Streamlit apps using custom components, requiring an upgrade to fix.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"streamlit","vendor":"snowflake"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Streamlit is a data oriented application development framework for python. Users hosting Streamlit app(s) that use custom components are vulnerable to a directory traversal attack that could leak data from their web server file-system such as: server logs, world readable files, and potentially other sensitive information. An attacker can craft a malicious URL with file paths and the streamlit server would process that URL and return the contents of that file. This issue has been resolved in version 1.11.1. Users are advised to upgrade. There are no known workarounds for this issue.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Streamlit directory traversal vulnerability","id":"CVE-2022-35918","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":3,"n_references":2,"next":{"headline":"Authenticated requests for server update admin API allows path traversal in minio","id":"CVE-2022-35919"},"packages":[{"ecosystem":"PyPI","fixed":["1.11.1"],"introduced":["0.63.0"],"last_affected":[],"package":"streamlit","purl":null,"source":"GHSA-v4hr-4jpx-56gc"},{"ecosystem":"PyPI","fixed":["1.11.1"],"introduced":["0.63.0"],"last_affected":[],"package":"streamlit","purl":"pkg:pypi/streamlit","source":"GHSA-v4hr-4jpx-56gc"},{"ecosystem":"PyPI","fixed":["1.11.1"],"introduced":["0.63.0"],"last_affected":[],"package":"streamlit","purl":"pkg:pypi/streamlit","source":"PYSEC-2022-248"}],"prev":{"headline":"Weakness in Transfer Validation Logic in @solana/pay","id":"CVE-2022-35917"},"products":["streamlit"],"published":"2022-08-01","related":[{"cvss_score":5.9,"headline":"Streamlit Path Traversal Security Vulnerability on Windows","id":"CVE-2024-42474","kev_date_added":null,"published":"2024-08-12"},{"cvss_score":5.9,"headline":"Streamlit Cross-site Scripting vulnerability","id":"CVE-2023-27494","kev_date_added":null,"published":"2023-03-16"},{"cvss_score":4.7,"headline":"Streamlit on Windows has Unauthenticated SSRF Vulnerability (NTLM Credential Exposure)","id":"CVE-2026-33682","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":2,"headline":"Streamlit Palette hashing.py weak hash","id":"CVE-2026-10804","kev_date_added":null,"published":"2026-06-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["streamlit"]},"summary":"Attackers can read sensitive files from the server via crafted URLs in Streamlit apps using custom components, requiring an upgrade to fix.","url":"https://insights.sbomify.com/CVE-2022-35918/"}