# CVE-2020-15239: Directory Traversal in xmpp-http-upload

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.5
- **CVSS:** 3.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.87% (percentile 80, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-hwv5-w8gm-fq9f, PYSEC-2020-158
- **Published:** 2020-10-06T18:21:02.000Z
- **Modified:** 2026-09-10T03:48:59.588Z

## Who should check

- Projects that depend on PyPI package xmpp-http-upload (\< 0.4.0)
- Anyone running horazont xmpp-http-upload \< 0.4.0

## Description

In xmpp-http-upload before version 0.4.0, when the GET method is attacked, attackers can read files which have a \`.data\` suffix and which are accompanied by a JSON file with the \`.meta\` suffix. This can lead to Information Disclosure and in some shared-hosting scenarios also to circumvention of authentication or other limitations on the outbound (GET) traffic. For example, in a scenario where a single server has multiple instances of the application running (with separate DATA\_ROOT settings), an attacker who has knowledge about the directory structure is able to read files from any other instance to which the process has read access. If instances have individual authentication (for example, HTTP authentication via a reverse proxy, source IP based filtering) or other restrictions (such as quotas), attackers may circumvent those limits in such a scenario by using the Directory Traversal to retrieve data from the other instances. If the associated XMPP server (or anyone knowing the SECRET\_KEY) is malicious, they can write files outside the DATA\_ROOT. The files which are written are constrained to have the \`.meta\` and the \`.data\` suffixes; the \`.meta\` file will contain the JSON with the Content-Type of the original request and the \`.data\` file will contain the payload. The issue is patched in version 0.4.0.

## Affected and fixed versions

- PyPI `xmpp-http-upload`: affected \< 0.4.0; fixed 0.4.0 (osv)
- horazont xmpp-http-upload: \< 0.4.0 (cvelist)

## Mitigation

- Upgrade xmpp-http-upload to 0.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-15239. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-15239.md
Affected: xmpp-http-upload < 0.4.0
Fixed in: 0.4.0

Steps:
1. Search this machine and project for xmpp-http-upload (PyPI), horazont xmpp-http-upload: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-15239 being exploited?

There is no confirmed exploitation: CVE-2020-15239 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.87% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-15239?

Low: CVSS 3.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2020-15239?

xmpp-http-upload \< 0.4.0.

### Is there a fix for CVE-2020-15239?

Yes. Fixed in 0.4.0. Upgrade xmpp-http-upload to 0.4.0 or later.

### How do I check if I'm affected by CVE-2020-15239?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/horazont/xmpp-http-upload/security/advisories/GHSA-hwv5-w8gm-fq9f>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-15239>
- patch: <https://github.com/horazont/xmpp-http-upload/pull/12>
- patch: <https://github.com/horazont/xmpp-http-upload/commit/82056540191e89f0cd697c81f57714c00962ed75>
- other: <https://pypi.org/project/xmpp-http-upload/#history>
- other: <https://github.com/horazont/xmpp-http-upload>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/xmpp-http-upload/PYSEC-2020-158.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-15239>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hwv5-w8gm-fq9f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-158> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-15239> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-15239>
