{
    "data_type": "CVE",
    "data_format": "MITRE",
    "data_version": "4.0",
    "CVE_data_meta": {
        "ID": "CVE-2020-7662",
        "ASSIGNER": "report@snyk.io",
        "STATE": "PUBLIC"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "n/a",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "websocket-extensions (npm)",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "All versions prior to 0.1.4"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Regular Expression Denial of Service (ReDoS)"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "name": "https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions",
                "url": "https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions"
            },
            {
                "refsource": "MISC",
                "name": "https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv",
                "url": "https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv"
            },
            {
                "refsource": "MISC",
                "name": "https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237",
                "url": "https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237"
            },
            {
                "refsource": "MISC",
                "name": "https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623",
                "url": "https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623"
            }
        ]
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. This could be abused by an attacker to conduct Regex Denial Of Service (ReDoS) on a single-threaded server by providing a malicious payload with the Sec-WebSocket-Extensions header."
            }
        ]
    }
}
