CVE-2017-1002201
Haml vulnerable to cross-site scripting
Reported by dwf · Published October 15, 2019
haml is fixed in 5.0.0 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| haml | RubyGems | 5.0.0 |
| haml | haml | 5.0.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| http://haml.info/ | haml | All versions prior to version 5.0.0.beta.2 |
| http://haml.info/ | haml | * |
| RubyGems | haml | 0 |
Timeline
- Oct 15, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- Oct 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-1002201
vulnetix vdb fixes CVE-2017-1002201
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-1002201/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_CONFIRM
- [debian-lts-announce] 20191110 [SECURITY] [DLA 1986-1] ruby-haml security update mailing-listx_refsource_MLIST
- GLSA-202007-27 vendor-advisoryx_refsource_GENTOO
- [debian-lts-announce] 20211229 [SECURITY] [DLA 2864-1] ruby-haml security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2017-1002201 advisory