Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/53111?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53111?format=api",
    "vulnerability_id": "VCID-g663-4qpc-m3gp",
    "summary": "Improper file handling in matrix-react-sdk\nMatrix-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.",
    "aliases": [
        {
            "alias": "CVE-2021-32622"
        },
        {
            "alias": "GHSA-cg57-p69r-3m7p"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/77120?format=api",
            "purl": "pkg:npm/matrix-react-sdk@3.21.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1g1f-1x88-tbg5"
                },
                {
                    "vulnerability": "VCID-3s7z-6bqr-rqd1"
                },
                {
                    "vulnerability": "VCID-e42f-h16f-gkbf"
                },
                {
                    "vulnerability": "VCID-k3ft-j7d1-nkh7"
                },
                {
                    "vulnerability": "VCID-ybpz-t956-k7fb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/matrix-react-sdk@3.21.0"
        }
    ],
    "affected_packages": [],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-32622",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.3846",
                    "published_at": "2026-05-14T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.3876",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38594",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38569",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38481",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38363",
                    "published_at": "2026-05-05T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38436",
                    "published_at": "2026-05-07T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38448",
                    "published_at": "2026-05-09T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38362",
                    "published_at": "2026-05-11T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38386",
                    "published_at": "2026-05-12T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38717",
                    "published_at": "2026-04-01T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38854",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38875",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38805",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38857",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38868",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38881",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38844",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38816",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.38862",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.00174",
                    "scoring_system": "epss",
                    "scoring_elements": "0.3884",
                    "published_at": "2026-04-18T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-32622"
        },
        {
            "reference_url": "https://github.com/matrix-org/matrix-react-sdk/pull/5981",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.2",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/matrix-org/matrix-react-sdk/pull/5981"
        },
        {
            "reference_url": "https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.2",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32622",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.2",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32622"
        },
        {
            "reference_url": "https://www.npmjs.com/package/matrix-react-sdk",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.2",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.npmjs.com/package/matrix-react-sdk"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-cg57-p69r-3m7p",
            "reference_id": "GHSA-cg57-p69r-3m7p",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-cg57-p69r-3m7p"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 434,
            "name": "Unrestricted Upload of File with Dangerous Type",
            "description": "The product allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment."
        },
        {
            "cwe_id": 74,
            "name": "Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')",
            "description": "The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component."
        }
    ],
    "exploits": [],
    "severity_range_score": "4.0 - 6.9",
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-g663-4qpc-m3gp"
}