The vulnerability in pyLoad (CVE-2026-75597) stems from two distinct but related issues. The primary issue is an authentication bypass in the /web/<path:filename> route, handled by the render function in src/pyload/webui/app/blueprints/app_blueprint.py. This function lacked the necessary @login_required decorator, allowing any unauthenticated user to request and render arbitrary Jinja2 templates, including sensitive ones like logs.html or info.html. This directly violates the application's access control model.
The secondary issue, which exacerbates the first, is an information disclosure vulnerability within the handle_exception_error function in src/pyload/webui/app/handlers.py. This function was designed to handle exceptions but contained a typo (exc.desc instead of exc.description or similar standard attributes). This typo caused an AttributeError to be caught, leading to the raw exception object being embedded directly into the HTTP 500 error response. When an unauthenticated user requested a template that failed to render due to missing context (e.g., settings.html), this function would leak internal Jinja2 variable names (like 'conf' is undefined), providing valuable reconnaissance to an attacker. The combination of these two flaws allowed unauthenticated attackers to bypass access controls and gather sensitive internal application details.