GitHub Advisoryadvisory · RubyGems
GHSA-r53w-g4xm-3gc6 Haml vulnerable to cross-site scripting
MEDIUM
Official page ↗
- Aliases
- CVE-2017-1002201
- Ecosystem
- RubyGems
- Packages
- haml
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2019-10-16
Affected packages
• RubyGems haml: < 5.0.0 → fixed in 5.0.0
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.
Related
Alias · CVE (1)
- CVE-2017-1002201 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… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-1002201 advisory
- https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 web
- https://github.com/haml/haml web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/haml/CVE-2017-1002201.yml web
- https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html web
- https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html web
- https://security.gentoo.org/glsa/202007-27 web
- https://snyk.io/vuln/SNYK-RUBY-HAML-20362 web