{"api_version":"1","generated_at":"2026-07-23T11:57:09+00:00","cve":"CVE-2017-1002201","urls":{"html":"https://cve.report/CVE-2017-1002201","api":"https://cve.report/api/cve/CVE-2017-1002201.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-1002201","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-1002201"},"summary":{"title":"CVE-2017-1002201","description":"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.","state":"PUBLIC","assigner":"cve-assign@distributedweaknessfiling.org","published_at":"2019-10-15 18:15:00","updated_at":"2022-04-05 20:53:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2","name":"https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2","refsource":"MISC","tags":["Patch"],"title":"Always escape `'` in Haml::Helpers.#html_escape. · haml/haml@18576ae · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202007-27","name":"GLSA-202007-27","refsource":"GENTOO","tags":[],"title":"Haml: Arbitrary code execution (GLSA 202007-27) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html","name":"[debian-lts-announce] 20191110 [SECURITY] [DLA 1986-1] ruby-haml security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 1986-1] ruby-haml security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://snyk.io/vuln/SNYK-RUBY-HAML-20362","name":"https://snyk.io/vuln/SNYK-RUBY-HAML-20362","refsource":"CONFIRM","tags":["Exploit","Patch","Third Party Advisory"],"title":"Cross-site Scripting (XSS) in haml | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html","name":"[debian-lts-announce] 20211229 [SECURITY] [DLA 2864-1] ruby-haml security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2864-1] ruby-haml security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-1002201","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1002201","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"1002201","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"1002201","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"1002201","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haml","cpe5":"haml","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"1002201","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haml","cpe5":"haml","cpe6":"5.0.0","cpe7":"-","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"1002201","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haml","cpe5":"haml","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"1002201","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haml","cpe5":"haml","cpe6":"5.0.0","cpe7":"-","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2017-1002201","qid":"178978","title":"Debian Security Update for ruby-haml (DLA 2864-1)"}]},"source_records":{"cve_program":{"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."}]}},"nvd":{"publishedDate":"2019-10-15 18:15:00","lastModifiedDate":"2022-04-05 20:53:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haml:haml:*:*:*:*:*:ruby:*:*","versionEndExcluding":"5.0.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"1002201","Ordinal":"157471","Title":"CVE-2017-1002201","CVE":"CVE-2017-1002201","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"1002201","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2017","CveId":"1002201","Ordinal":"2","NoteData":"2019-10-15","Type":"Other","Title":"Published"},{"CveYear":"2017","CveId":"1002201","Ordinal":"3","NoteData":"2021-12-29","Type":"Other","Title":"Modified"}]}}}