{"id":"UBUNTU-CVE-2017-1002201","details":"In haml versions prior to version 5.0.0.beta.2, when using user input to perform tasks on the server, characters like \u003c \u003e \" ' must be escaped properly. In this case, the ' character was missed. An attacker can manipulate the input to introduce additional attributes, potentially executing code.","modified":"2025-10-24T04:46:43Z","published":"2019-10-15T18:15:00Z","upstream":["CVE-2017-1002201"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-1002201"},{"type":"REPORT","url":"https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-RUBY-HAML-20362"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-1002201"}],"affected":[{"package":{"name":"ruby-haml","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/ruby-haml@4.0.5-2+deb8u1build0.14.04.1~esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.5-2+deb8u1build0.14.04.1~esm1"}]}],"versions":["4.0.3-3","4.0.5-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.0.5-2+deb8u1build0.14.04.1~esm1","binary_name":"ruby-haml"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-1002201.json"}},{"package":{"name":"ruby-haml","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-haml@4.0.7-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.6-1","4.0.7-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.0.7-1","binary_name":"ruby-haml"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-1002201.json"}},{"package":{"name":"ruby-haml","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-haml@4.0.7-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.7-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.0.7-1","binary_name":"ruby-haml"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-1002201.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}