{
    "CVE_data_meta": {
        "ASSIGNER": "security@mozilla.org",
        "ID": "CVE-2017-7840",
        "STATE": "PUBLIC"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Firefox",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_value": "57"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "Mozilla"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "JavaScript can be injected into an exported bookmarks file by placing JavaScript code into user-supplied tags in saved bookmarks. If the resulting exported HTML file is later opened in a browser this JavaScript will be executed. This could be used in social engineering and self-cross-site-scripting (self-XSS) attacks if users were convinced to add malicious tags to bookmarks, export them, and then open the resulting file. This vulnerability affects Firefox < 57."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Exported bookmarks do not strip script elements from user-supplied tags"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://bugzilla.mozilla.org/show_bug.cgi?id=1366420",
                "refsource": "CONFIRM",
                "url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1366420"
            },
            {
                "name": "https://www.mozilla.org/security/advisories/mfsa2017-24/",
                "refsource": "CONFIRM",
                "url": "https://www.mozilla.org/security/advisories/mfsa2017-24/"
            },
            {
                "name": "101832",
                "refsource": "BID",
                "url": "http://www.securityfocus.com/bid/101832"
            },
            {
                "name": "1039803",
                "refsource": "SECTRACK",
                "url": "http://www.securitytracker.com/id/1039803"
            }
        ]
    }
}