{
    "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"
    }
}