matrix-js-sdk is vulnerable to spoofing attacks. The vulnerability exists due to a lack of sanitization of the secret key sent during self-verification, allowing an attacker to send fake to-device messages appearing to originate from another user.
github.com/matrix-org/matrix-js-sdk/commit/a587d7c36026fe1fcf93dfff63588abee359be76
github.com/matrix-org/matrix-js-sdk/releases/tag/v19.7.0
github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-r48r-j8fx-mq2c
matrix.org/blog/2022/09/28/upgrade-now-to-address-encryption-vulns-in-matrix-sdks-and-clients
security.gentoo.org/glsa/202210-35