{
    "data_type": "CVE",
    "data_format": "MITRE",
    "data_version": "4.0",
    "CVE_data_meta": {
        "ID": "CVE-2017-1002201",
        "ASSIGNER": "cve-assign@distributedweaknessfiling.org",
        "STATE": "PUBLIC"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "http://haml.info/",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "haml",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "All versions prior to version 5.0.0.beta.2"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Cross-site Scripting (XSS)"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "name": "https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2",
                "url": "https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://snyk.io/vuln/SNYK-RUBY-HAML-20362",
                "url": "https://snyk.io/vuln/SNYK-RUBY-HAML-20362"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20191110 [SECURITY] [DLA 1986-1] ruby-haml security update",
                "url": "https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202007-27",
                "url": "https://security.gentoo.org/glsa/202007-27"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20211229 [SECURITY] [DLA 2864-1] ruby-haml security update",
                "url": "https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html"
            }
        ]
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In haml versions prior to version 5.0.0.beta.2, when using user input to perform tasks on the server, characters like < > \" ' must be escaped properly. In this case, the ' character was missed. An attacker can manipulate the input to introduce additional attributes, potentially executing code."
            }
        ]
    }
}