Update dependency matrix-js-sdk to v38 [SECURITY]#366
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
|
APK Size: 2.1 MB |
9605416 to
5feea99
Compare
5feea99 to
51f5ff9
Compare
51f5ff9 to
1aef396
Compare
1aef396 to
97cbf14
Compare
97cbf14 to
f3f35f8
Compare
f3f35f8 to
453add2
Compare
453add2 to
a443b33
Compare
a443b33 to
89f6322
Compare
89f6322 to
f5b27dc
Compare
f5b27dc to
5563c42
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^25.0.0→^38.0.0matrix-js-sdk will freeze when a user sets a room with itself as a its predecessor
CVE-2024-42369 / GHSA-vhr5-g3pm-49fm
More information
Details
Impact
A malicious homeserver can craft a room or room structure such that the predecessors form a cycle. The matrix-js-sdk's
getRoomUpgradeHistoryfunction will infinitely recurse in this case, causing the code to hang. This method is public but also called by the 'leaveRoomChain()' method, so leaving a room will also trigger the bug.Even if the CVSS score would be 4.1 (AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L) we classify this as High severity issue.
Patches
This was patched in matrix-js-sdk 34.3.1.
Workarounds
Sanity check rooms before passing them to the matrix-js-sdk or avoid calling either
getRoomUpgradeHistoryorleaveRoomChain.References
N/A.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Matrix JavaScript SDK's key history sharing could share keys to malicious devices
CVE-2024-47080 / GHSA-4jf8-g8wp-cx7c
More information
Details
Impact
In matrix-js-sdk versions 9.11.0 through 34.7.0, the method
MatrixClient.sendSharedHistoryKeysis vulnerable to interception by malicious homeservers. The method implements functionality proposed in MSC3061 and can be used by clients to share historical message keys with newly invited users, granting them access to past messages in the room.However, it unconditionally sends these "shared" keys to all of the invited user's devices, regardless of whether the user's cryptographic identity is verified or whether the user's devices are signed by that identity. This allows the attacker to potentially inject its own devices to receive sensitive historical keys without proper security checks.
Note that this only affects clients running the SDK with the legacy crypto stack. Clients using the new Rust cryptography stack (i.e. those that call
MatrixClient.initRustCrypto()instead ofMatrixClient.initCrypto()) are unaffected by this vulnerability, becauseMatrixClient.sendSharedHistoryKeys()raises an exception in such environments.Patches
Fixed in matrix-js-sdk 34.8.0 by removing the vulnerable functionality.
Workarounds
Remove use of affected functionality from clients.
References
For more information
If you have any questions or comments about this advisory, please email us at security at matrix.org.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal
CVE-2024-50336 / GHSA-xvg8-m4x3-w6xr
More information
Details
Summary
matrix-js-sdk before 34.11.0 is vulnerable to client-side path traversal via crafted MXC URIs. A malicious room member can trigger clients based on the matrix-js-sdk to issue arbitrary authenticated GET requests to the client's homeserver.
Details
The Matrix specification demands homeservers to perform validation of the
server-nameandmedia-idcomponents of MXC URIs with the intent to prevent path traversal. However, it is not mentioned that a similar check must also be performed on the client to prevent client-side path traversal. matrix-js-sdk fails to perform this validation.Patches
Fixed in matrix-js-sdk 34.11.1.
Workarounds
None.
References
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
CVE-2025-59160 / GHSA-mp7c-m3rh-r56v
More information
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::getJoinedRoomsin favour ofgetRooms()and filtering upgraded rooms separately.Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
matrix-org/matrix-js-sdk (matrix-js-sdk)
v38.2.0Compare Source
==================================================================================================
Fix CVE-2025-59160 / GHSA-mp7c-m3rh-r56v
v38.1.0Compare Source
==================================================================================================
✨ Features
org.matrix.msc4075.rtc.notification.parentrelation type (#4979). Contributed by @toger5.probablyLeftevent to the MatrixRTCSession (#4962). Contributed by @toger5.🐛 Bug Fixes
m.topicformat (#4984). Contributed by @tulir.v38.0.0Compare Source
==================================================================================================
🚨 BREAKING CHANGES
onlyData = falseIJoinRoomOpts.syncRoom✨ Features
callMembershipsForRoom(#4960). Contributed by @fkwp.v37.13.0Compare Source
====================================================================================================
This release supports new v12 Matrix rooms and consequently has a breaking change, removing powerLevelNorm from the RoomMember object as this can't be supported with infinite power levels. Apps should use the non-normalised
powerLevelinstead.🚨 BREAKING CHANGES
✨ Features
ShieldStateCode.MismatchedSender(#4916). Contributed by @richvdh.🐛 Bug Fixes
v37.12.0Compare Source
====================================================================================================
🦖 Deprecations
IJoinRoomOpts.syncRoom(#4913). Contributed by @richvdh.✨ Features
🐛 Bug Fixes
v37.11.0Compare Source
====================================================================================================
✨ Features
MatrixRTCSessionManager(#4898). Contributed by @richvdh.ClientEvent.ReceivedToDeviceMessagewith properOlmEncryptionInfosupport (#4891). Contributed by @BillCarsonFr.v37.10.0Compare Source
====================================================================================================
✨ Features
15.0.0(#4882). Contributed by @richvdh.@matrix-org/olmfrom dependency list (#4876). Contributed by @richvdh.v37.9.0Compare Source
==================================================================================================
🐛 Bug Fixes
v37.8.0Compare Source
==================================================================================================
🐛 Bug Fixes
v37.7.0Compare Source
==================================================================================================
🦖 Deprecations
MembershipConfigparameters (#4714). Contributed by @toger5.✨ Features
unknown varianton to-device sending and fall back to room event encryption. (#4847). Contributed by @toger5.v37.6.0Compare Source
==================================================================================================
🦖 Deprecations
deferin favour ofPromise.withResolvers(#4829). Contributed by @t3chguy.✨ Features
🐛 Bug Fixes
v37.5.0Compare Source
==================================================================================================
✨ Features
methodFactoryextensions from the parent to the child loggers. (#4809). Contributed by @toger5.🐛 Bug Fixes
v37.4.0Compare Source
==================================================================================================
✨ Features
toDeviceAndRoomKeyTransport(#4792). Contributed by @toger5.🐛 Bug Fixes
deleteSecretStorageinRustCrypto.resetEncryption(#4789). Contributed by @florianduros.RustCrypto.resetEncryptionfailure (#4772). Contributed by @florianduros.v37.3.0Compare Source
==================================================================================================
✨ Features
v37.2.0Compare Source
==================================================================================================
✨ Features
🐛 Bug Fixes
v37.1.0Compare Source
==================================================================================================
🦖 Deprecations
✨ Features
EventType.SecretRequestandEventType.SecretSend(#4728). Contributed by @richvdh.🐛 Bug Fixes
v37.0.0Compare Source
==================================================================================================
🚨 BREAKING CHANGES
PrefixedLoggerinterface (#4705). Contributed by @richvdh.🦖 Deprecations
✨ Features
PrefixedLoggerinterface (#4705). Contributed by @richvdh.MatrixClient.setAccountData: await remote echo. (#4695). Contributed by @richvdh.🐛 Bug Fixes
resetEncryptionto remove secrets in 4S (#4683). Contributed by @florianduros.v36.2.0Compare Source
==================================================================================================
🦖 Deprecations
models/event.ts(#4700). Contributed by @RiotRobot.✨ Features
/auth_metadataAPI (#4626). Contributed by @t3chguy.CryptoApi.resetEncryption(#4614). Contributed by @florianduros.🐛 Bug Fixes
CryptoApi.resetEncryptionshould always create a new key backup (#4648). Contributed by @florianduros.v36.1.0Compare Source
==================================================================================================
✨ Features
MatrixClient.loginand replace withloginRequest(#4632). Contributed by @richvdh.SyncCryptoCallbackapi instead of legacy crypto in sliding sync (#4624). Contributed by @florianduros./relationsendpoint on Matrix 1.10 servers (#4023). Contributed by @dbkr.🐛 Bug Fixes
v36.0.0Compare Source
==================================================================================================
🚨 BREAKING CHANGES
✨ Features
🐛 Bug Fixes
bootstrapSecretStorage(#4542). Contributed by @dbkr.v35.1.0Compare Source
==================================================================================================
This release updates matrix-sdk-crypto-wasm to fix a bug which could prevent loading stored crypto state from storage.
🐛 Bug Fixes
v35.0.0Compare Source
==================================================================================================
🚨 BREAKING CHANGES
This release contains several breaking changes which will need code changes in your app. Most notably,
initCrypto()no longer exists and has been moved to
initLegacyCrypto()in preparation for the eventual removal of Olm. You cancontinue to use legacy Olm crypto for now by calling
initLegacyCrypto()instead.You may also need to make further changes if you use more advanced APIs. See the individual PRs (listed in order of size of change) for specific APIs changed and how to migrate.
MatrixClient.initCryptointoMatrixClient.initLegacyCrypto(#4567). Contributed by @florianduros.state_after(#4487). Contributed by @dbkr.🦖 Deprecations
CryptoEvent.LegacyCryptoStoreMigrationProgresshandler (#4560). Contributed by @florianduros.✨ Features
MatrixClient.initCryptointoMatrixClient.initLegacyCrypto(#4567). Contributed by @florianduros.state_after(#4487). Contributed by @dbkr.🐛 Bug Fixes
v34.13.0Compare Source
====================================================================================================
🦖 Deprecations
MatrixClient.isEventSenderVerified(#4527). Contributed by @florianduros.restoreKeybackuptoCryptoApi. (#4476). Contributed by @florianduros.✨ Features
CryptoApi.getBackupInfo(#4512). Contributed by @florianduros.restoreKeybackuptoCryptoApi. (#4476). Contributed by @florianduros.🐛 Bug Fixes
RustBackupManagerremaining values after current backup removal (#4537). Contributed by @florianduros.v34.12.0Compare Source
====================================================================================================
🦖 Deprecations
MatrixClient.getKeyBackupVersion(#4505). Contributed by @florianduros.CryptoCallbacks(#4501). Contributed by @florianduros.✨ Features
v34.11.1Compare Source
====================================================================================================
v34.10.0Compare Source
====================================================================================================
🦖 Deprecations
CreateSecretStorageOpts.keyBackupInfoused inCryptoApi.bootstrapSecretStorage.(#4474). Contributed by @florianduros.MatrixClient.getDehydratedDevice(#4467). Contributed by @florianduros.✨ Features
<sender>|<session>notation in log messages (#4473). Contributed by @richvdh.🐛 Bug Fixes
v34.9.0Compare Source
==================================================================================================
🦖 Deprecations
🐛 Bug Fixes
v34.8.0Compare Source
==================================================================================================
This release removes insecure functionality, resolving CVE-2024-47080 / GHSA-4jf8-g8wp-cx7c.
v34.7.0Compare Source
==================================================================================================
🦖 Deprecations
✨ Features
CryptoApi.pinCurrentUserIdentityandUserIdentity.needsUserApproval(#4415). Contributed by @richvdh.v34.6.0Compare Source
==================================================================================================
🦖 Deprecations
✨ Features
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.