← All advisories

CVE-2026-133875mediumSSRF & network2026-11-20

CVE-2026-133875: one-hub LLM API gateway fetched vision-chat image_url values server-side with no destination checks, letting any non-admin API token reach internal services and cloud metadata (through 0.14.27, no fix yet)

one-hub is a popular self-hosted OpenAI-compatible API management and distribution gateway (a fork of one-api). Through 0.14.27, when a vision chat request goes to the Claude, OpenRouter or Ollama providers, GetImageFromUrl in common/image/image.go downloads the image_url server-side to base64-encode it, checking only that the string starts with 'http'. Any holder of an ordinary user API token (self-registration is on by default) can send a /v1/chat/completions request that makes the gateway call internal services or cloud metadata endpoints. The GitHub issue is still open and no fixed release is listed.

01.

What it is

Vulnerable path: common/image/http.go RequestFile, called from common/image/image.go GetImageFromUrl, used by providers/claude/chat.go, providers/openrouter/chat.go and providers/ollama/chat.go before the upstream call.

The endpoint needs only a standard per-user token (middleware.OpenaiAuth), and config.RegisterEnabled defaults to true, per the report (issue #939, opened 6 November 2026).

NVD published the CVE (CNA VulnCheck, CWE-918) on 20 November 2026, affecting one-hub through 0.14.27, the latest release (6 December 2025).

02.

How to check

  1. Check whether you run one-hub (MartialBE/one-hub), any version up to 0.14.27, with Claude, OpenRouter or Ollama channels configured.
  2. Check whether public self-registration is enabled.
  3. Look in logs for chat completions whose image_url points at private IPs, localhost or 169.254.169.254.
03.

How to fix

  1. No fixed release yet: disable self-registration and give API tokens only to trusted users.
  2. Block the gateway's outbound access to internal networks and cloud metadata (egress firewall, IMDSv2 with hop limit 1).
  3. Watch issue #939 and upgrade when a fix ships.
# AWS: require IMDSv2 with hop limit 1 on the gateway host
aws ec2 modify-instance-metadata-options --instance-id <id> --http-tokens required --http-put-response-hop-limit 1
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.