CVE-2025-55156: PyLoad SQL Injection Vulnerability in add_links Parameter

pyload-ng Updated 14 Dec 2025

Summary

12/08/2025
Yes i
High
7.8

CVE-2025-55156: PyLoad vulnerable to SQL Injection via API /json/add_package in add_links parameter. Affects pyload-ng versions < 0.5.0b3.dev91. Fixed in 0.5.0b3.dev91. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

PyLoad is an open-source download manager that allows users to manage and automate the downloading of files from various sources. It provides features such as link management, password protection, and integration with various file hosting services. However, a vulnerability has been identified in its API, specifically in the add_links parameter, which can lead to SQL injection attacks.

Vulnerability Detail

The vulnerability arises from the improper handling of user input in the add_links parameter of the API endpoint /json/add_package. The parameter is directly incorporated into an SQL query without proper sanitization, allowing attackers to manipulate the SQL command. This can lead to unauthorized data access, modification, or deletion, potentially compromising sensitive information stored in the database.

How To Fix

Latest published version: 0.5.0b3.dev101 as of 23 Oct 2026

pip install --upgrade "pyload-ng==0.5.0b3.dev101"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.5.0b3.dev91

This is the first release that contains the fix.

pip install --upgrade "pyload-ng==0.5.0b3.dev91"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not possible, a temporary workaround involves modifying the update_link_info method to use parameterized queries instead of directly inserting user input into the SQL statement. Here is an example of how to implement this:

def update_link_info(self, data):
    """
    data is list of tuples (name, size, status, url)
    """
    self.c.executemany(
        "UPDATE links SET name=?, size=?, status=? WHERE url=? AND status IN (1,2,3,14)",
        data,
    )
    
    # Collect all URLs
    urls = [x[3] for x in data]
    
    # Create parameterized query to prevent SQL injection
    placeholders = ','.join(['?'] * len(urls))
    query = f"SELECT id FROM links WHERE url IN ({placeholders}) AND status IN (1,2,3,14)"
    self.c.execute(query, urls)
    
    ids = [int(row[0]) for row in self.c.fetchall()]
    return ids

Conclusion

The CVE-2025-55156 vulnerability in PyLoad highlights the importance of secure coding practices, particularly in handling user inputs. By updating to the latest version and implementing parameterized queries, developers can mitigate the risks associated with SQL injection attacks.

See every vulnerability recorded for pyload-ng →

Share this vulnerability

FAQ

SQL injection is a type of security vulnerability that allows an attacker to interfere with the queries that an application makes to its database. It can allow attackers to view data that they are not normally able to retrieve.

You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.

The potential impacts include unauthorized access to sensitive data, data modification, and even data deletion, which can lead to significant data loss and integrity issues.

To protect your application, always use parameterized queries or prepared statements when interacting with the database, and validate and sanitize user inputs.

Yes, the vulnerability has been patched in version 0.5.0b3.dev91 of the PyLoad package. It is recommended to update to this version or later.

Related vulnerabilities

Recent vulnerabilities recorded for pyload-ng.

How To Fix

Latest published version: 0.5.0b3.dev101 as of 23 Oct 2026

pip install --upgrade "pyload-ng==0.5.0b3.dev101"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.5.0b3.dev91

This is the first release that contains the fix.

pip install --upgrade "pyload-ng==0.5.0b3.dev91"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback