# CVE-2026-134167: devpi-web before 5.2.0 Unauthenticated Path Traversal via +doc Route

Source: https://aplosec.si/cve/CVE-2026-134167/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-134167

High 8.7 · Reported · Fixed in 5.2.0 · CWE-22 · PyPI

# devpi-web before 5.2.0 Unauthenticated Path Traversal via +doc Route

CVE-2026-134167 · published 2026-11-20

In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). A fixed release is listed.

## Summary

CVE-2026-134167 affects devpi-web (PyPI) < 5.2.0: the +doc route never confines relpath to the documentation root, so an unauthenticated request reads files outside it (CWE-22). Fixed in 5.2.0. CVSS 4.0 base score 8.7 (High), assigned by VulnCheck. Published 2026-11-20 by VulnCheck. Credit: Zachariah Mithani (AploSec).

devpi-web before 5.2.0 contains an unauthenticated path traversal vulnerability in the +doc documentation route because docs_file_exists and docs_file_path in doczip.py never confine relpath to the documentation directory. Attackers can request a relpath with a leading // or percent-encoded .. segments to read server files, including the keyfs sqlite database holding password hashes.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade devpi-web to 5.2.0 or later. Releases in the affected range (< 5.2.0) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-11-20 CVE published

## References

- [Referencehttps://github.com/devpi/devpi/security/advisories/GHSA-w72q-5vww-p2rh](https://github.com/devpi/devpi/security/advisories/GHSA-w72q-5vww-p2rh)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/devpi-web-before-5.2.0-unauthenticated-path-traversal-via-doc-route](https://www.vulncheck.com/advisories/devpi-web-before-5.2.0-unauthenticated-path-traversal-via-doc-route)

- [Fix commithttps://github.com/devpi/devpi/commit/680fca1607840905dab6c54059b65ba326f46850](https://github.com/devpi/devpi/commit/680fca1607840905dab6c54059b65ba326f46850)

- [Vulnerable codehttps://github.com/devpi/devpi/blob/a67a065777d372acca968ab7b5cf362dc2ceb911/web/devpi_web/doczip.py#L78-L87](https://github.com/devpi/devpi/blob/a67a065777d372acca968ab7b5cf362dc2ceb911/web/devpi_web/doczip.py#L78-L87)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-134167](https://www.cve.org/CVERecord?id=CVE-2026-134167)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-134167](https://nvd.nist.gov/vuln/detail/CVE-2026-134167)

**Severity:** High 8.7 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-134167)

**Package:** devpi-web

**Ecosystem:** PyPI

**Affected:** < 5.2.0

**Fixed:** 5.2.0

**Weakness:** CWE-22

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
