{"answers":{"affected":"3 open source packages ship an affected version, including streamlit. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-27494 in the wild and no public exploit code.","fix":"Upgrade streamlit to 0.81.0 or later.","what":"CVE-2023-27494 is a medium-severity cross-site scripting vulnerability in streamlit, published on 16 Mar 2023. 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-2023-27494 and fix it if it is affected.\n\nWhat it is: CVE-2023-27494 is a medium-severity cross-site scripting vulnerability in streamlit, published on 16 Mar 2023. 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-2023-27494 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- streamlit (PyPI): affected from 0.63.0; fixed in 0.81.0\n- streamlit (PyPI): affected from 0.63.0; fixed in 0.81.0\n- streamlit (PyPI): affected from 0.63.0; fixed in 0.81.0\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-2023-27494/ (Markdown: https://insights.sbomify.com/CVE-2023-27494/index.md)","id":"CVE-2023-27494","markdown":"https://insights.sbomify.com/CVE-2023-27494/index.md","name":"CVE-2023-27494","record":{"aliases":["GHSA-9c6g-qpgj-rvxw","PYSEC-2023-50"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Streamlit web framework","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript in users' browsers via malicious URLs in Streamlit apps, potentially leading to session hijacking or data theft.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"streamlit","vendor":"snowflake"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Streamlit, software for turning data scripts into web applications, had a cross-site scripting (XSS) vulnerability in versions 0.63.0 through 0.80.0. Users of hosted Streamlit app(s) 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. Version 0.81.0 contains a patch for this vulnerability.","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 Cross-site Scripting vulnerability","id":"CVE-2023-27494","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"Bypass of CSRF protection in the presence of predictable userInfo in @fastify/csrf-protection","id":"CVE-2023-27495"},"packages":[{"ecosystem":"PyPI","fixed":["0.81.0"],"introduced":["0.63.0"],"last_affected":[],"package":"streamlit","purl":null,"source":"GHSA-9c6g-qpgj-rvxw"},{"ecosystem":"PyPI","fixed":["0.81.0"],"introduced":["0.63.0"],"last_affected":[],"package":"streamlit","purl":"pkg:pypi/streamlit","source":"GHSA-9c6g-qpgj-rvxw"},{"ecosystem":"PyPI","fixed":["0.81.0"],"introduced":["0.63.0"],"last_affected":[],"package":"streamlit","purl":"pkg:pypi/streamlit","source":"PYSEC-2023-50"}],"prev":{"headline":"Envoy doesn't escape HTTP header values","id":"CVE-2023-27493"},"products":["streamlit"],"published":"2023-03-16","related":[{"cvss_score":6.5,"headline":"Streamlit directory traversal vulnerability","id":"CVE-2022-35918","kev_date_added":null,"published":"2022-08-01"},{"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":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-02-25","vendors":["streamlit"]},"summary":"Attackers can execute arbitrary JavaScript in users' browsers via malicious URLs in Streamlit apps, potentially leading to session hijacking or data theft.","url":"https://insights.sbomify.com/CVE-2023-27494/"}