{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2020-5223",
        "STATE": "PUBLIC",
        "TITLE": "Persistent XSS vulnerability in filename of attached file in PrivateBin"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "PrivateBin",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": ">= 1.2.0, < 1.2.2"
                                        },
                                        {
                                            "version_value": ">= 1.3.0, < 1.3.2"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "PrivateBin"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In PrivateBin versions 1.2.0 before 1.2.2, and 1.3.0 before 1.3.2, a persistent XSS attack is possible. Under certain conditions, a user provided attachment file name can inject HTML leading to a persistent Cross-site scripting (XSS) vulnerability. The vulnerability has been fixed in PrivateBin v1.3.2 & v1.2.2. Admins are urged to upgrade to these versions to protect the affected users."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "LOCAL",
            "availabilityImpact": "NONE",
            "baseScore": 6.1,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "LOW",
            "privilegesRequired": "HIGH",
            "scope": "CHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-79 Cross-site Scripting (XSS)"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-8j72-p2wm-6738",
                "refsource": "CONFIRM",
                "url": "https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-8j72-p2wm-6738"
            },
            {
                "name": "https://privatebin.info/news/v1.3.2-v1.2.2-release.html",
                "refsource": "MISC",
                "url": "https://privatebin.info/news/v1.3.2-v1.2.2-release.html"
            },
            {
                "name": "https://github.com/PrivateBin/PrivateBin/commit/8d0ac336d23cd8c98e71d5f21cdadcae9c8a26e6",
                "refsource": "MISC",
                "url": "https://github.com/PrivateBin/PrivateBin/commit/8d0ac336d23cd8c98e71d5f21cdadcae9c8a26e6"
            },
            {
                "name": "https://github.com/PrivateBin/PrivateBin/issues/554",
                "refsource": "MISC",
                "url": "https://github.com/PrivateBin/PrivateBin/issues/554"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-8j72-p2wm-6738",
        "discovery": "UNKNOWN"
    }
}