Pyload-ng versions up to 0.5.0 contain a critical remote code execution (RCE) vulnerability. An authenticated user can change the download folder path to a template directory and upload a crafted template file. When the application renders this file, server-side template injection occurs, allowing arbitrary code execution. Earlier versions (0.4.20) have a similar issue but require the uploaded file to have a .js extension. This vulnerability arises from unsafe use of Flask's render_template function with user-controllable templates.