Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
MEDIUM severity

CVE-2021-33880 — websockets

MEDIUMFix: aaugustin/websockets@547a26b

CVE-2021-33880 is a medium-severity (CVSS 5.9) CWE-203 vulnerability in websockets. A fix is available for websockets — see the affected versions and patch details below.

Observable Timing Discrepancy in aaugustin websockets library

Also known asGHSA-8ch4-58qp-g3mpPYSEC-2021-95
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 8, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
2.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs82th percentile — riskier than 82% of all scored CVEsHighest risk
0.00%0.96%1.92%2.89%0.2%2.3%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2021-33880 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🐍websockets

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIwebsocketsall versions9.1pip install --upgrade 'websockets==9.1'

Affected Products

5 products · 5 configurations
Application
communications cloud native core policyoracle
1 version
1.14.0
Application
communications cloud native core security edge protection proxyoracle
1 version
1.5.0
Application
communications cloud native core service communication proxyoracle
1 version
1.14.0
Application
communications cloud native core unified data repositoryoracle
1 version
1.14.0
Application
websocketswebsockets_project
< 9.1
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for websockets, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update websockets to 9.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-33880 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2021-33880 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2021-33880: websockets — Fixed in 9.1