{"answers":{"affected":"3 open source packages ship an affected version, including mechanicalsoup and MechanicalSoup. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34457 exists.","fix":"Upgrade mechanicalsoup to 1.3.0 or later.","what":"CVE-2023-34457 is a medium-severity vulnerability in MechanicalSoup, published on 5 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-34457 and fix it if it is affected.\n\nWhat it is: CVE-2023-34457 is a medium-severity vulnerability in MechanicalSoup, published on 5 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34457 exists.\n\nAffected packages and fixed versions:\n- mechanicalsoup (PyPI): affected all versions; fixed in 1.3.0\n- mechanicalsoup (PyPI): affected from 0.2.0; fixed in 1.3.0\n- MechanicalSoup (PyPI): affected from 0.2.0; fixed in 1.3.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-34457/ (Markdown: https://insights.sbomify.com/CVE-2023-34457/index.md)","id":"CVE-2023-34457","markdown":"https://insights.sbomify.com/CVE-2023-34457/index.md","name":"CVE-2023-34457","record":{"aliases":["DEBIAN-CVE-2023-34457","GHSA-x456-3ccm-m6j4","PYSEC-2023-108","UBUNTU-CVE-2023-34457","openSUSE-SU-2024:13499-1","openSUSE-SU-2026:11993-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web automation library","requires_auth":"none","summary":"A malicious web server can read arbitrary files on the client by exploiting file input fields in HTML forms during automated interactions.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mechanicalsoup","vendor":"mechanicalsoup_project"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"MechanicalSoup is a Python library for automating interaction with websites. Starting in version 0.2.0 and prior to version 1.3.0, a malicious web server can read arbitrary files on the client using a `\u003cinput type=\"file\" ...\u003e` inside HTML form. All users of MechanicalSoup's form submission are affected, unless they took very specific (and manual) steps to reset HTML form field values. Version 1.3.0 contains a patch for this issue.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form","id":"CVE-2023-34457","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":4,"n_references":4,"next":{"headline":"mx-chain-go's relayed transactions always increment nonce","id":"CVE-2023-34458"},"packages":[{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0.2.0"],"last_affected":[],"package":"MechanicalSoup","purl":null,"source":"GHSA-x456-3ccm-m6j4"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"mechanicalsoup","purl":"pkg:pypi/mechanicalsoup","source":"PYSEC-2023-108"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0.2.0"],"last_affected":[],"package":"mechanicalsoup","purl":"pkg:pypi/mechanicalsoup","source":"GHSA-x456-3ccm-m6j4"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.4.0-2.4"],"introduced":["0"],"last_affected":[],"package":"python-MechanicalSoup","purl":"pkg:rpm/opensuse/python-MechanicalSoup\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11993-1"}],"prev":{"headline":"snappy-java's unchecked chunk length leads to DoS","id":"CVE-2023-34455"},"products":["MechanicalSoup"],"published":"2023-07-05","related":[],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["MechanicalSoup"]},"summary":"A malicious web server can read arbitrary files on the client by exploiting file input fields in HTML forms during automated interactions.","url":"https://insights.sbomify.com/CVE-2023-34457/"}