GHSA-mp7c-m3rh-r56v

Suggest an improvement
Source
https://github.com/advisories/GHSA-mp7c-m3rh-r56v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-mp7c-m3rh-r56v/GHSA-mp7c-m3rh-r56v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mp7c-m3rh-r56v
Aliases
Published
2025-09-16T20:18:57Z
Modified
2025-09-22T22:59:23Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
Details

Impact

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.

Patches

The issue has been patched and users should upgrade to 38.2.0.

Workarounds

Avoid using MatrixClient::getJoinedRooms in favour of getRooms() and filtering upgraded rooms separately.

Database specific
{
    "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"
}
References

Affected packages

npm / matrix-js-sdk

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
38.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-mp7c-m3rh-r56v/GHSA-mp7c-m3rh-r56v.json"