Skip to content
Fencer Intel
medium 6.1

CVE-2017-1002201 json

Haml vulnerable to cross-site scripting

published 7y ago modified last mo. 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

Is CVE-2017-1002201 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Exploit prediction

1.45% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).

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

Sources

Fencer Intel 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.