Open-source package vulnerability · Rust (crates.io)
GHSA-v33j-v3x4-42qg: Regex literal in Hurl files are not escaped when exported to HTML, allowing injections
medium
Given this Hurl file: regex.hurl: When exported to HTML: The regex literal / / is not escaped: / / When opened in a browser, the code is run without user interaction:
Published Jun 11, 2025
Affected packages
hurl
- Ecosystem
- Rust (crates.io)
- Affected
- <= 6.1.1
- Fixed in
- 7.0.0
- Check
cargo tree -i hurl
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Given this Hurl file:
regex.hurl:
GET https://foo.com
HTTP 200
[Asserts]
jsonpath "$.body" matches //When exported to HTML:
$ hurlfmt --out html regex.hurl
<pre>GET https://foo.com
HTTP 200
[Asserts]
jsonpath "$.body" matches //
</pre>The regex literal // is not escaped:
//
When opened in a browser, the code is run without user interaction:
regex
References
- https://github.com/Orange-OpenSource/hurl/security/advisories/GHSA-v33j-v3x4-42qg
- https://github.com/Orange-OpenSource/hurl/commit/248ac41cfa1797c52241c6ef756490d90027cdf2
- https://github.com/Orange-OpenSource/hurl/commit/7dcdbd1796785392b1e829d1f07c6687b9a8f27d
- https://github.com/advisories/GHSA-v33j-v3x4-42qg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
