{"api_version":"1","generated_at":"2026-05-13T20:37:37+00:00","cve":"CVE-2021-21320","urls":{"html":"https://cve.report/CVE-2021-21320","api":"https://cve.report/api/cve/CVE-2021-21320.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21320","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21320"},"summary":{"title":"CVE-2021-21320","description":"matrix-react-sdk is an npm package which is a Matrix SDK for React Javascript. In matrix-react-sdk before version 3.15.0, the user content sandbox can be abused to trick users into opening unexpected documents. The content is opened with a `blob` origin that cannot access Matrix user data, so messages and secrets are not at risk. This has been fixed in version 3.15.0.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-03-02 03:15:00","updated_at":"2021-03-08 19:39:00"},"problem_types":["CWE-345"],"metrics":[],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-52mq-6jcv-j79x","name":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-52mq-6jcv-j79x","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"User content sandbox can be confused into opening arbitrary documents · Advisory · matrix-org/matrix-react-sdk · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://github.com/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1","name":"https://github.com/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Merge pull request #5657 from matrix-org/t3chguy/usercontent · matrix-org/matrix-react-sdk@b386f0c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.npmjs.com/package/matrix-react-sdk","name":"https://www.npmjs.com/package/matrix-react-sdk","refsource":"MISC","tags":["Product","Third Party Advisory"],"title":"matrix-react-sdk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/matrix-org/matrix-react-sdk/pull/5657","name":"https://github.com/matrix-org/matrix-react-sdk/pull/5657","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Remove redundant lockOrigin parameter from usercontent by t3chguy · Pull Request #5657 · matrix-org/matrix-react-sdk · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21320","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21320","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"21320","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"matrix-react-sdk_project","cpe5":"matrix-react-sdk","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21320","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"matrix-react-sdk_project","cpe5":"matrix-react-sdk","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-21320","qid":"982754","title":"Nodejs (npm) Security Update for matrix-react-sdk (GHSA-52mq-6jcv-j79x)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21320","STATE":"PUBLIC","TITLE":"User content sandbox can be confused into opening arbitrary documents"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"matrix-react-sdk","version":{"version_data":[{"version_value":"< 3.15.0"}]}}]},"vendor_name":"matrix-org"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"matrix-react-sdk is an npm package which is a Matrix SDK for React Javascript. In matrix-react-sdk before version 3.15.0, the user content sandbox can be abused to trick users into opening unexpected documents. The content is opened with a `blob` origin that cannot access Matrix user data, so messages and secrets are not at risk. This has been fixed in version 3.15.0."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":2.6,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-345 Insufficient Verification of Data Authenticity"}]}]},"references":{"reference_data":[{"name":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-52mq-6jcv-j79x","refsource":"CONFIRM","url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-52mq-6jcv-j79x"},{"name":"https://github.com/matrix-org/matrix-react-sdk/pull/5657","refsource":"MISC","url":"https://github.com/matrix-org/matrix-react-sdk/pull/5657"},{"name":"https://github.com/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1","refsource":"MISC","url":"https://github.com/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1"},{"name":"https://www.npmjs.com/package/matrix-react-sdk","refsource":"MISC","url":"https://www.npmjs.com/package/matrix-react-sdk"}]},"source":{"advisory":"GHSA-52mq-6jcv-j79x","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-03-02 03:15:00","lastModifiedDate":"2021-03-08 19:39:00","problem_types":["CWE-345"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":4.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":1.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:*","versionEndExcluding":"3.15.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21320","Ordinal":"195446","Title":"CVE-2021-21320","CVE":"CVE-2021-21320","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21320","Ordinal":"1","NoteData":"matrix-react-sdk is an npm package which is a Matrix SDK for React Javascript. In matrix-react-sdk before version 3.15.0, the user content sandbox can be abused to trick users into opening unexpected documents. The content is opened with a `blob` origin that cannot access Matrix user data, so messages and secrets are not at risk. This has been fixed in version 3.15.0.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"21320","Ordinal":"2","NoteData":"2021-03-01","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"21320","Ordinal":"3","NoteData":"2021-03-01","Type":"Other","Title":"Modified"}]}}}