KeygraphLabs · CVE MCP

CVE-2017-1002201 · dwf

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 escaped properly. In this case, the ' character was missed. An attacker can manipulate the input to introduce additional attributes, potentially executing code.

Published 2019-10-15, last changed 2026-06-17. Weakness: CWE-79.

CVSS
6.1
medium, from NVD
EPSS
1.45%
percentile 74.4%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: haml 5.0.0 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in haml/haml by 18576ae6e9, 78e2a09d3b. Functions changed by the fix: haml_tag_if. Regression tests: test/engine_test.rb, test/pretty_engine_test.rb, test/pretty_results/just_stuff.xhtml, test/results/just_stuff.xhtml. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2019-10-15Published
2019-10-21Package advisory GHSA-r53w-g4xm-3gc6
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 1.45%
2026-12-03Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-r53w-g4xm-3gc6haml (RubyGems)5.0.0

Also known as: GHSA-r53w-g4xm-3gc6

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2017-1002201, or call /api/v1/vulnerabilities/CVE-2017-1002201. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org