---
id: "CVE-2026-40525"
page: "https://infrastack.ai/live/CVE-2026-40525"
kind: "vulnerability"
aliases: ["CVE-2026-40525", "GHSA-jgq2-vq69-gr6h"]
title: "OpenViking: Unauthenticated remote bot control via OpenAPI HTTP routes"
severity: "critical"
cvss: 9.1
epss: 0.00593
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "openviking", "fixed": ["0.3.9"], "affected": "< 0.3.9", "ecosystem": "pypi"}, {"name": "volcengine openviking", "fixed": ["0.3.9"], "affected": "< 0.3.9", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["ai-agents", "ai-tooling", "cwe-636", "openviking", "python", "vikingbot"]
not_affected_if: ["api-key-set", "not-network-exposed"]
published_at: "2026-04-17T19:16:39+00:00"
first_seen_at: "2026-11-16T15:32:34+00:00"
updated_at: "2026-11-16T15:37:59+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-jgq2-vq69-gr6h", "first_seen_at": "2026-11-16T15:32:34+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40525", "first_seen_at": "2026-11-16T15:37:59+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.00593, "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-40525"}]
---

# OpenViking: Unauthenticated remote bot control via OpenAPI HTTP routes

Link for people: https://infrastack.ai/live/CVE-2026-40525 (this .md is for agents)

OpenViking's VikingBot OpenAPI HTTP routes skip the authentication check when the api_key setting is unset or empty. A remote attacker who can reach the service can send prompts, create bot sessions, and use the bot's tools, integrations and secrets without an X-API-Key header.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:openviking affected < 0.3.9 fixed 0.3.9
- vendor:volcengine openviking affected < 0.3.9 fixed 0.3.9

## How to check

- Check the installed version with `pip show openviking` and compare it to `0.3.9`.
- Look in the OpenViking configuration for the `api_key` value and confirm it is set to a non-empty value.
- Confirm whether the VikingBot OpenAPI HTTP port is reachable from networks other than localhost.

## Fix

- `openviking` `0.3.9` (fixed version per the product data)

## Timeline

- 2026-11-16T15:32:34+00:00 ghsa https://github.com/advisories/GHSA-jgq2-vq69-gr6h
- 2026-11-16T15:37:59+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-40525

## Documents

- [advisory] Patch: github.com https://github.com/volcengine/OpenViking/pull/1447
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openviking-authentication-bypass-via-vikingbot-openapi
- [fix] Patch: github.com https://github.com/volcengine/OpenViking/pull/1447
- [fix] Patch: github.com https://github.com/volcengine/OpenViking/commit/c7bb1676f4d037609f041bf39e4e2bd52e8f9820
- [fix] Release: github.com https://github.com/volcengine/OpenViking/releases/tag/v0.3.9

## From the sources

OpenViking prior to commit c7bb167 contains an authentication bypass vulnerability in the VikingBot OpenAPI HTTP route surface where the authentication check fails open when the api_key configuration value is unset or empty. Remote attackers with network access to the exposed service can invoke privileged bot-control functionality without providing a valid X-API-Key header, including submitting attacker-controlled prompts, creating or using bot sessions, and accessing downstream tools, integrations, secrets, or data accessible to the bot.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
