{"id":"CVE-2023-34457","state":"PUBLISHED","title":"MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form","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 `<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.","publishedAt":"2023-07-05T19:25:35.966Z","updatedAt":"2025-02-13T16:55:35.658Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["MechanicalSoup MechanicalSoup"],"affected":[{"vendor":"MechanicalSoup","product":"MechanicalSoup","versions":[{"version":">= 0.2.0, < 1.3.0","status":"affected"}]}],"references":["https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4","https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e","https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0","https://security.netapp.com/advisory/ntap-20230803-0005/"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T20:06:00.499Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/34xxx/CVE-2023-34457.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-34457","state":"PUBLISHED","datePublished":"2023-07-05T19:25:35.966Z","dateUpdated":"2025-02-13T16:55:35.658Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-06-06T16:16:53.559Z"},"containers":{"cna":{"title":"MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"MechanicalSoup","product":"MechanicalSoup","versions":[{"version":">= 0.2.0, < 1.3.0","status":"affected"}]}],"references":[{"url":"https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4","name":"https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e","name":"https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e","tags":["x_refsource_MISC"]},{"url":"https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0","name":"https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20230803-0005/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"CWE-20: Improper Input Validation","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-08-03T14:06:20.059Z"},"source":{"advisory":"GHSA-x456-3ccm-m6j4","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4","name":"https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e","name":"https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0","name":"https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230803-0005/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T16:10:06.995Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"mechanicalsoup_project","product":"mechanicalsoup","defaultStatus":"unknown","versions":[{"version":"0.2.0","status":"affected","lessThan":"1.3.0","versionType":"custom"}],"cpes":["cpe:2.3:a:mechanicalsoup_project:mechanicalsoup:*:*:*:*:*:python:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-24T17:59:35.918865Z","id":"CVE-2023-34457","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-24T18:18:50.540Z"}}]}}}