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

GMS-2022-3569: django-sendfile2 before 0.7.0 contains reflected file download vulnerability

August 11, 2022

Similar to CVE-2022-36359 for Django, django-sendfile2 does 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

References

  • github.com/advisories/GHSA-pcjh-6r5h-r92r
  • github.com/moggers87/django-sendfile2/commit/4c370859023292e3715200a57843f86c5ef3cd77
  • github.com/moggers87/django-sendfile2/releases/tag/v0.7.0
  • github.com/moggers87/django-sendfile2/security/advisories/GHSA-pcjh-6r5h-r92r

Code Behaviors & Features

Detect and mitigate GMS-2022-3569 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.0

Fixed versions

  • 0.7.0

Solution

Upgrade to version 0.7.0 or above.

Source file

pypi/django-sendfile2/GMS-2022-3569.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:43 +0000.