Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-vhj5-x93p-67jw — actix-web-lab (CVE-2025-63762)

⚪ Unknown ✅ No Known Exploit CWE-601 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

actix-web-lab has host header poisoning in redirect middleware can generate attacker-controlled absolute redirects

Summary

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.

CVE

Assigned CVE ID: CVE-2025-63762

Details

The issue is in redirect middleware paths that construct absolute URLs from req.connection_info():

1. actix-web-lab/src/redirect_to_https.rs (around lines 119-132)

  • let host = conn_info.host();
  • format!("https://{hostname}{path}")
  • format!("https://{hostname}:{port}{path}")

2. actix-web-lab/src/redirect_to_www.rs (around lines 30-35)

  • format!("{scheme}://www.{host}{path}")

3. actix-web-lab/src/redirect_to_non_www.rs (around lines 30-34)

  • format!("{scheme}://{host_no_www}{path}")

Because host values come from request connection metadata, untrusted Host input can influence redirect targets when deployment-side host validation is missing.

PoC

Environment used for validation:

  • Local minimal Actix apps using actix-web-lab middleware
  • RedirectHttps: http://127.0.0.1:18080
  • redirect_to_www: http://127.0.0.1:18081
  • redirect_to_non_www: http://127.0.0.1:18082

Reproduction (RedirectHttps):

```bash

curl.exe -i -s "http://127.0.0.1:18080/test" -H "Host: attacker.example"

```

Observed response:

```http

HTTP/1.1 307 Temporary Redirect

location: https://attacker.example/test

```

Additional verification:

```bash

curl.exe -i -s "http://127.0.0.1:18080/abc/def" -H "Host: evil.example:9999"

```

Observed response:

```http

HTTP/1.1 307 Temporary Redirect

location: https://evil.example/abc/def

```

Reproduction (redirect_to_www):

```bash

curl.exe -i -s "http://127.0.0.1:18081/hello" -H "Host: attacker.example"

```

Observed response:

```http

HTTP/1.1 307 Temporary Redirect

location: http://www.attacker.example/hello

```

Reproduction (redirect_to_non_www):

```bash

curl.exe -i -s "http://127.0.0.1:18082/path" -H "Host: www.attacker.example"

```

Observed response:

```http

HTTP/1.1 307 Temporary Redirect

location: http://attacker.example/path

```

Impact

This 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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity low, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: Required — someone has to click, open or visit something.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: Low — limited, and the attacker does not choose what is affected.
  • Integrity impact: Low — limited, and the attacker does not choose what is affected.
  • Availability impact: None.

Weakness class

GHSA-vhj5-x93p-67jw is classified as CWE-601: Open Redirect. A redirect target is taken from user input, so a trusted link can send the visitor to an attacker's site.

Affected software

GHSA-vhj5-x93p-67jw is recorded against 1 package.

  • actix-web-lab

Timeline and source

Published on 11 March 2026 and last revised on 15 March 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)

Same weakness in other software

These advisories are the same class of weakness (CWE-601: Open Redirect) in other software:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CWE CWE-601
Public Exploit ✅ No
Source OSV
Published 2026-03-11
Updated 2026-08-20
Modified 2026-03-15
Fix URL N/A

Affected Packages

Software From version Fixed in
actix-web-lab — —

Free Vulnerability Check

Is your site affected by GHSA-vhj5-x93p-67jw?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-vhj5-x93p-67jw and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated
✓