Skip to content
OpenAdvisories
Medium · 5.9 CVE-2023-34457 EUVD-2023-0143GHSA-x456-3ccm-m6j4PYSEC-2023-108

MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form

Published Jul 5, 2023 · Updated Feb 13, 2025 · 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.

Affected products

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

ReleasePackageFixed inAdvisory
Debian 14 python-mechanicalsoup 1.3.0-1 —
Debian 13 python-mechanicalsoup 1.3.0-1 —
Debian 12 python-mechanicalsoup No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS python-mechanicalsoup No fix yet —
Ubuntu 18.04 LTS python-mechanicalsoup No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-MechanicalSoup 1.4.0-2.4 openSUSE-SU-2026:11993-1

Affected packages

EcosystemPackageAffectedFixedRecord
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

References