Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-34457
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:21 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 5 Jul 2023, 19:25 UTC

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

osv:CVE-2023-34457
Complete source record
{
  "id": "5a6fb1a140f1b6ce3fbe98d6a5f77e51f28c8735a1b065035c0c4697ac1e9a2f",
  "url": "https://osv.dev/vulnerability/CVE-2023-34457",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form",
    "summary": "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 `` 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.",
    "evidence": "osv:CVE-2023-34457",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-34457",
      "aliases": [
        "CVE-2023-34457",
        "GHSA-x456-3ccm-m6j4",
        "PYSEC-2023-108"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mechanicalsoup/mechanicalsoup",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ee34e666db1c816af54e6a1fdc4544dc10385405"
                },
                {
                  "fixed": "16238f4b726a09563150a2a818cded51ac7d7c1f"
                },
                {
                  "fixed": "d57c4a269bba3b9a0c5bfa20292955b849006d9e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.2.0"
                      },
                      {
                        "fixed": "1.3.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d57c4a269bba3b9a0c5bfa20292955b849006d9e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "16238f4b726a09563150a2a818cded51ac7d7c1f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.3.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.2.0",
            "v1.1.0",
            "v1.0.0",
            "v0.12.0",
            "v0.11.0",
            "v0.9.0",
            "v0.8.0",
            "v0.6.0",
            "v0.5.0",
            "v0.4.0",
            "v0.3.1",
            "v0.3.0",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-34457.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.285672592Z",
      "provider": "osv",
      "references": [
        "https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/34xxx/CVE-2023-34457.json",
        "https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-34457",
        "https://security.netapp.com/advisory/ntap-20230803-0005/",
        "https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/34xxx/CVE-2023-34457.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-34457",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493769,
  "published_at": "2023-07-05T19:25:35.966+00:00"
}