Unratedcrates.ioPublished
Regex literal in Hurl files are not escaped when exported to HTML, allowing injections
GHSA-v33j-v3x4-42qg
- Affected
- crates.io hurl <= 6.1.1
- Fixed in
- 7.0.0· Vendor fix available
- Issue
- Given this Hurl file: regex.hurl: When exported to HTML: The regex literal /<img src="" onerror="alert('Hi!')"/ is not escaped: <span class="regex"/<img src="" onerror="alert('Hi!')"/</span</span When opened in a browser, the code is run without user interaction:
Recommended action: Upgrade to 7.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.