GHSA-vhj5-x93p-67jw: Actix web lab Actix-web-lab Has Host Header Poisoning Vulnerability
MODERATEGHSA-vhj5-x93p-67jw is a MODERATE (CVSS 5.4) actix-web-lab has host header poisoning vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Actix web lab libraries in the crates.io ecosystem. The issue involves actix-web-lab has host header poisoning in redirect middleware can generate attacker-controlled absolute redirects. Remediation is available by upgrading affected packages to version 0.26.0.
GHSA-vhj5-x93p-67jw at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).
How to Fix GHSA-vhj5-x93p-67jw
To remediate this vulnerability, upgrade all affected Actix web lab dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade actix-web-lab to 0.26.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for actix-web-lab
How to Check if You Are Affected
To determine whether your application is affected by GHSA-vhj5-x93p-67jw, inspect your project dependencies for Actix web lab:
inspect dependencies for actix-web-lab
Analyze the terminal output to locate any version of Actix web lab in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.26.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Actix web lab, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-vhj5-x93p-67jw Affected Actix web lab Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
actix-web-lab
|
crates.io |
< 0.26.0
|
0.26.0
|
References
Frequently Asked Questions
What is GHSA-vhj5-x93p-67jw?
Which Actix web lab versions are affected?
What version fixes GHSA-vhj5-x93p-67jw?
Is actix-web-lab affected?
What is the CVSS score of GHSA-vhj5-x93p-67jw?
What CWE is associated with GHSA-vhj5-x93p-67jw?
How can I check crates.io dependencies for GHSA-vhj5-x93p-67jw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vhj5-x93p-67jw",
"modified" : "2026-03-11T00:29:17Z",
"published" : "2026-03-11T00:29:17Z",
"aliases" : [ ],
"summary" : "actix-web-lab has host header poisoning in redirect middleware can generate attacker-controlled absolute redirects",
"details" : "### Summary\n`actix-web-lab` redirect middleware uses request-derived host information to construct absolute redirect URLs (for example, `https://{hostname}{path}`). In deployments without strict host allowlisting, an attacker can supply a malicious Host header and poison the `Location` response header, causing open redirect/phishing behavior.\n\n### CVE\nAssigned CVE ID: CVE-2025-63762\n\n### Details\nThe issue is in redirect middleware paths that construct absolute URLs from `req.connection_info()`:\n\n1. `actix-web-lab/src/redirect_to_https.rs` (around lines 119-132)\n - `let host = conn_info.host();`\n - `format!(\"https://{hostname}{path}\")`\n - `format!(\"https://{hostname}:{port}{path}\")`\n\n2. `actix-web-lab/src/redirect_to_www.rs` (around lines 30-35)\n - `format!(\"{scheme}://www.{host}{path}\")`\n\n3. `actix-web-lab/src/redirect_to_non_www.rs` (around lines 30-34)\n - `format!(\"{scheme}://{host_no_www}{path}\")`\n\nBecause host values come from request connection metadata, untrusted Host input can influence redirect targets when deployment-side host validation is missing.\n\n### PoC\nEnvironment used for validation:\n- Local minimal Actix apps using `actix-web-lab` middleware\n- RedirectHttps: `http://127.0.0.1:18080`\n- redirect_to_www: `http://127.0.0.1:18081`\n- redirect_to_non_www: `http://127.0.0.1:18082`\n\nReproduction (RedirectHttps):\n```bash\ncurl.exe -i -s \"http://127.0.0.1:18080/test\" -H \"Host: attacker.example\"\n```\n\nObserved response:\n```http\nHTTP/1.1 307 Temporary Redirect\nlocation: https://attacker.example/test\n```\n\nAdditional verification:\n```bash\ncurl.exe -i -s \"http://127.0.0.1:18080/abc/def\" -H \"Host: evil.example:9999\"\n```\n\nObserved response:\n```http\nHTTP/1.1 307 Temporary Redirect\nlocation: https://evil.example/abc/def\n```\n\nReproduction (redirect_to_www):\n```bash\ncurl.exe -i -s \"http://127.0.0.1:18081/hello\" -H \"Host: attacker.example\"\n```\n\nObserved response:\n```http\nHTTP/1.1 307 Temporary Redirect\nlocation: http://www.attacker.example/hello\n```\n\nReproduction (redirect_to_non_www):\n```bash\ncurl.exe -i -s \"http://127.0.0.1:18082/path\" -H \"Host: www.attacker.example\"\n```\n\nObserved response:\n```http\nHTTP/1.1 307 Temporary Redirect\nlocation: http://attacker.example/path\n```\n\n### Impact\nThis is a Host header poisoning / open redirect issue. Users can be redirected to attacker-controlled domains, enabling phishing and trust-boundary abuse. Any application using these middleware paths without strict host validation (proxy/app allowlisting) is impacted.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "actix-web-lab"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.26.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.25.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/robjtede/actix-web-lab/security/advisories/GHSA-vhj5-x93p-67jw"
}, {
"type" : "WEB",
"url" : "https://github.com/robjtede/actix-web-lab/pull/292"
}, {
"type" : "WEB",
"url" : "https://github.com/robjtede/actix-web-lab/commit/142c28b82eb59b67445a859a2a9b75e01a9964ee"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/robjtede/actix-web-lab"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-11T00:29:17Z",
"nvd_published_at" : null
}
}