CVSS Score: 7.3 (High)
Published: 2026-04-27T21:16:44.337Z
Severity: High
Description
A vulnerability has been found in the requests library (mcp-url-downloader). The function _validate_url_safe is vulnerable to server-side request forgery (SSRF). Attackers can manipulate URL parameters to bypass validation and access internal resources.
Why this repo may be affected
This repository is a FastAPI template that likely uses the requests library for HTTP operations. The vulnerability affects URL validation in request handlers, potentially allowing SSRF attacks through manipulated URL parameters.
Affected Component
- Package: requests (or similar HTTP client)
- Vulnerability Type: Server-Side Request Forgery (SSRF)
- Attack Vector: Network (Remote)
- Affected Function: URL validation logic
References
Recommended action
- Check if requests library is used for URL handling:
grep -r "requests\|urllib" . --include="*.py" - Review all HTTP client calls that accept user-supplied URLs
- Implement strict URL validation:
- Whitelist allowed domains/protocols
- Reject private IP ranges (127.0.0.1, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
- Validate URL scheme (http/https only)
- Update requests library to latest version
- Consider using URL parsing libraries like
urllib.parse with validation - Open a PR with security fixes and tag this issue
security
Detected automatically by AFIP Risk Radar | Scan window: last 30h
Security Advisory: CVE-2026-7158
CVSS Score: 7.3 (High)
Published: 2026-04-27T21:16:44.337Z
Severity: High
Description
A vulnerability has been found in the requests library (mcp-url-downloader). The function _validate_url_safe is vulnerable to server-side request forgery (SSRF). Attackers can manipulate URL parameters to bypass validation and access internal resources.
Why this repo may be affected
This repository is a FastAPI template that likely uses the
requestslibrary for HTTP operations. The vulnerability affects URL validation in request handlers, potentially allowing SSRF attacks through manipulated URL parameters.Affected Component
References
Recommended action
grep -r "requests\|urllib" . --include="*.py"urllib.parsewith validationsecurityDetected automatically by AFIP Risk Radar | Scan window: last 30h