{"id":"CVE-2024-50336","aliases":["CVE-2024-50336","GHSA-xvg8-m4x3-w6xr"],"related":[],"kind":"vulnerability","state":"published","title":"matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal","summary":"matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. 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. Fixed in matrix-js-sdk 34.11.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. 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. Fixed in matrix-js-sdk 34.11.1.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nmatrix-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.\n\n### Details\n\nThe Matrix specification demands homeservers to [perform validation](https://spec.matrix.org/v1.12/client-server-api/#security-considerations-5) of the `server-name` and `media-id` components 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.\n\n### Patches\n\nFixed in matrix-js-sdk 34.11.1.\n\n### Workarounds\n\nNone.\n\n### References\n\n- https://spec.matrix.org/v1.12/client-server-api/#security-considerations-5\n- https://blog.doyensec.com/2024/07/02/cspt2csrf.html","format":"markdown","source":"ghsa"},{"lang":"es","text":"matrix-js-sdk es un SDK cliente-servidor del protocolo de mensajería Matrix para JavaScript. matrix-js-sdk anterior a la versión 34.11.0 es vulnerable a client-side path traversal a través de URI MXC manipuladas. Un miembro de sala malintencionado puede hacer que los clientes basados en matrix-js-sdk emitan solicitudes GET autenticadas arbitrarias al servidor principal del cliente. Se solucionó en matrix-js-sdk 34.11.1.","source":"nvd"}],"published":"2024-11-12T16:38:53.164Z","modified":"2026-06-17T08:04:15.457Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 34.11.1","status":"affected"}],"vendor":"matrix-org","product":"matrix-js-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"34.11.1"}],"ecosystem":"npm","package":"matrix-js-sdk","purl":"pkg:npm/matrix-js-sdk","source":"ghsa"}],"references":[{"url":"https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-xvg8-m4x3-w6xr","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://spec.matrix.org/v1.12/client-server-api/#security-considerations-5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00004.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50336","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/matrix-org/matrix-js-sdk","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-12T17:11:23.624Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50336","url":"https://www.cve.org/CVERecord?id=CVE-2024-50336","licence":"CVE Terms of Use","modified":"2025-11-03T22:28:21.121Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xvg8-m4x3-w6xr","url":"https://github.com/advisories/GHSA-xvg8-m4x3-w6xr","licence":"CC-BY-4.0","modified":"2025-11-04T16:53:54.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50336","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50336","licence":"Public domain","modified":"2026-06-17T08:04:15.457Z"}],"updatedAt":"2026-11-25T22:58:48.099Z","epss":{"score":0.00829,"percentile":0.58647,"date":"2026-12-01T12:00:22.000Z"}}