Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. django-sendfile2
  4. ›
  5. GMS-2020-11

GMS-2020-11: Directory traversal outside of SENDFILE_ROOT in django-sendfile2

June 24, 2020 (updated October 24, 2026)

django-sendfile2 currently relies on the backend to correctly limit file paths to SENDFILE_ROOT. This is not the case for the simple and development backends, it is also not necessarily the case for any of the other backends either (it’s just an assumption that was made by the original author).

This will be fixed in 0.6.0 which is to be released the same day as this advisory is made public.

When upgrading, you will need to make sure SENDFILE_ROOT is set in your settings module if it wasn’t already.

References

  • github.com/advisories/GHSA-6r3c-8xf3-ggrr
  • github.com/moggers87/django-sendfile2/commit/f870c52398a55b9b5189932dd8caa24efb4bc1e1
  • github.com/moggers87/django-sendfile2/security/advisories/GHSA-6r3c-8xf3-ggrr

Code Behaviors & Features

Detect and mitigate GMS-2020-11 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.6.0

Fixed versions

  • 0.6.0

Solution

Upgrade to version 0.6.0 or above.

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/django-sendfile2/GMS-2020-11.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:07 +0000.