{"id":"CVE-2022-36059","aliases":["CVE-2022-36059","GHSA-rfv9-x7hh-xc32"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype pollution in matrix-js-sdk","summary":"matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. In versions prior to 19.4.0 events sent with special strings in key places can temporarily disrupt or impede the matrix-js-sdk from functioning properly, potentially impacting the consumer's ability to process data safely. Note that the matrix-js-sdk can appear to be operating normally but be excluding or corrupting runtime data presented to the consumer. This issue has been fixed in matrix-js-sdk 19.4.0 and users are advised to upgrade. Users unable to upgrade may mitigate this issue by redacting applicable events, waiting for the sync processor to store data, and restarting the client. Alternatively, redacting the applicable events and clearing all storage will often fix most perceived issues. In some cases, no workarounds are possible.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. In versions prior to 19.4.0 events sent with special strings in key places can temporarily disrupt or impede the matrix-js-sdk from functioning properly, potentially impacting the consumer's ability to process data safely. Note that the matrix-js-sdk can appear to be operating normally but be excluding or corrupting runtime data presented to the consumer. This issue has been fixed in matrix-js-sdk 19.4.0 and users are advised to upgrade. Users unable to upgrade may mitigate this issue by redacting applicable events, waiting for the sync processor to store data, and restarting the client. Alternatively, redacting the applicable events and clearing all storage will often fix most perceived issues. In some cases, no workarounds are possible.","source":"cvelist"},{"lang":"en","text":"### Impact\nEvents sent with special strings in key places can temporarily disrupt or impede the matrix-js-sdk from functioning properly, potentially impacting the consumer's ability to process data safely. Note that the matrix-js-sdk can appear to be operating normally but be excluding or corrupting runtime data presented to the consumer.\n\n### Patches\nThis is fixed in matrix-js-sdk 19.4.0.\n\n### Workarounds\nRedacting applicable events, waiting for the sync processor to store data, and restarting the client can often fix it. Alternatively, redacting the applicable events and clearing all storage will often fix most perceived issues.\n\nIn some cases, no workarounds are possible.\n\n### References\nhttps://learn.snyk.io/lessons/prototype-pollution/javascript/\n\n### For more information\nIf you have any questions or comments about this advisory please email us at [security at matrix.org](mailto:security@matrix.org).","format":"markdown","source":"ghsa"}],"published":"2023-03-28T18:59:28.000Z","modified":"2026-06-17T04:52:49.890Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 19.4.0","status":"affected"}],"vendor":"matrix-org","product":"matrix-js-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"19.4.0"}],"ecosystem":"npm","package":"matrix-js-sdk","purl":"pkg:npm/matrix-js-sdk","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"19.4.0"}],"vendor":"matrix","product":"javascript_sdk","cpe":"cpe:2.3:a:matrix:javascript_sdk:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-rfv9-x7hh-xc32","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36059","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/matrix-org/matrix-js-sdk","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/matrix-org/matrix-js-sdk/releases/tag/v19.4.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-02-18T20:05:25.304Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36059","url":"https://www.cve.org/CVERecord?id=CVE-2022-36059","licence":"CVE Terms of Use","modified":"2025-02-18T20:05:37.448Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rfv9-x7hh-xc32","url":"https://github.com/advisories/GHSA-rfv9-x7hh-xc32","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:59.091Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36059","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36059","licence":"Public domain","modified":"2026-06-17T04:52:49.890Z"}],"updatedAt":"2026-11-25T22:58:18.955Z","epss":{"score":0.00932,"percentile":0.61775,"date":"2026-12-02T12:00:21.000Z"}}