CVE-2023-34457
HIGH 7.5CVSS 3.1MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form
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.
- Published
- 5 Jul 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-x456-3ccm-m6j4PYSEC-2023-108
- Sources
- NVDJSONOSV GHSA-x456-3ccm-m6j4JSONOSV PYSEC-2023-108JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mechanicalsoup_project | mechanicalsoupcpe:2.3:a:mechanicalsoup_project:mechanicalsoup:*:*:*:*:*:python:*:* |
< 1.3.0 | 1.3.0 |
| OSV | PyPI | mechanicalsoup | >= 0.2.0, < 1.3.0 | 1.3.0 |
| OSV | PyPI | mechanicalsoup | < 1.3.0 | 1.3.0 |
References
- https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e · Patch, WEB, FIX
- https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0 · Release Notes, WEB
- https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4 · Exploit, Patch, Vendor Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 5 Jul 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Jul 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Jul 2023)