Read the docs
TI-2025-43685 Aliases GHSA-v33j-v3x4-42qg

Regex literal in Hurl files are not escaped when exported to HTML, allowing injections

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

Given this Hurl file: regex.hurl: ``` GET https://foo.com HTTP 200 [Asserts] jsonpath "$.body" matches /<img src="" onerror="alert('Hi!')">/ ``` When exported to HTML: ``` $ hurlfmt --out html regex.hurl <pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">https://foo.com</span></span> </span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span> <span class="line"><span class="section-header">[Asserts]</span></span> <span class="line"><span class="query-type">jsonpath</span> <span class="string">"$.body"</span> <span class="predicate-type">matches</span> <span class="regex">/<img src="" onerror="alert('Hi!')">/</span></span> </span></span><span class="line"></span> </code></pre> ``` 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: ![regex](https://github.com/user-attachments/assets/9c20a2ff-900f-4420-b38b-1e7648749119)

Why it matters now

Fix Fixed hurl (crates.io): 7.0.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—hurl (crates.io)before 7.0.07.0.0Patch availableGHSA-v33j-v3x4-42qg
  • hurl (crates.io) Vendor— Affected before 7.0.0 Fixed in 7.0.0 Patch available GHSA-v33j-v3x4-42qg

Remediation

  • Fix · GHSA-v33j-v3x4-42qg hurl (crates.io) Fixed in 7.0.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-v33j-v3x4-42qg

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences