Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-32622

Matrix-React-SDK is a react-based SDK for inserting a Matrix chat/voip client into a web page. Before version 3.21.0, when uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file. This can only occur after several user interactions to open the preview in a separate tab. This only impacts the local user while in the process of uploading. It cannot be exploited remotely or by other users. This vulnerability is patched in version 3.21.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-32622
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:19 UTC · Revision 1

Source evidence

CVE-2021-32622

core-osv · Original source

Published 17 May 2021, 20:15 UTC

Matrix-React-SDK is a react-based SDK for inserting a Matrix chat/voip client into a web page. Before version 3.21.0, when uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file. This can only occur after several user interactions to open the preview in a separate tab. This only impacts the local user while in the process of uploading. It cannot be exploited remotely or by other users. This vulnerability is patched in version 3.21.0.

osv:CVE-2021-32622
Complete source record
{
  "id": "16bdc82c0587328499bd344725d1cd1f304ae76e3a29c0441b3fe2b55452d482",
  "url": "https://osv.dev/vulnerability/CVE-2021-32622",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-32622",
    "summary": "Matrix-React-SDK is a react-based SDK for inserting a Matrix chat/voip client into a web page. Before version 3.21.0, when uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file. This can only occur after several user interactions to open the preview in a separate tab. This only impacts the local user while in the process of uploading. It cannot be exploited remotely or by other users. This vulnerability is patched in version 3.21.0.",
    "evidence": "osv:CVE-2021-32622",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-32622",
      "aliases": [
        "CVE-2021-32622",
        "GHSA-8796-gc9j-63rv",
        "GHSA-cg57-p69r-3m7p"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/matrix-org/matrix-react-sdk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3673292c3495a40df781edd3e7f4c510b39875dc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.21.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.21.0-rc.1",
            "v3.0.0",
            "v2.2.2",
            "v2.1.1",
            "v1.7.2",
            "v1.6.1",
            "v0.12.6",
            "v0.12.4",
            "v0.12.6-rc.1",
            "v0.12.5",
            "v0.12.4-rc.6",
            "v0.12.4-rc.5",
            "v0.12.4-rc.4",
            "v0.12.4-rc.3",
            "v0.12.4-rc.2",
            "v0.12.4-rc.1",
            "v0.10.2",
            "v0.9.1",
            "v0.9.0",
            "v0.9.0-rc.2",
            "v0.8.6-rc.2",
            "v0.8.6-rc.1",
            "v0.8.3",
            "v0.8.2",
            "v0.8.0",
            "v0.7.5-rc.1",
            "v0.7.4",
            "v0.7.3",
            "v0.7.2",
            "v0.7.0-rc2",
            "v0.7.0-rc1",
            "v0.6.5",
            "v0.6.4-r1",
            "v0.6.4",
            "v0.6.3",
            "v0.6.2",
            "v0.6.1",
            "v0.6.0",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.0",
            "v0.3.1",
            "v0.3.0",
            "v0.2.0",
            "v0.1.1",
            "v0.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32622.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:10.316189933Z",
      "provider": "osv",
      "references": [
        "https://github.com/matrix-org/matrix-react-sdk/pull/5981",
        "https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-32622",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 381375,
  "published_at": "2021-05-17T20:15:07.527+00:00"
}