GitHub Advisoryadvisory · crates.io

GHSA-v33j-v3x4-42qg Regex literal in Hurl files are not escaped when exported to HTML, allowing injections

MEDIUM Published 2025-06-11 Modified 2025-06-11 Official page ↗
Ecosystem
crates.io
Packages
hurl
Severity
Moderate
Reviewed
2025-06-11

Affected packages

• crates.io hurl: < 7.0.0 → fixed in 7.0.0

Description

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 GET https://foo.com HTTP 200 [Asserts] jsonpath "$.body" matches // ``` The regex literal `//` is not escaped: `//` When opened in a browser, the code is run without user interaction:

References