CVE-2022-39254Matrix-nio Project Matrix-nio
Medium 6.5
Follow: this CVE · Matrix-nio Project · Matrix-nio Project Matrix-nio We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 50
- Auth required
- Yes
- Published
- Sep 29, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
What happens
matrix-nio is a Python Matrix client library, designed according to sans I/O principles. Prior to version 0.20, when a users requests a room key from their devices, the software correctly remember the request. Once they receive a forwarded room key, they accept it without checking who the room key came from. This allows homeservers to try to insert room keys of questionable validity, potentially mounting an impersonation attack. Version 0.20 fixes the issue.
What to do
- Apply the vendor's security update for Matrix-nio.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | matrix-nio |
< 0.20 |
0.20 |
pip install "matrix-nio>=0.20" |
| PyPI | matrix-nio |
< 0.20 |
0.20 |
pip install "matrix-nio>=0.20" |
Per OSV / GitHub Advisories (GHSA-w4pr-4vjg-hffh, PYSEC-2026-842). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| matrix-nio_project | matrix-nio | < 0.20 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory