# GHSA-pcjh-6r5h-r92r: django-sendfile2 before 0.7.0 contains reflected file download vulnerability

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-08-11T18:12:35.000Z
- Modified: 2024-12-03T06:06:56.847Z
- Weaknesses: CWE-20

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- django-sendfile2 (PyPI): before 0.7.0

## References

- <https://github.com/moggers87/django-sendfile2/security/advisories/GHSA-pcjh-6r5h-r92r> (web)
- <https://github.com/moggers87/django-sendfile2/commit/4c370859023292e3715200a57843f86c5ef3cd77> (web)
- <https://github.com/moggers87/django-sendfile2> (package)
- <https://github.com/moggers87/django-sendfile2/releases/tag/v0.7.0> (web)

## Sources

- GitHub Advisory Database: [GHSA-pcjh-6r5h-r92r](https://github.com/advisories/GHSA-pcjh-6r5h-r92r), CC-BY-4.0, modified 2024-12-03

---

Page: https://cve.day/GHSA-pcjh-6r5h-r92r · Whole record: https://cve.day/GHSA-pcjh-6r5h-r92r.json · Rebuilt by cve.day 2026-11-25T22:56:36.094Z
