Live threats

All CVEs / Matrix-nio Project

CVE-2022-39254Matrix-nio Project Matrix-nio

Medium 6.5

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
Weakness (CWE)
CWE-287, CWE-322
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Matrix-nio.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
matrix-nio_projectmatrix-nio< 0.20

Official sources

References

Links published by the sources. Open them with care.