CVE-2017-1002201: XSS

Published Oct 15, 2019
·
Updated

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.

Other sources

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.

Affected Software

4 affected componentsFixes available
rubygems/haml<5.0.0
5.0.0
haml Haml Ruby<5.0.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/haml to a version that resolves this vulnerability.

    Fixed in 5.0.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.0.0.beta.2
  3. Compensating control

    Escape user input characters <, >, ", and ' when using it to perform tasks on the server.

Event History

Oct 15, 2019
CVE Published
via MITRE·05:35 PM
Data Sourced
via MITRE·05:35 PM
DescriptionWeakness
Data Sourced
06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 21, 2019
Advisory Published
09:59 PM
Aug 25, 2023
Advisory Published
09:32 PM

Frequently Asked Questions

1

Which Haml releases are affected?

Haml versions before 5.0.0.beta.2 are affected. The issue concerns Haml's handling of single quotes in user-controlled input used in server-side tasks.

2

What does an attacker need to exploit this issue?

An attacker needs a way to supply input that is incorporated into vulnerable Haml-generated output. Exploitation also requires a user to interact with the resulting crafted content, as indicated by the UI:R vector.

3

What is the practical impact?

A crafted single quote can introduce additional attributes into generated markup and may enable code execution in the affected user's browser. The reported impact includes low confidentiality and integrity impact, with no availability impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203