Description
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.
References (2)
Core 2
Core References
Third Party Advisory x_refsource_confirm
https://github.com/poljar/matrix-nio/security/advisories/GHSA-w4pr-4vjg-hffh
Patch, Third Party Advisory x_refsource_misc
https://github.com/poljar/matrix-nio/commit/b1cbf234a831daa160673defd596e6450e9c29f0
Scores
CVSS v3
8.6
EPSS
0.0024
EPSS Percentile
47.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-287
CWE-322
Status
published
Products (2)
matrix-nio_project/matrix-nio
< 0.20
pypi/matrix-nio
0 - 0.20PyPI
Published
Sep 29, 2022
Tracked Since
Feb 18, 2026