Live threats

All CVEs / Haml

CVE-2017-1002201Haml

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
Oct 15, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Haml.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems haml < 5.0.0 5.0.0 gem "haml", ">= 5.0.0"

Per OSV / GitHub Advisories (GHSA-r53w-g4xm-3gc6). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
hamlhaml< 5.0.0
debiandebian_linux8.0
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.