Skip to content
Heist/ feed
Back to feed
Medium

python-multipart — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-40347

Python-Multipart is a streaming multipart parser for Python. Versions prior to 0.0.26 have a denial of service vulnerability when parsing crafted `multipart/form-data` requests with large preamble or epilogue sections. Upgrade to version 0.0.26 or later, which skips ahead to the next boundary candidate when processing leading CR/LF data and immediately discards epilogue data after the closing boundary.

Products
python-multipart
Affected versions
0.0.20-1, 0.0.20-1.1, 0.0.26-1, 0.0.32-1, 0.0.5-2, 0.0.5-2ubuntu0.1~esm1, 0.0.5-3, 0.0.6-1, 0.0.9-1, 0.0.9-1ubuntu0.1~esm1
Fixed versions
Not specified
CVEs
CVE-2026-40347
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:44 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-40347

core-osv · Original source

Published 18 Apr 2026, 00:16 UTC

Python-Multipart is a streaming multipart parser for Python. Versions prior to 0.0.26 have a denial of service vulnerability when parsing crafted `multipart/form-data` requests with large preamble or epilogue sections. Upgrade to version 0.0.26 or later, which skips ahead to the next boundary candidate when processing leading CR/LF data and immediately discards epilogue data after the closing boundary.

osv:UBUNTU-CVE-2026-40347

python-multipart

Fixed versions: Not specified

python-multipart

Fixed versions: Not specified

python-multipart

Fixed versions: Not specified

python-multipart

Fixed versions: Not specified

python-multipart

Fixed versions: Not specified

Complete source record
{
  "id": "c46eae62ce77197c2c02753cf0f8a47c47d8d84b14dbc17fe8f50807b51523ca",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40347",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-40347",
    "summary": "Python-Multipart is a streaming multipart parser for Python. Versions prior to 0.0.26 have a denial of service vulnerability when parsing crafted `multipart/form-data` requests with large preamble or epilogue sections. Upgrade to version 0.0.26 or later, which skips ahead to the next boundary candidate when processing leading CR/LF data and immediately discards epilogue data after the closing boundary.",
    "evidence": "osv:UBUNTU-CVE-2026-40347",
    "products": [
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.5-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0.5-2ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.5-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0.6-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0.9-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0.9-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.20-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.20-1.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.0.26-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.0.32-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.20-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.0.20-1.1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-40347",
      "aliases": [
        "UBUNTU-CVE-2026-40347"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "0.0.5-2",
            "0.0.5-2ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40347.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multipart",
                "binary_version": "0.0.5-2ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "0.0.5-3",
            "0.0.6-1",
            "0.0.9-1",
            "0.0.9-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40347.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multipart",
                "binary_version": "0.0.9-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.0.20-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40347.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-python-multipart",
                "binary_version": "0.0.20-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.0.20-1.1",
            "0.0.26-1",
            "0.0.32-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40347.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-python-multipart",
                "binary_version": "0.0.32-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.0.20-1",
            "0.0.20-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40347.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-python-multipart",
                "binary_version": "0.0.20-1.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:54.296443724Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40347"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-40347",
        "https://www.cve.org/CVERecord?id=CVE-2026-40347",
        "https://github.com/Kludex/python-multipart/security/advisories/GHSA-mj87-hwqh-73pj",
        "https://github.com/Kludex/python-multipart/pull/259"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40347",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359155,
  "published_at": "2026-04-18T00:16:00+00:00"
}