{"id":"CVE-2023-34457","published":"2023-07-05T19:25:35Z","modified":"2025-02-13T16:55:35Z","title":"MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form","vendor":"MechanicalSoup","product":"MechanicalSoup","tier":"tail","description":{"text":"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 `<input type=\"file\" ...>` 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01082,"percentile":0.66028,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e","tags":["x_refsource_MISC"]},{"url":"https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20230803-0005/","tags":[]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":13.21},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"mechanicalsoup","affectedVersions":[{"vendor":"MechanicalSoup","product":"MechanicalSoup","versions":[">= 0.2.0, < 1.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-24T17:59:35.918865Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"MechanicalSoup","vulnerableRanges":[">=0.2.0, <1.3.0","<1.3.0"],"patched":["1.3.0"],"from":["GHSA-x456-3ccm-m6j4","PYSEC-2023-108"],"provenance":"source"}],"summary":{"text":"MechanicalSoup, a Python library for automating website interaction, contains an improper input validation flaw in its form submission handling. A malicious web server can exploit a file input element within an HTML form to read arbitrary files from the client machine, and this affects all users of form submission unless they manually reset the form field values.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:25Z"},"euvd":{"id":"EUVD-2023-0143","exploited":false,"provenance":"source"}}