Intel

AIKIDO-2026-598356

matrix-synapse is vulnerable to Improper Handling of Exceptional Conditions

Improper Handling of Exceptional ConditionsGHSA-95fh-hv8c-chvq Published 4 days ago

76

High Risk

This Affects:

PYTHONmatrix-synapse
0.0.1 - 1.157.1
Fixed in 1.157.2
Are you affected? Scan for Free

TL;DR

For some client requests concerning remote users or rooms belonging to a malicious homeserver, Synapse makes federation requests and forwards the received errors directly back to the client. A malicious homeserver can return an unauthorized error that makes the client believe its own access token is invalid, causing it to log out and destroy its cryptographic state. Users without another client or key backup can irreversibly lose encrypted message history. The fix rewrites forwarded upstream errors and forbids the sensitive token errcode from being relayed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your homeserver participates in open federation.

Background info

matrix-synapse is vulnerable to Improper Handling of Exceptional Conditions in versions 0.0.1 - 1.157.1.

How to fix this

Upgrade the matrix-synapse library to the patch version.