CVE-2025-70950 gohttp is vulnerable to directory traversal via a crafted request

High 7.3 Published Updated

Attackers can perform directory traversal via crafted requests in the gohttp library, potentially reading unauthorized files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-70950?

CVE-2025-70950 is a high-severity path traversal vulnerability in n/a, published on 19 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue in gohttp commit 34ea51 allows attackers to execute a directory traversal via supplying a crafted request.

Weakness: CWE-22

Which versions are affected by CVE-2025-70950?

3 open source packages ship an affected version, including github.com/itang/gohttp.

PackageAffectedFixed in
github.com/itang/gohttp GoAll versionsNone
github.com/itang/gohttp GoAll versions to 0.0.0-20170713062009-34ea516ae408None
github.com/itang/gohttp GoAll versions to 0.0.0-20170713062009-34ea516ae408None

How do I fix CVE-2025-70950?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-70950 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-70950 exists.

Sources

Also known as GHSA-rg3p-p27c-2f39, GO-2026-5619.

Is CVE-2025-70950 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free