PyPI: streamlit
CVE-2023-27494
Safety vulnerability ID: SFTY-20230316-39879
Safety legacy ID: pyup.io-54668
Streamlit affected versions have a cross-site scripting (XSS) vulnerability. Hosted Streamlit app(s) users were vulnerable to a reflected XSS vulnerability. An attacker could craft a malicious URL with Javascript payloads to a Streamlit app. The attacker could then trick the user into visiting the malicious URL and, if successful, the server would render the malicious javascript payload as-is, leading to XSS.
Overview
Streamlit publishes previously-patched Cross-site Scripting vulnerability
Advisory
Streamlit affected versions have a cross-site scripting (XSS) vulnerability. Hosted Streamlit app(s) users were vulnerable to a reflected XSS vulnerability. An attacker could craft a malicious URL with Javascript payloads to a Streamlit app. The attacker could then trick the user into visiting the malicious URL and, if successful, the server would render the malicious javascript payload as-is, leading to XSS.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20230316-39879/CVE-2023-27494
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-27494
- https://github.com/advisories/GHSA-9c6g-qpgj-rvxw
- https://github.com/streamlit/streamlit
- https://github.com/streamlit/streamlit/commit/afcf880c60e5d7538936cc2d9721b9e1bc02b075
- https://github.com/streamlit/streamlit/security/advisories/GHSA-9c6g-qpgj-rvxw
- https://nvd.nist.gov/vuln/detail/CVE-2023-27494
- https://github.com/streamlit/streamlit/security/advisories/GHSA-9c6g-qpgj-rvxw
- https://nvd.nist.gov/vuln/detail/CVE-2023-27494
- https://github.com/streamlit/streamlit/commit/afcf880c60e5d7538936cc2d9721b9e1bc02b075
- https://github.com/pypa/advisory-database/tree/main/vulns/streamlit/PYSEC-2023-50.yaml
- https://github.com/advisories/GHSA-9c6g-qpgj-rvxw
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
