Malicious Code Detected in fastapis-requests Package: Remote Script Execution Vulnerability

fastapis-requests Updated 06 Mar 2026

Summary

06/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1262: Malicious code in fastapis-requests (PyPI). Affects fastapis-requests versions 2.32.5. No fix is published. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The fastapis-requests package is a Python library available on PyPI that is intended to facilitate HTTP requests in FastAPI applications. It is designed to be a user-friendly wrapper around standard request functionalities, allowing developers to easily integrate API calls into their applications. However, this package has been found to clone a legitimate library while embedding malicious code that can execute remote scripts, posing a significant security risk to users.

Vulnerability Detail

The vulnerability originates from the fastapis-requests package, which contains hidden malicious code that downloads and executes a remote script from an external server. This behavior indicates a clear malicious intent, as it can lead to unauthorized access to sensitive information, data theft, or further exploitation of the affected systems. The malicious code was identified during an analysis, but the remote script it attempted to execute was no longer available at the time of the investigation. The package also exhibits characteristics of typosquatting, where it mimics a legitimate package to deceive users.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall fastapis-requests

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users should avoid using the fastapis-requests package altogether and consider using well-known and trusted libraries such as 'requests' or 'httpx' for making HTTP requests in their FastAPI applications. Example code for using the 'requests' library is as follows:

import requests

response = requests.get('https://api.example.com/data')
print(response.json())

Conclusion

The fastapis-requests package has been identified as containing malicious code that poses a serious security risk. Users are strongly advised to uninstall this package and switch to trusted alternatives to protect their applications from potential exploitation. Monitoring tools like Vulert can help ensure ongoing security against such vulnerabilities.

See every vulnerability recorded for fastapis-requests →

Share this vulnerability

FAQ

fastapis-requests is a Python library designed to simplify making HTTP requests in FastAPI applications.

The vulnerability allows malicious code to be executed remotely, which can lead to data theft or unauthorized access to your application.

You should uninstall the fastapis-requests package immediately and consider using a trusted alternative.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software by analyzing your Pipfile.lock.

Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall fastapis-requests

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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