{"answers":{"affected":"2 open source packages ship an affected version, including django-sendfile2.","exploited":"There is no known exploitation of GHSA-pcjh-6r5h-r92r in the wild and no public exploit code.","fix":"Upgrade django-sendfile2 to 0.7.0 or later.","what":"GHSA-pcjh-6r5h-r92r is a vulnerability in django-sendfile2, published on 11 Aug 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-pcjh-6r5h-r92r and fix it if it is affected.\n\nWhat it is: GHSA-pcjh-6r5h-r92r is a vulnerability in django-sendfile2, published on 11 Aug 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-pcjh-6r5h-r92r in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- django-sendfile2 (PyPI): affected all versions; fixed in 0.7.0\n- django-sendfile2 (PyPI): affected all versions; fixed in 0.7.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-pcjh-6r5h-r92r/ (Markdown: https://insights.sbomify.com/GHSA-pcjh-6r5h-r92r/index.md)","id":"GHSA-pcjh-6r5h-r92r","markdown":"https://insights.sbomify.com/GHSA-pcjh-6r5h-r92r/index.md","name":"GHSA-pcjh-6r5h-r92r","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python file download library","requires_auth":"none","summary":"Attackers can trick users into downloading malicious files via reflected file download if filenames derive from user input, affecting django-sendfile2 users.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"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","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"django-sendfile2 before 0.7.0 contains reflected file download vulnerability","id":"GHSA-pcjh-6r5h-r92r","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"other","year":"2022"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["0.7.0"],"introduced":["0"],"last_affected":[],"package":"django-sendfile2","purl":null,"source":"GHSA-pcjh-6r5h-r92r"},{"ecosystem":"PyPI","fixed":["0.7.0"],"introduced":["0"],"last_affected":[],"package":"django-sendfile2","purl":"pkg:pypi/django-sendfile2","source":"GHSA-pcjh-6r5h-r92r"}],"products":null,"published":"2022-08-11","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can trick users into downloading malicious files via reflected file download if filenames derive from user input, affecting django-sendfile2 users.","url":"https://insights.sbomify.com/GHSA-pcjh-6r5h-r92r/"}