USN-9338-1: Haml vulnerability

Published Dec 1, 2026
·
Updated

It was discovered that Haml did not properly escape the single quote character. If Haml were made to process specially crafted input, an attacker could possibly use this issue to inject arbitrary HTML attributes and perform cross-site scripting attacks.

Affected Software

4 affected componentsFixes available
All of the following
ubuntu/ruby-haml<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/ruby-haml<4.0.7-1ubuntu0.16.04.1~esm1
4.0.7-1ubuntu0.16.04.1~esm1
Ubuntu Ubuntu=16.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/ruby-haml to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  2. Upgrade

    Upgrade ubuntu/ruby-haml to a version that resolves this vulnerability.

    Fixed in 4.0.7-1ubuntu0.16.04.1~esm1

Event History

Dec 1, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What does an attacker need to exploit this issue?

The attacker needs Haml to process specially crafted input containing single quotes. Successful exploitation could allow injection of arbitrary HTML attributes and cross-site scripting.

2

Who is exposed to the cross-site scripting risk?

Applications using the affected Ubuntu ruby-haml package may be exposed if they pass attacker-controlled or otherwise specially crafted input through Haml processing.

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