{"id":"CVE-2026-42196","aliases":["CVE-2026-42196","GHSA-67qg-7284-2277","PYSEC-2026-328"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n`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`\n\nDepending on how files are handled, this may lead to confidentiality and integrity issues.\n\n### Patches\nDjango-S3File urges all users to update to a patched version >=7.0.2.","format":"markdown","source":"ghsa"},{"lang":"es","text":"django-s3file es una entrada ligera de carga de archivos para Django y Amazon S3. Antes de la versión 7.0.2, S3FileMiddleware es vulnerable a ataques de salto de ruta relativo, donde un atacante puede usar una solicitud modificada para escapar de las ubicaciones de carga pre-firmadas y hacer que la aplicación Django cargue archivos desde ubicaciones aleatorias en request.FILES. Dependiendo de cómo se manejen los archivos, esto puede llevar a problemas de confidencialidad e integridad. Esta vulnerabilidad se corrige en la versión 7.0.2.","source":"nvd"}],"published":"2026-05-05T20:05:49.000Z","modified":"2026-10-27T16:30:07.533Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-22","CWE-23","CWE-26"],"affected":[{"ranges":[{"version":"< 7.0.2","status":"affected"}],"vendor":"codingjoe","product":"django-s3file","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.2"}],"ecosystem":"PyPI","package":"django-s3file","purl":"pkg:pypi/django-s3file","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.2"}],"ecosystem":"PyPI","package":"django-s3file","purl":"pkg:pypi/django-s3file","source":"pysec"}],"references":[{"url":"https://github.com/codingjoe/django-s3file/security/advisories/GHSA-67qg-7284-2277","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42196","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/codingjoe/django-s3file","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2026-328.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/django-s3file","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-67qg-7284-2277","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-13T15:03:21.971Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42196","url":"https://www.cve.org/CVERecord?id=CVE-2026-42196","licence":"CVE Terms of Use","modified":"2026-05-13T15:37:19.945Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-67qg-7284-2277","url":"https://github.com/advisories/GHSA-67qg-7284-2277","licence":"CC-BY-4.0","modified":"2026-10-27T16:30:07.533Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42196","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42196","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-328","url":"https://osv.dev/vulnerability/PYSEC-2026-328","licence":"CC-BY-4.0","modified":"2026-07-13T16:15:23.624Z"}],"updatedAt":"2026-11-25T22:59:21.504Z","epss":{"score":0.00565,"percentile":0.4828,"date":"2026-12-01T12:00:22.000Z"}}