Description
The aaugustin websockets library before 9.1 for Python has an Observable Timing Discrepancy on servers when HTTP Basic Authentication is enabled with basic_auth_protocol_factory(credentials=...). An attacker may be able to guess a password via a timing attack.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-websockets | 9.1-1 | — |
| Debian 13 | python-websockets | 9.1-1 | — |
| Debian 12 | python-websockets | 9.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-websockets | No fix yet | — |
| Ubuntu 26.04 LTS | python-websockets | No fix yet | — |
| Ubuntu 25.10 | python-websockets | No fix yet | — |
| Ubuntu 24.04 LTS | python-websockets | No fix yet | — |
| Ubuntu 22.04 LTS | python-websockets | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | python-websockets | No fix yet | — |
| Ubuntu 18.04 LTS | python-websockets | No fix yet | — |
| Ubuntu 16.04 LTS | python-websockets | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | websockets | < 9.1 | 9.1 | GHSA-8ch4-58qp-g3mp |