6.1med

CVE-2017-1002201

Haml vulnerable to cross-site scripting

Also known as GHSA-r53w-g4xm-3gc6

Published 7 y ago · modified 59 d ago · JSON

CVSS
6.1
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
1.5%
percentile 74%
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.

Exploit prediction (EPSS)

1.45% probability of exploitation in the next 30 days, higher than 74% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.16.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD2.04.3AV:N/AC:M/Au:N/C:N/I:P/A:N
GitHub3.16.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

EcosystemPackageAffectedFixed in
rubygemshaml
<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 · x_refsource_MISC, x_transferred
  • snyk.io /vuln/SNYK-RUBY-HAML-20362 · x_refsource_CONFIRM, x_transferred
  • lists.debian.org /debian-lts-announce/2019/11/msg00007.html · mailing-list, x_refsource_MLIST, x_transferred
  • security.gentoo.org /glsa/202007-27 · vendor-advisory, x_refsource_GENTOO, x_transferred
  • lists.debian.org /debian-lts-announce/2021/12/msg00028.html · mailing-list, x_refsource_MLIST, x_transferred
  • 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

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.