CVE-2019-6802 CRLF Injection in pypiserver

Medium 6.1 Published Updated

Attackers can inject arbitrary HTTP headers and potentially execute XSS attacks via CRLF injection in URIs on pypiserver.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-6802?

CVE-2019-6802 is a medium-severity cross-site scripting vulnerability in n/a, published on 25 Jan 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79, CWE-74

Which versions are affected by CVE-2019-6802?

3 open source packages ship an affected version, including pypiserver. It affects 1 product.

PackageAffectedFixed in
pypiserver PyPIAll versions1.2.6
pypiserver PyPIAll versions1.2.6
pypiserver PyPIAll versions1.2.6

Products include Python Pypiserver.

How do I fix CVE-2019-6802?

Upgrade pypiserver to 1.2.6 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2019-6802 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-6802 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-mh24-7wvg-v88g, PYSEC-2019-113.

Is CVE-2019-6802 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free