PYSEC-2026-320

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/dash-uploader/PYSEC-2026-320.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-320
Aliases
Published
2026-06-29T11:50:48.606509Z
Modified
2026-06-29T12:15:17.069559175Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
dash-uploader has a directory traversal vulnerability
Details

Impact

An unauthenticated path traversal vulnerability exists in dash-uploader versions 0.1.0 through 0.7.0a2. The library's HTTP request handler at dash_uploader/httprequesthandler.py reads three form parameters (upload_id, resumableFilename, resumableIdentifier) from request.form.get() and passes them directly to os.path.join() and os.makedirs() without any sanitization.

A single unauthenticated POST /API/dash-uploader request with upload_id set to a relative path (e.g. ../../etc/cron.d or ../venv/lib/python3.13/site-packages) escapes the application's uploads/ directory and writes the supplied file content to the chosen target path under the privilege of the gunicorn / WSGI process.

When the chosen target is a Python site-packages directory and the dropped file is a .pth file containing an import-prefixed line, Python's site module executes that line on the next interpreter startup, yielding remote code execution. Other escalation paths reachable from the same primitive include overwriting the running WSGI module, dropping ~/.ssh/authorized_keys, or writing JavaScript into a Dash-served assets/ directory for stored XSS.

Affected versions

All 16 published PyPI releases (0.1.0 through 0.7.0a2) are affected. The package repository was archived on 2025-07-19; no patched version exists.

Mitigation

Replace dash-uploader with an alternative file-upload component (for example, dash-resumable-upload, server-rendered <input type=\"file\"> plus a hardened Flask endpoint, or a maintained Dash community alternative). There is no upstream fix path.

While a replacement is being deployed, mitigations include:

  • Block POST /API/dash-uploader at an upstream proxy, OR
  • Run the application as an unprivileged user with no write access to its own site-packages, OR
  • Use a read-only filesystem for the application's code directories.
References

Affected packages

PyPI / dash-uploader

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.1.0
Last affected
0.7.0a2

Affected versions

0.*
0.1.0
0.1.1
0.1.2
0.2.0
0.2.3
0.2.4
0.3.0
0.3.1
0.4.0
0.4.1
0.4.2
0.5.0
0.6.0
0.6.1
0.7.0a1
0.7.0a2

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/dash-uploader/PYSEC-2026-320.yaml"