CVE-2022-39254: matrix-nio is a Python Matrix client library, designed according to sans I/O principles
CVE-2022-39254 is a high-severity flaw (CVSS 8.6) affecting matrix-nio. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 fixe
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-39254?
matrix-nio: upgrade to 0.20. Exact commands for each OS are on this page.
Is CVE-2022-39254 being exploited?
CVE-2022-39254 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-39254 affect?
CVE-2022-39254 affects matrix-nio. Severity is high (CVSS 8.6). 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
How urgent is CVE-2022-39254?
Priority 48/100. High severity; Remotely exploitable, no login, no user action