CVE-2019-6802: CRLF Injection in pypiserver

pypiserver Updated 02 Oct 2025

Summary

25/01/2019
Yes i
Moderate
6.1

CVE-2019-6802: CRLF Injection in pypiserver 1.2.5 and below allows attackers to set arbitrary HTTP headers and possibly conduct XSS attacks via a %0d%0a in a URI. Affects pypiserver versions < 1.2.6. Fixed in 1.2.6. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

pypiserver is a PyPI-compatible server for serving Python packages. It allows users to host their own Python package index and easily distribute packages. This vulnerability affects pypiserver versions 1.2.5 and below. The vulnerability allows attackers to set arbitrary HTTP headers and potentially conduct XSS attacks by injecting %0d%0a (CRLF) characters in a URI.

Vulnerability Detail

The CRLF Injection vulnerability in pypiserver allows attackers to manipulate HTTP headers and potentially execute cross-site scripting (XSS) attacks. By injecting %0d%0a characters in a URI, attackers can set arbitrary headers, leading to various security risks. This vulnerability can be exploited to perform session hijacking, cache poisoning, and other malicious activities.

How To Fix

Latest published version: 2.4.2 as of 23 Oct 2026

pip install --upgrade "pypiserver==2.4.2"

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

If you need the minimum change

1.2.6

This is the first release that contains the fix.

pip install --upgrade "pypiserver==1.2.6"

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

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the latest version of pypiserver to mitigate the risk.

Conclusion

The CRLF Injection vulnerability in pypiserver can be exploited to manipulate HTTP headers and potentially conduct XSS attacks. It is crucial to upgrade to pypiserver version 1.2.6 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pypiserver →

Share this vulnerability

FAQ

pypiserver is a PyPI-compatible server for hosting Python packages.

Versions 1.2.5 and below of pypiserver are affected by this vulnerability.

This vulnerability allows attackers to manipulate HTTP headers and potentially conduct XSS attacks, leading to various security risks.

To fix this vulnerability, upgrade to pypiserver version 1.2.6 or later.

There is no known workaround for this vulnerability. It is recommended to upgrade to the latest version of pypiserver.

Related vulnerabilities

Recent vulnerabilities recorded for pypiserver.

How To Fix

Latest published version: 2.4.2 as of 23 Oct 2026

pip install --upgrade "pypiserver==2.4.2"

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

If you need the minimum change

1.2.6

This is the first release that contains the fix.

pip install --upgrade "pypiserver==1.2.6"

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