Apr 26, 2026·5 min read·45 visits
A flaw in OpenClaw's configuration parsing merged backend CDP hostnames into the frontend browser navigation allowlist, enabling SSRF bypasses against restricted internal networks.
OpenClaw versions prior to 2026.4.18 are vulnerable to a Server-Side Request Forgery (SSRF) flaw due to improper state merging. The application automatically extracted hostnames defined in Chrome DevTools Protocol (CDP) profile configurations and incorrectly appended them to the global SSRF navigation allowlist. This behavior allowed attackers or malicious configurations to authorize automated browser navigation to restricted internal networks and cloud metadata services.
OpenClaw provides browser automation capabilities via the Chrome DevTools Protocol (CDP). Administrators configure connection endpoints using the cdpUrl parameter within browser profiles. The application enforces a Server-Side Request Forgery (SSRF) policy to restrict the destinations the browser can navigate to. This mechanism prevents the automated agent from accessing sensitive internal networks or untrusted external domains.
The vulnerability exists in how OpenClaw parses these profile configurations. The application extracts hostnames from all configured CDP profiles and automatically appends them to a global allowlist. This allowlist governs the primary navigation-guard.js component. Consequently, providing a hostname for a CDP connection inadvertently authorizes the browser to navigate to that same host.
This architecture flaw constitutes a Server-Side Request Forgery (CWE-918) vulnerability. An attacker with the ability to define or modify browser profiles can bypass strict-mode SSRF restrictions. The impact is primarily restricted to environments where the AI agent operates alongside sensitive internal services or cloud metadata endpoints.
The vulnerability stems from an insecure merging of configuration domains. In the affected versions, the application initializes its browser configuration by iterating over all defined user profiles. The function collectConfiguredCdpHostnames systematically gathers every hostname specified in a profile's cdpUrl field.
The flaw materializes when the application constructs the global ssrfPolicy object. The gathered CDP hostnames are passed directly into the resolveBrowserSsrFPolicy function. This function merges the extracted CDP hostnames into the allowedHostnames array, which defines the global navigation boundaries for the browser instance.
The application fails to distinguish between a hostname required for internal CDP connectivity and a hostname authorized for general web navigation. The navigation-guard.js component relies entirely on the allowedHostnames array to authorize requests. Once a hostname enters this array via the CDP configuration, the browser executes navigation requests to that destination without encountering policy violations.
The vulnerable logic resides in extensions/browser/src/browser/config.ts. The implementation automatically injected the parsed hostnames into the application's global SSRF policy. This action tightly coupled the backend connectivity requirements with the frontend navigation guard.
// Vulnerable implementation in config.ts
function collectConfiguredCdpHostnames(cfg: BrowserConfig | undefined): string[] {
const hostnames = new Set<string>();
const addHostnameFromUrl = (rawUrl: string | undefined): void => {
// Extracts hostname from the raw URL
};
addHostnameFromUrl(cfg?.cdpUrl);
for (const profile of Object.values(cfg?.profiles ?? {})) {
addHostnameFromUrl(profile?.cdpUrl);
}
return Array.from(hostnames);
}
// The vulnerability: merging the output into the global policy
ssrfPolicy: resolveBrowserSsrFPolicy(cfg, collectConfiguredCdpHostnames(cfg)),The remediation strategies implemented in commits e90c89cf8b1459f2aa1f3a665be67392b6c03fdf and 1fd049e3074cac72f6734a7fe88468c84f5f8bd7 correctly decouple these two contexts. The development team removed the global merging behavior from config.ts entirely. The system now initializes the ssrfPolicy without the CDP hostnames.
// Patched implementation in config.ts
- ssrfPolicy: resolveBrowserSsrFPolicy(cfg, collectConfiguredCdpHostnames(cfg)),
+ ssrfPolicy: resolveBrowserSsrFPolicy(cfg),To maintain necessary backend functionality, the patch introduces a new, specialized policy in extensions/browser/src/browser/cdp-reachability-policy.ts. The resolveCdpReachabilityPolicy function handles CDP health checks independently. This ensures the application can verify CDP connectivity without exposing the destination to the primary browser navigation engine. This architectural split completely neutralizes the attack vector.
Exploitation requires the attacker to possess configuration privileges or the ability to supply malicious profile definitions to the OpenClaw instance. The attacker initiates the exploit chain by submitting a profile creation payload containing a targeted internal IP address in the cdpUrl field.
A typical payload targets cloud metadata services or internal management interfaces. The attacker submits a JSON structure defining the malicious profile. The backend processes this configuration and silently populates the allowedHostnames array with the target IP address.
{
"name": "ssrf_bypass_profile",
"cdpUrl": "http://169.254.169.254"
}Following profile creation, the attacker interacts with the OpenClaw agent and instructs it to browse the targeted internal resource. The agent issues the navigation request to the embedded browser. The navigation-guard.js component validates the request against the contaminated allowlist, authorizes the transaction, and returns the internal response to the attacker.
The primary consequence of this vulnerability is unauthorized access to network resources that are otherwise protected by strict-mode SSRF boundaries. The AI agent acts as a proxy, retrieving and relaying data from internal endpoints. The precise impact depends entirely on the environment hosting the OpenClaw instance.
In cloud environments, this vulnerability permits access to Instance Metadata Services (IMDS). An attacker can direct the agent to navigate to 169.254.169.254 and retrieve sensitive metadata, including temporary IAM credentials. These credentials facilitate lateral movement into the broader cloud infrastructure.
In on-premises or traditional network deployments, the agent can interact with internal web applications, administrative panels, or unauthenticated APIs. The severity of this vulnerability is classified as Low because the attack prerequisites are restrictive. The attacker must already possess administrative control over the application's profile configuration or social engineer an administrator into importing a malicious profile.
The complete mitigation for this vulnerability requires upgrading the OpenClaw installation. System administrators must deploy OpenClaw version 2026.4.18 or a subsequent release. This version incorporates the architectural decoupling of the CDP reachability policy and the global SSRF navigation policy.
Organizations that cannot apply the patch immediately must implement compensating controls. Administrators should review the configuration file and enforce strict validation on profile creation. The application must run with dangerouslyAllowPrivateNetwork explicitly set to false to maintain existing SSRF protections.
Security teams should also review the hostnameAllowlist within the ssrfPolicy configuration to ensure only explicitly trusted domains are present. Implementing network-level egress filtering provides an additional defense layer. Configuring the host firewall to block outbound connections from the OpenClaw process to sensitive internal subnets neutralizes the SSRF risk regardless of the application's configuration state.
| Product | Affected Versions | Fixed Version |
|---|---|---|
OpenClaw OpenClaw | < 2026.4.18 | 2026.4.18 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-918 |
| Attack Vector | Network |
| Impact | SSRF/Bypass |
| Severity | Low |
| Exploit Status | Proof-of-Concept |
| KEV Status | Not Listed |
The software does not adequately verify the legitimacy of a given request, leading to Server-Side Request Forgery.
CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.
CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.
CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).
CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.
Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.
CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.