CVE-2019-6802 CRLF Injection in pypiserver
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.
Which versions are affected by CVE-2019-6802?
3 open source packages ship an affected version, including pypiserver. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pypiserver PyPI | All versions | 1.2.6 |
pypiserver PyPI | All versions | 1.2.6 |
pypiserver PyPI | All versions | 1.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.