CVE-2026-7158 dmitryglhf mcp-url-downloader server.py _validate_url_safe server-side request forgery

Medium 6.9 Published Updated

Remote attackers can exploit a validation flaw in the mcp-url-downloader library to perform server-side request forgery, potentially accessing internal resources.

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

What is CVE-2026-7158?

CVE-2026-7158 is a medium-severity server-side request forgery vulnerability in dmitryglhf mcp-url-downloader, published on 27 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability has been found in dmitryglhf mcp-url-downloader up to 4b8cf2de55f6e8864a77d108e8a94a5b8e4394c6. Affected by this issue is the function _validate_url_safe of the file src/mcp_url_downloader/server.py. Such manipulation of the argument url leads to server-side request forgery. The attack can be executed remotely. The exploit has been disclosed to the public and may be used. This product implements a rolling release for ongoing delivery, which means version information for affected or updated releases is unavailable. The project was informed of the problem early through an issue report but has not responded yet.

Weakness: CWE-918

Which versions are affected by CVE-2026-7158?

3 open source packages ship an affected version, including mcp-url-downloader.

PackageAffectedFixed in
mcp-url-downloader PyPIAll versions to 0.1.0None
mcp-url-downloader PyPIAll versions to 0.1.0None
mcp-url-downloader PyPIAll versions to 0.1.0None

How do I fix CVE-2026-7158?

No fix has been published for CVE-2026-7158 yet. Limit exposure of the affected software until one is available.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-7158 being exploited?

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

Sources

Also known as GHSA-h7xc-4mv8-59fj, PYSEC-2026-2631.

Is CVE-2026-7158 in your software?

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

Check your SBOMs for free