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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MechanicalSoup | MechanicalSoup | >= 0.2.0, < 1.3.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-mechanicalsoup | 1.3.0-1 | — |
| Debian 13 | python-mechanicalsoup | 1.3.0-1 | — |
| Debian 12 | python-mechanicalsoup | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-mechanicalsoup | No fix yet | — |
| Ubuntu 26.04 LTS | python-mechanicalsoup | No fix yet | — |
| Ubuntu 25.10 | python-mechanicalsoup | No fix yet | — |
| Ubuntu 24.04 LTS | python-mechanicalsoup | No fix yet | — |
| Ubuntu 22.04 LTS | python-mechanicalsoup | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | python-mechanicalsoup | No fix yet | — |
| Ubuntu 18.04 LTS | python-mechanicalsoup | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-MechanicalSoup | 1.4.0-2.4 | openSUSE-SU-2026:11993-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mechanicalsoup | >= 0.2.0, < 1.3.0 | 1.3.0 | GHSA-x456-3ccm-m6j4 |
| PyPI | mechanicalsoup | < 1.3.0 | 1.3.0 | PYSEC-2023-108 |
Advisories 1
- openSUSE-SU-2026:11993-1 python313-MechanicalSoup-1.4.0-2.4 on GA media SUSE / openSUSE Security Updates · Oct 5, 2026
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/