PYSEC-2026-3661

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/devpi-server/PYSEC-2026-3661.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-3661
Aliases
Published
2026-08-19T11:56:28.164114Z
Modified
2026-08-19T12:45:06.488373956Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L CVSS Calculator
Summary
devpi-server may leak database contents
Details

Impact

If the replication protocol is enabled by using the primary (or deprecated master) role for a server instance, then the +changelog URL route can be used to read the complete database content including password hashes, and the ids and salts of tokens from devpi-tokens by using a trivially modified GET request.

The leaked hashes use the argon2 algorithm, so they are not immediately at risk by brute-force methods, but dictionary attacks are feasible. If a database leak could have happened, it is advised to change the passwords after a patched version or other mitigation is in place.

When devpi-tokens is in use, the quality of the server secret is important. It might be possible to derive the server secret if actual tokens are public by using similar techniques to finding the password for a hash. If a database leak could have happened and any tokens are public, it is advised to change the server secret.

Besides the information leak this can be used to produce significant CPU, IO and bandwidth usage depending on the database size.

Patches

The logic bug causing this issue is fixed with devpi-server 6.20.2 and devpi-server 7.0.0b3.

Workarounds

When replication isn't used the role can explicitly be set to standalone.

If the server instance is exclusively served through nginx with the devpi-lockdown plugin, the request is redirected to the login form due to missing user information. There is no known exploit in this case.

References

Affected packages

PyPI / devpi-server

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.20.2

Affected versions

0.*
0.7
0.8
0.8.1
0.8.2
0.8.3
0.8.4
0.8.5
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
1.*
1.0
1.1
1.2
1.2.1
1.2.2
2.*
2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.2.0
2.2.1
2.2.2
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.5.2
2.5.3
2.6.0
2.6.1
3.*
3.0.0
3.0.1
3.0.2
3.1.0
3.1.1
3.1.2
4.*
4.0.0
4.1.0
4.1.1
4.2.0
4.2.1
4.3.0
4.3.1rc1
4.3.1
4.3.2
4.4.0
4.5.0
4.6.0
4.7.0
4.7.1
4.8.0
4.8.1
4.9.0
5.*
5.0.0
5.1.0
5.2.0
5.3.0
5.3.1
5.4.0
5.4.1
5.5.0
5.5.1
6.*
6.0.0
6.0.1
6.1.0
6.2.0
6.3.0
6.3.1
6.4.0
6.5.0
6.5.1
6.6.0
6.6.1
6.7.0
6.8.0
6.9.0
6.9.1
6.9.2
6.10.0
6.11.0
6.12.0
6.12.1
6.13.0
6.14.0
6.15.0
6.16.0
6.17.0
6.18.0
6.19.0
6.19.1
6.19.2
6.19.3
6.20.0
6.20.1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/devpi-server/PYSEC-2026-3661.yaml"