sidebar hamburger menu

FastAPI

Endless Lifecycle Support (ELS) for Libraries from TuxCare provides security fixes for FastAPI. This allows you to continue running your FastAPI applications without vulnerability concerns, even after official support has ended.

Supported FastAPI Versions

  • FastAPI 0.63.0, 0.104.1

Other versions upon request.

Connection to ELS for FastAPI Repository

This guide outlines the steps needed to integrate the TuxCare ELS for FastAPI repository.

Step 1: Get user credentials

You need a username and password in order to use TuxCare ELS for FastAPI repository. Anonymous access is disabled. To receive the credentials please contact sales@tuxcare.com.

Step 2: Set Up ELS for FastAPI

To use TuxCare's ELS for FastAPI, follow one of the options below:

Option 1: Install a Package with ELS Repository via Command Line

You can install or upgrade a package directly using the ELS repository with your credentials:

pip install --upgrade \
  -i https://<username>:<password>@nexus.repo.tuxcare.com/repository/els_python/simple \
  fastapi

Replace <username> and <password> with the credentials provided by sales.

Option 2: Configure pip to Use the ELS Repository (Full Replacement)

This method is recommended if you want to use only ELS-patched Python packages from TuxCare and replace the default PyPI source with the TuxCare ELS repository.

  1. Create or update the pip configuration file and add the following:

    [global]
    index-url = https://username:password@nexus.repo.tuxcare.com/repository/els_python/simple
  2. Run the command to install the latest package version:

    pip install --upgrade fastapi
    

    Or install a specific patched TuxCare version, for example:

    pip install fastapi==0.63.0.post1+tuxcare
    

Option 3: Add the TuxCare ELS Repository as Additional (recommended)

If you want to keep using public PyPI and fetch only specific patched packages from TuxCare, use extra-index-url instead. In this configuration, make sure to specify the exact patched version (step 2 below), otherwise pip may install the version from public PyPI.

  1. Create or update the pip configuration file and add the following:

    [global]
    extra-index-url = https://username:password@nexus.repo.tuxcare.com/repository/els_python/simple
  2. Run the command to install a specific patched TuxCare version, for example:

    pip install fastapi==0.63.0.post1+tuxcare
    

Upgrading to a Newer TuxCare Version

To upgrade to a newer TuxCare release (e.g., from version.post1+tuxcare to version.post2+tuxcare) use the same installation method you used above and specify the newer package version.

Vulnerability Exploitability eXchange (VEX)

VEX is a machine-readable format that tells you if a known vulnerability is actually exploitable in your product. It reduces false positives, helps prioritize real risks.

TuxCare provides VEX for FastAPI ELS versions: security.tuxcare.com/vex/cyclonedx/els_lang_python/fastapi/.

Resolved CVEs

Fixes for the following vulnerabilities are available in ELS for FastAPI from TuxCare versions:

CVE IDSeverityLibraryVulnerable VersionsSafe Version
CVE-2024-24762Highfastapi< 0.109.10.63.0.post2+tuxcare
CVE-2024-24762Highfastapi< 0.109.10.104.1.post1+tuxcare
CVE-2021-32677Highfastapi0.63.00.63.0.post1+tuxcare

If you are interested in the TuxCare Endless Lifecycle Support, contact sales@tuxcare.com.