CVE-2023-34457: MechanicalSoup is a Python library for automating interaction with websites
CVE-2023-34457 is a medium-severity flaw (CVSS 5.9) affecting mechanicalsoup. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.9 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.1% (top 35%) |
| CISA exploited list | No |
| Weakness | CWE-20 |
| Published | 2023-07-05 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-34457?
mechanicalsoup: upgrade to 1.3.0. Exact commands for each OS are on this page.
Is CVE-2023-34457 being exploited?
CVE-2023-34457 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-34457 affect?
CVE-2023-34457 affects mechanicalsoup. Severity is medium (CVSS 5.9). 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 f
How urgent is CVE-2023-34457?
Priority 47/100. Public exploit reference; Remotely exploitable, no login, no user action