# GHSA-23hp-j76v-pcwj: SSRF and local file disclosure via unvalidated URLs

- Severity: High 7.5 (CVSS:3.1, scored by RustSec Advisory Database) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-10-22T12:00:00.000Z
- Modified: 2026-10-26T14:00:04.244Z
- Also known as: RUSTSEC-2026-0407

## Description

Applications that pass attacker-controlled URLs to `webpage` versions before
2.1.0 may be vulnerable to server-side request forgery (SSRF) or local file
disclosure.

`HTTP::fetch` and `Webpage::from_url` passed URLs to libcurl without
restricting the URL scheme or validating the resolved destination IP address.
Redirects were followed without checking whether the new destination was
internal. Depending on how the application uses the response, an attacker
could:

- Read local files accessible to the application process using `file://` URLs.
- Cause requests to internal or link-local services (e.g. cloud metadata
  endpoints at `http://169.254.169.254`) via direct private-IP URLs or by
  chaining HTTP redirects through an attacker-controlled server.

Starting in 2.1.0, `HTTP::fetch` and `Webpage::from_url` reject non-HTTP(S)
URL schemes and destinations that resolve to non-public IP addresses, including
after redirects. Applications that intentionally fetch trusted internal
resources can opt in to the previous behavior with `HTTP::fetch_unrestricted`
or `Webpage::from_url_unrestricted`.

Reported by [Aiden Mohan](https://github.com/AidenMohan).

(As written by RustSec Advisory Database.)

## Affected

- webpage (crates.io): from 0.0.0-0 before 2.1.0

## References

- <https://crates.io/crates/webpage> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0407.html> (advisory)
- <https://github.com/orottier/webpage-rs/commit/5742fbee437c04170d101e10df3534e87730f36d> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0407](https://rustsec.org/advisories/RUSTSEC-2026-0407.html), CC0-1.0, modified 2026-10-26

---

Page: https://cve.day/GHSA-23hp-j76v-pcwj · Whole record: https://cve.day/GHSA-23hp-j76v-pcwj.json · Rebuilt by cve.day 2026-11-25T22:56:43.453Z
