# CVE-2023-34457: MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-07-05T19:25:35.966Z
- Modified: 2026-09-10T03:49:57.413Z
- Also known as: GHSA-x456-3ccm-m6j4, PYSEC-2023-108
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- MechanicalSoup MechanicalSoup: >= 0.2.0, < 1.3.0
- mechanicalsoup_project mechanicalsoup: from 0.2.0 before 1.3.0; before 1.3.0
- mechanicalsoup (PyPI): from 0.2.0 before 1.3.0; before d57c4a269bba3b9a0c5bfa20292955b849006d9e; before 1.3.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4> (exploit, advisory, patch, vendor-advisory, web)
- <https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e> (fix, patch, web)
- <https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0> (release-notes, web)
- <https://security.netapp.com/advisory/ntap-20230803-0005/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-34457> (advisory)
- <https://github.com/MechanicalSoup/MechanicalSoup> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mechanicalsoup/PYSEC-2023-108.yaml> (web)

## Sources

- CVE List: [CVE-2023-34457](https://www.cve.org/CVERecord?id=CVE-2023-34457), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-x456-3ccm-m6j4](https://github.com/advisories/GHSA-x456-3ccm-m6j4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-34457](https://nvd.nist.gov/vuln/detail/CVE-2023-34457), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-108](https://osv.dev/vulnerability/PYSEC-2023-108), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-34457 · Whole record: https://cve.day/CVE-2023-34457.json · Rebuilt by cve.day 2026-11-25T22:58:25.439Z
