{
    "data_type": "CVE",
    "data_format": "MITRE",
    "data_version": "4.0",
    "CVE_data_meta": {
        "ASSIGNER": "report@snyk.io",
        "DATE_PUBLIC": "2021-06-24T14:55:43.418793Z",
        "ID": "CVE-2021-23398",
        "STATE": "PUBLIC",
        "TITLE": "Cross-site Scripting (XSS)"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "react-bootstrap-table",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": ">=",
                                            "version_value": "0"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "n/a"
                }
            ]
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Cross-site Scripting (XSS)"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://snyk.io/vuln/SNYK-JS-REACTBOOTSTRAPTABLE-1314285",
                "name": "https://snyk.io/vuln/SNYK-JS-REACTBOOTSTRAPTABLE-1314285"
            },
            {
                "refsource": "MISC",
                "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314286",
                "name": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314286"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/AllenFang/react-bootstrap-table/blob/26d07defab759e4f9bce22d1d568690830b8d9d7/src/TableBody.js%23L114-L118",
                "name": "https://github.com/AllenFang/react-bootstrap-table/blob/26d07defab759e4f9bce22d1d568690830b8d9d7/src/TableBody.js%23L114-L118"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/AllenFang/react-bootstrap-table/issues/2071",
                "name": "https://github.com/AllenFang/react-bootstrap-table/issues/2071"
            }
        ]
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "All versions of package react-bootstrap-table are vulnerable to Cross-site Scripting (XSS) via the dataFormat parameter. The problem is triggered when an invalid React element is returned, leading to dangerouslySetInnerHTML being used, which does not sanitize the output."
            }
        ]
    },
    "impact": {
        "cvss": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P",
            "baseScore": 6.1,
            "baseSeverity": "MEDIUM",
            "attackVector": "NETWORK",
            "attackComplexity": "LOW",
            "privilegesRequired": "NONE",
            "userInteraction": "REQUIRED",
            "scope": "CHANGED",
            "confidentialityImpact": "LOW",
            "integrityImpact": "LOW",
            "availabilityImpact": "NONE"
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "Michael Rodov"
        }
    ]
}