Skip to main content
Vulnerability Database/CVE-2026-85608

CVE-2026-85608: Douyin TikTok Download API SSRF Vulnerability

CVE-2026-85608 is a server-side request forgery flaw in Douyin TikTok Download API that enables attackers to fetch arbitrary URLs and access internal services. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2026-85608 Overview

CVE-2026-85608 is a server-side request forgery (SSRF) vulnerability [CWE-918] in Douyin_TikTok_Download_API versions through 4.1.2. The flaw exists in the /api/download and /api/hybrid/video_data endpoints, which accept a user-supplied url query parameter without validation. Unauthenticated attackers can force the server to fetch arbitrary URLs, including internal services and cloud metadata endpoints. Error messages returned by the application expose response bodies, allowing retrieval of sensitive credentials such as instance metadata tokens and cloud provider secrets.

Critical Impact

Unauthenticated attackers can pivot into internal networks and exfiltrate cloud instance metadata credentials by abusing the vulnerable url parameter.

Affected Products

  • Douyin_TikTok_Download_API through version 4.1.2
  • Deployments exposing /api/download endpoint
  • Deployments exposing /api/hybrid/video_data endpoint

Discovery Timeline

  • 2026-09-04 - CVE-2026-85608 published to the National Vulnerability Database
  • 2026-09-10 - Last updated in NVD database

Technical Details for CVE-2026-85608

Vulnerability Analysis

Douyin_TikTok_Download_API is an open-source service that retrieves media content from Douyin and TikTok. The application exposes HTTP endpoints that accept a url query parameter and perform a server-side fetch against the supplied value. The endpoints do not restrict the destination to allow-listed Douyin or TikTok hosts, nor do they filter internal IP address ranges or link-local metadata addresses. When a fetch fails, the application returns the upstream response body inside an error message. This behavior converts the SSRF into a full read primitive, enabling attackers to receive contents from arbitrary internal HTTP services. Additional details are available in the VulnCheck Advisory for SSRF.

Root Cause

The root cause is missing validation of the url query parameter in the request handlers backed by helper logic in crawlers/douyin/web/utils.py. The service treats attacker-controlled input as a trusted URL and issues an HTTP client request against it. No scheme allow list, host allow list, or private-network deny list is enforced before the outbound request is made.

Attack Vector

Exploitation requires only network access to the vulnerable API. An unauthenticated attacker sends a GET request to /api/download or /api/hybrid/video_data with url set to an internal or cloud metadata target, for example http://169.254.169.254/latest/meta-data/iam/security-credentials/. The server issues the request from its own network position and returns the response body through the error path. Attackers can enumerate internal services, retrieve cloud IAM credentials, and stage further attacks against services trusting the application host. See the GitHub Issue #729 for reproduction details.

Detection Methods for CVE-2026-85608

Indicators of Compromise

  • Requests to /api/download or /api/hybrid/video_data with url parameters pointing to RFC1918 addresses, loopback, or 169.254.169.254
  • Outbound HTTP requests from the application host to cloud metadata endpoints not associated with normal workload behavior
  • Application error responses containing internal HTTP response bodies or IAM credential fragments
  • Unexpected use of internal service tokens or short-lived cloud credentials originating from the API host

Detection Strategies

  • Inspect web access logs for url= parameter values containing 127.0.0.1, localhost, internal CIDR ranges, or link-local addresses
  • Alert on egress connections from the API server to 169.254.169.254, metadata.google.internal, or Azure IMDS endpoints
  • Correlate spikes in 4xx or 5xx responses from the download endpoints with anomalous outbound DNS queries

Monitoring Recommendations

  • Enable verbose logging on the reverse proxy fronting the API to capture full query strings
  • Forward application and network telemetry to a centralized data lake for retrospective SSRF hunting
  • Monitor cloud audit logs (AWS CloudTrail, Azure Activity Log, GCP Audit Logs) for use of instance role credentials from unexpected source IPs

How to Mitigate CVE-2026-85608

Immediate Actions Required

  • Restrict network access to the Douyin_TikTok_Download_API service until a validated fix is deployed
  • Block outbound access from the application host to 169.254.169.254 and other cloud metadata endpoints where operationally feasible
  • Enforce IMDSv2 with hop limit 1 on AWS EC2 instances hosting the application to require session tokens for metadata access
  • Rotate any IAM credentials, API keys, or secrets accessible from the application host

Patch Information

No vendor patch is referenced in the NVD entry at time of publication. Review the upstream project at the GitHub PoC Repository and monitor releases beyond 4.1.2 for a fix. Until a fixed release is available, apply compensating controls at the network and reverse proxy layers.

Workarounds

  • Deploy a reverse proxy or WAF rule that rejects requests where url resolves to private, loopback, or link-local addresses
  • Enforce a strict allow list limiting the url parameter to douyin.com and tiktok.com host suffixes
  • Run the service in a network namespace or container with egress restricted to required upstream media hosts only
  • Remove verbose error responses that echo upstream response bodies back to clients
bash
# Example nginx rule to block SSRF targets on the url parameter
if ($arg_url ~* "(127\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.|localhost|metadata)") {
    return 403;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.