High

django-sendfile2 before 0.7.0 contains reflected file download vulnerability

  • Disclosed: 11.08.2022
  • Updated: 11.10.2026 12:18

Similar to CVE-2022-36359 for Django, django-sendfile2 did not protect against a reflected file download attack in version 0.6.1 and earlier. If the file name used by django-sendfile2 was derived from user input, then it would be possible to perform a such an attack. A new version of django-sendfile2 will be released. Either download django-sendfile2 0.7.0 as a workaround or sanitize user input yourself, using Django's patch as a template: https://github.com/django/django/commit/bd062445cffd3f6cc6dcd20d13e2abed818fa173

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) django-sendfile2 < 0.7.0 0.7.0

References

CVSS score -
Weakness (CWE)
CWE-20
Platform
Python (PyPI)
Package
django-sendfile2
Disclosed
11.08.2022
Updated
11.10.2026 12:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-pcjh-6r5h-r92r - CC BY 4.0

Vulnerability history: django-sendfile2

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
06.2020 08.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 1

Disclosures per year

  1. 2020: 1
  2. 2021: 0
  3. 2022: 1
  4. 2023: 0
  5. 2024: 0
  6. 2025: 0
  7. 2026: 0
  1. django-sendfile2 before 0.7.0 contains reflected file download vulnerability this entry
    High ghsa-pcjh-6r5h-r92r < 0.7.0 0.7.0
  2. Medium ghsa-6r3c-8xf3-ggrr < 0.6.0 0.6.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.