HIGH 8.6

CVE-2026-56285: Nitter Media Proxy SSRF and Hardcoded HMAC Key Vulnerability

Nitter, a lightweight Twitter/X interface, contains a critical flaw in its video media proxy feature. The vulnerability stems from two fundamental security oversights: the service fails to restrict which URLs its proxy can fetch, and it relies on a hardcoded cryptographic key that's the same across all installations. This combination allows attackers to trick Nitter into retrieving content from anywhere on the internet—including sensitive cloud metadata services and internal corporate systems—without needing any authentication. An attacker merely needs to compute a valid signature using the known default key, making the attack trivial to execute.

Source data · NVD / CISA · public domain

CVSS
3.1 · 8.6 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Weaknesses (CWE)
CWE-1188, CWE-918
Affected products
0 configuration(s)
Published / Modified
2026-06-29 / 2026-07-14

NVD description (verbatim)

Nitter's /video media proxy endpoint fails to validate target URLs against Twitter/X domains and uses a hardcoded default HMAC key, allowing unauthenticated attackers to compute valid HMACs for arbitrary URLs. Attackers can retrieve HTTP responses from any host reachable by the server, including cloud metadata services and internal network resources.

4 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The /video endpoint in Nitter's media proxy does not properly validate target URLs against an allowlist of legitimate Twitter/X domains (CWE-1188: Insecure Default Variable Initialization). Instead, it accepts arbitrary URLs after validation is bypassed. The service uses a hardcoded HMAC secret key for request authentication, which is identical across all Nitter instances and publicly discoverable. This enables Server-Side Request Forgery (SSRF) attacks (CWE-918). An attacker can compute a valid HMAC using the default key, construct a request targeting an internal resource or cloud metadata endpoint (e.g., AWS IMDSv2, GCP metadata, Kubernetes API), and retrieve the HTTP response. The proxy will execute the request on behalf of the attacker, exfiltrating sensitive data that would otherwise remain isolated from the internet.

Business impact

Organizations running Nitter internally or relying on Nitter instances for public Twitter/X content access face significant data exfiltration risk. Attackers can extract AWS credentials, API keys, environment secrets, and other sensitive metadata from cloud environments. Corporate networks may expose internal service enumeration, configuration details, and even authentication tokens stored in internal registries or configuration systems. For public-facing Nitter instances, attackers can harvest any data accessible from the server's network vantage point. Additionally, the proxy could be weaponized for scanning internal networks or launching attacks on previously unknown internal services. Incident response and forensic efforts may be complicated by the ease of exploitation and the likelihood of widespread abuse before detection.

Affected systems

All Nitter installations are affected, regardless of version, as the vulnerability is rooted in the core design of the media proxy feature. Nitter is a lightweight, privacy-respecting alternative to Twitter/X and is commonly self-hosted by individuals, organizations, and privacy advocates. Organizations should inventory any internal or externally-facing Nitter instances. The severity increases if Nitter is deployed in cloud environments with privileged IAM roles or in network segments with access to sensitive internal systems, databases, or credential stores.

Exploitability

This vulnerability is trivial to exploit. No authentication is required, the attack surface is immediate upon network access, and the hardcoded default key is not environment-specific, making it reproducible across all instances. An attacker needs only basic HTTP client capabilities and knowledge of the default HMAC key to craft a valid request. Proof-of-concept is straightforward: compute an HMAC-SHA256 signature over a target URL using the hardcoded key, send a request to the /video endpoint with the signature, and receive the proxied response. The attack requires no special timing, no user interaction, and no prior reconnaissance. Public disclosure of the vulnerability will accelerate weaponization.

Remediation

Immediate action is required for all Nitter deployments. The primary fix is to disable or remove the /video media proxy endpoint entirely if it is not essential to your use case. If the proxy must be retained, a patched version must regenerate the HMAC key using a cryptographically secure, instance-specific value and implement strict URL validation to allow only requests targeting Twitter/X domains. Organizations should consult the official Nitter project repository for a patched release; verify against the vendor advisory before deploying. Until patching is possible, isolate Nitter instances from networks containing sensitive resources and implement network-level controls (WAF rules, IP restrictions) to limit proxy endpoint access. Rotate any credentials or API keys that may have been exposed through the proxy.

Patch guidance

Monitor the official Nitter GitHub repository and project security advisories for a patched release addressing this vulnerability. The fix must include: (1) removal or cryptographically hardened replacement of the default HMAC key with per-instance, securely-generated alternatives; (2) implementation of a strict URL allowlist permitting only requests to Twitter/X domains; and (3) validation that URL parsing cannot be bypassed (e.g., via URL encoding tricks or redirect chains). When a patch becomes available, prioritize deployment on any Nitter instance exposed to the internet or located in cloud environments. Test the patch in a non-production environment to confirm the /video endpoint rejects requests to non-Twitter/X hosts. Consider whether your organization actually requires the media proxy feature; if not, disable it permanently.

Detection guidance

Monitor access logs for requests to the /video endpoint with suspicious target parameters. Look for requests containing internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), localhost addresses, cloud metadata endpoints (169.254.169.254, metadata.google.internal, 100.100.100.200), or Kubernetes API endpoints (kubernetes.default). Implement alerting on 2xx responses from the /video endpoint to non-Twitter/X domains. Network-level detection should flag outbound connections from Nitter instances to unusual destinations (cloud metadata services, internal databases, private API endpoints). If forensic analysis is needed, examine proxy logs for HMAC signatures—any valid signature with the default key indicates either exploitation or misconfiguration.

Why prioritize this

With a CVSS score of 8.6 (HIGH) and demonstrated ease of exploitation, this vulnerability warrants urgent remediation. The combination of no authentication requirement, no user interaction, and broad network impact (accessing resources beyond the immediate network boundary) elevates risk. The vulnerability is not yet included in CISA's Known Exploited Vulnerabilities catalog, but early disclosure and simplicity of exploitation make widespread abuse inevitable. Any organization running Nitter in sensitive environments should treat this as a critical patch candidate. Delay increases the window of exposure for credential theft and lateral movement.

Risk score, explained

The CVSS 3.1 score of 8.6 reflects: (1) network-accessible attack vector with low complexity; (2) no authentication or user interaction required; (3) high confidentiality impact due to exfiltration of sensitive data across trust boundaries; (4) cross-origin/cross-system scope (the attacker can pivot from the vulnerable service to internal or cloud infrastructure). The lack of integrity or availability impact (the attacker cannot modify or destroy data) prevents a critical rating, but the confidentiality breach is severe. The score does not capture the organizational risk amplified by Nitter's prevalence in privacy-focused deployments where it may run with elevated privileges or in trusted network positions.

Frequently asked questions

Can we safely run Nitter if we disable or block the /video endpoint?

Disabling the /video proxy endpoint eliminates the attack vector and is the lowest-risk interim measure. However, this only protects against SSRF via the proxy—it does not address the hardcoded HMAC key in other parts of the codebase if similar logic exists elsewhere. Verify with your Nitter version's documentation. Once a patched version is available, upgrade and re-enable the endpoint only if your users require media proxy functionality.

Does this vulnerability affect Twitter/X's official service, or only Nitter?

This vulnerability is specific to Nitter, an independent, open-source alternative client for Twitter/X. Twitter/X's official platform and API are unaffected. However, if you run a Nitter instance to proxy Twitter/X content, your Nitter instance is vulnerable and could be exploited to access resources beyond Twitter/X.

How do we know if Nitter was exploited before we patch?

Check Nitter's access logs for requests to the /video endpoint with unusual parameters or responses to non-Twitter/X targets. Look for outbound network connections from the Nitter server to internal IPs, cloud metadata endpoints, or unexpected external destinations. If your infrastructure has egress monitoring, review for anomalous Nitter outbound traffic. Consider rotating API keys, credentials, and cloud access tokens that were stored on the same network segment as the Nitter instance.

Is there a temporary workaround if we can't patch immediately?

Yes: restrict network access to the /video endpoint using a Web Application Firewall (WAF), reverse proxy, or network-level ACLs. Block all requests to /video that include parameters targeting internal IP ranges or cloud metadata endpoints. Isolate the Nitter server network-wise—remove or restrict its access to sensitive internal systems, cloud metadata services, and credential stores. Monitor outbound connections closely. These are temporary measures only; patching is mandatory.

This analysis is based on published vulnerability data and is provided for informational purposes. Security teams should independently verify all patch information, CVSS scores, and affected software versions against official vendor advisories and their own system inventories. Exploit code, proof-of-concept demonstrations, or detailed attack instructions are not provided. Organizations are responsible for assessing their exposure and implementing remediation according to their risk tolerance and operational constraints. This analysis does not constitute legal, compliance, or formal security assessment advice. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).