CVE-2017-1002201
MEDIUM 6.1CVSS 3.1Haml vulnerable to cross-site scripting
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.
- Published
- 15 Oct 2019
- Last modified
- 10 Sep 2026
- Assigned by
- josh@bress.net
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-r53w-g4xm-3gc6SNYK-RUBY-HAML-20362
- Sources
- NVDJSONOSV GHSA-r53w-g4xm-3gc6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | haml | hamlcpe:2.3:a:haml:haml:*:*:*:*:*:ruby:*:* |
< 5.0.0 | 5.0.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | RubyGems | haml | < 5.0.0 | 5.0.0 |
References
- https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 · Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html · Mailing List, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202007-27 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-RUBY-HAML-20362 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-1002201 · ADVISORY
- https://github.com/haml/haml · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/haml/CVE-2017-1002201.yml · WEB
History
- 25 Nov 2026 20:30 UTC · NVD: first stored (published 15 Oct 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Oct 2019)