CVE-2017-1002201 json
Haml vulnerable to cross-site scripting
published 2019-10-15 7 y ago modified 2026-09-10 1 mo ago also GHSA-r53w-g4xm-3gc6 , EUVD-2019-0713
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems haml 5.0.0
- haml haml 5.0.0
- ruby-haml Debian 14, Debian 13, Debian 12 5.0.4-1
debian advisories DEBIAN-CVE-2017-1002201
- ruby-haml Ubuntu Pro 14.04 LTS 4.0.5-2+deb8u1build0.14.04.1~esm1
ubuntu advisories UBUNTU-CVE-2017-1002201
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- mariadb OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 10.2.31-4.17.3
- ardana-mq OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1581024906.fbf0be3-3.16.3
- crowbar-ha OpenStack Cloud Crowbar 8 5.0+git.1574286229.e0364c3-3.29.3
- crowbar-ui OpenStack Cloud Crowbar 8 1.2.0+git.1575896697.a01a3a08-3.15.3
- keepalived OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 2.0.19-3.6.3
- ardana-heat OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1571777596.14dce6a-3.15.3
- ardana-nova OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1571846125.584d988-3.38.3
- crowbar-core OpenStack Cloud Crowbar 8 5.0+git.1582968668.1a55c77c5-3.35.4
suse advisories SUSE-SU-2020:0640-1SUSE-SU-2019:3270-1SUSE-SU-2019:2932-1
- github.com/haml/haml@18576ae commit
- snyk.io/vuln/SNYK-RUBY-HAML-20362 advisory
Exploit prediction
1.45% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-RUBY-HAML-20362 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | haml | <5.0.0 |
5.0.0 |
Affected products
- http://haml.info/ haml
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-RUBY-HAML-20362
web, exploit, patch, third-party-advisory
-
security.gentoo.org
/glsa/202007-27
vendor-advisory, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/11/msg00007.html
mailing-list, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2021/12/msg00028.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-1002201
advisory
-
github.com
/haml/haml
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/haml/CVE-2017-1002201.yml
web
Sources
- CVE List CVE-2017-1002201
- GitHub Advisory GHSA-r53w-g4xm-3gc6
- NVD CVE-2017-1002201
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.