matrix-js-sdk before 38.2.0 has insufficient validation of room predecessor links in MatrixClient::getJoinedRooms, allowing a remote attacker to attempt to replace a tombstoned room with an unrelated attacker-supplied room.
The issue has been patched and users should upgrade to 38.2.0.
Avoid using MatrixClient::getJoinedRooms in favour of getRooms() and filtering upgraded rooms separately.
{
"github_reviewed": true,
"nvd_published_at": "2025-09-16T17:15:41Z",
"cwe_ids": [
"CWE-20",
"CWE-345",
"CWE-862"
],
"github_reviewed_at": "2025-09-16T20:18:57Z",
"severity": "MODERATE"
}