Skip to content
Heist/ feed
Back to feed
Critical

django-s3file: Relative path traversal

Type: advisorySources: OSV

django-s3file is a lightweight file upload input for Django and Amazon S3. Prior to 7.0.2, S3FileMiddleware is vulnerable to relative path traversal attacks, where an attacker can use a modified request to escape pre-signed upload locations and have the Django application load files from random locations into request.FILES. Depending on how files are handled, this may lead to confidentiality and integrity issues. This vulnerability is fixed in 7.0.2.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-42196
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:39 UTC · Revision 1

Source evidence

django-s3file: Relative path traversal

core-osv · Original source

Published 12 May 2026, 20:58 UTC

django-s3file is a lightweight file upload input for Django and Amazon S3. Prior to 7.0.2, S3FileMiddleware is vulnerable to relative path traversal attacks, where an attacker can use a modified request to escape pre-signed upload locations and have the Django application load files from random locations into request.FILES. Depending on how files are handled, this may lead to confidentiality and integrity issues. This vulnerability is fixed in 7.0.2.

osv:CVE-2026-42196
Complete source record
{
  "id": "ca5746af74268d875fc4ec9733d8092bc70e00231061ced86d67d0f19ad33d5b",
  "url": "https://osv.dev/vulnerability/CVE-2026-42196",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "django-s3file: Relative path traversal",
    "summary": "django-s3file is a lightweight file upload input for Django and Amazon S3. Prior to 7.0.2, S3FileMiddleware is vulnerable to relative path traversal attacks, where an attacker can use a modified request to escape pre-signed upload locations and have the Django application load files from random locations into request.FILES. Depending on how files are handled, this may lead to confidentiality and integrity issues. This vulnerability is fixed in 7.0.2.",
    "evidence": "osv:CVE-2026-42196",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-42196",
      "aliases": [
        "CVE-2026-42196",
        "GHSA-67qg-7284-2277",
        "PYSEC-2026-328"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/codingjoe/django-s3file",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8fce36bddd0b622badff02c5da49fd705fb29852"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "7.0.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3"
                      },
                      {
                        "fixed": "7.0.2"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "7.0.2"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "7.0.1",
            "7.0.0",
            "6.0.1",
            "6.0.0",
            "5.5.7",
            "5.5.6",
            "5.5.5",
            "5.5.4",
            "5.5.3",
            "5.5.2",
            "5.5.1",
            "5.5.0",
            "5.4.0",
            "5.3.0",
            "5.2.0",
            "5.1.3",
            "5.1.2",
            "5.1.1",
            "5.1.0",
            "5.0.6",
            "5.0.5",
            "5.0.4",
            "5.0.3",
            "5.0.2",
            "5.0.1",
            "5.0.0",
            "4.2.0",
            "4.1.0",
            "4.0.2",
            "4.0.1",
            "4.0.0",
            "3.0.5",
            "3.0.4",
            "3.0.3",
            "3.0.2",
            "3.0.1",
            "3.0.0",
            "2.0.0",
            "1.2.1",
            "1.2.0",
            "1.1.0",
            "1.0.2",
            "1.0.1",
            "1.0.0",
            "0.6.0",
            "0.5.4",
            "0.5.3",
            "0.5.2",
            "0.5.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42196.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.476833543Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42196.json",
        "https://github.com/codingjoe/django-s3file/security/advisories/GHSA-67qg-7284-2277",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-42196"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22",
          "CWE-26"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42196.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-42196",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488679,
  "published_at": "2026-05-12T20:58:02.872+00:00"
}