CVE-2026-86119
Webstudio through 0.296.0 SSRF via /cgi proxy routes
Refuses outbound connections from Node.js processes to cloud metadata and link-local addresses to mitigate CVE-2026-86119.
Critical 9.2Vetted
EPSS 0.6%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
At a glance
CVE-2026-86119 is a critical (CVSS 9.2) vulnerability in Webstudio, published 5 September 2026. A vetted upatch, cve-2026-86119-ssrf-block, blocks it on running Linux machines with shirudo until Webstudio is upgraded.
- Severity
- Critical 9.2 CVSS 4.0
- Chance of exploitation
- 0.6% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-918
- Affected software
- Webstudio (webstudio-is)
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
CVE-2026-86119 was published on 5 September 2026. In Webstudio through 0.296.0, the Remix loader routes apps/builder/app/routes/cgi.asset.$.ts, apps/builder/app/routes/cgi.image.$.ts, and apps/builder/app/routes/cgi.video.$.ts decode the path suffix after /cgi/asset/, /cgi/image/, or /cgi/video/ with decodePathFragment() and, when the RESIZE_ORIGIN environment variable is unset, check if (URL.canParse(name)) { return fetch(name); }. Because these routes require no authentication and only check that an optional Referer header matches the request Host, an unauthenticated client can pass a URL-encoded target such as /cgi/asset/http%3A%2F%2F169.254.169.254%2Flatest%2Fmeta-data%2F and receive the upstream response body directly.
Official description
Webstudio through 0.296.0 contains an unauthenticated server-side request forgery vulnerability in the /cgi/image, /cgi/video, and /cgi/asset proxy routes when RESIZE_ORIGIN environment variable is unset. Attackers can supply arbitrary URLs to these endpoints to read cloud instance metadata, access internal services, and perform network reconnaissance on the instance infrastructure.
Affected versions
| Branch | Vulnerable | Fixed in |
|---|---|---|
| 0.x | through 0.296.0 | unfixed upstream as of 0.296.0 |
Sources
More references from NVD (6)
Mitigation
It attaches to lsm/socket_connect and checks the destination socket address first:
- For
AF_INET, it refuses connections to169.254.0.0/16(RFC 3927 link-local and AWS/GCP/Azure instance metadata169.254.169.254),100.100.100.254/32(Alibaba Cloud metadata), and192.0.0.0/24(IETF protocol assignments including Oracle Cloud metadata192.0.0.192). - For
AF_INET6, it refuses connections to IPv4-mapped IPv6 addresses (::ffff:0:0/96) matching those IPv4 ranges, IPv6 link-local addresses (fe80::/10), and the AWS IMDSv2 IPv6 endpoint (fd00:ec2::254).
When the destination matches, it checks whether the calling task's executable (task->mm->exe_file->f_path.dentry) or task command name (comm) is node, increments the refused per-CPU counter, and returns -EPERM. Any refusal from an earlier BPF LSM program on the same hook is preserved.
Side effects
nodeprocesses on the machine cannot connect to169.254.0.0/16,100.100.100.254,192.0.0.0/24,fe80::/10, orfd00:ec2::254, failing withEPERM.- Local asset serving from disk and outbound connections from
nodeto loopback (127.0.0.1) or regular network addresses keep working. - Non-
nodeprocesses on the host (including system services, cloud agents, and shells) can still reach link-local and cloud metadata endpoints as usual.
Preemption model and cost
The program runs only on connect() system calls, never per packet. The fast path inspects sa_family and the destination IP address before reading task metadata, so non-matching connections finish in a few instructions. Refusals are counted in a BPF_MAP_TYPE_PERCPU_ARRAY map with __sync_fetch_and_add, making the program safe under PREEMPT_LAZY, preemptible RCU, and PREEMPT_RT.
The policy
126 lines of BPF C, attached at lsm/socket_connect.
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#include <bpf/bpf_endian.h>
#define AF_INET 2
#define AF_INET6 10
#define EPERM 1
char _license[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
__uint(max_entries, 1);
__type(key, __u32);
__type(value, __u64);
} refused SEC(".maps");
static __always_inline void count_refused(void)
{
__u32 key = 0;
__u64 *value = bpf_map_lookup_elem(&refused, &key);
if (value)
__sync_fetch_and_add(value, 1);
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
static __always_inline bool is_blocked_ipv4(__u32 host_ip)
{
if ((host_ip & 0xffff0000U) == 0xa9fe0000U)
return true;
if (host_ip == 0x646464feU)
return true;
if ((host_ip & 0xffffff00U) == 0xc0000000U)
return true;
return false;
}
static __always_inline bool is_blocked_addr(struct sockaddr *address, int addrlen)
{
__u16 family = 0;
if (!address || addrlen < (int)sizeof(__u16))
return false;
if (bpf_probe_read_kernel(&family, sizeof(family), &address->sa_family))
return false;
if (family == AF_INET) {
__be32 s_addr = 0;
const struct sockaddr_in *sin = (const struct sockaddr_in *)address;
if (addrlen < (int)sizeof(struct sockaddr_in))
return false;
if (bpf_probe_read_kernel(&s_addr, sizeof(s_addr), &sin->sin_addr.s_addr))
return false;
return is_blocked_ipv4(bpf_ntohl(s_addr));
}
if (family == AF_INET6) {
__be32 w[4] = {};
const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)address;
if (addrlen < (int)sizeof(struct sockaddr_in6))
return false;
if (bpf_probe_read_kernel(w, sizeof(w), &sin6->sin6_addr.in6_u.u6_addr32))
return false;
if (w[0] == 0 && w[1] == 0 && w[2] == bpf_htonl(0x0000ffffU))
return is_blocked_ipv4(bpf_ntohl(w[3]));
if ((bpf_ntohl(w[0]) & 0xffc00000U) == 0xfe800000U)
return true;
if (w[0] == bpf_htonl(0xfd00ec20U) && w[1] == 0 &&
w[2] == 0 && w[3] == bpf_htonl(0x00000254U))
return true;
return false;
}
return false;
}
static __always_inline bool dentry_is_node(const struct dentry *dentry)
{
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
char buf[6] = {};
if (!dentry || BPF_CORE_READ(dentry, d_name.len) != 4)
return false;
if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 0)
return false;
return buf[0] == 'n' && buf[1] == 'o' && buf[2] == 'd' &&
buf[3] == 'e' && buf[4] == '\0';
}
static __always_inline bool current_is_node(void)
{
struct task_struct *task = bpf_get_current_task_btf();
const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
char comm[16] = {};
if (dentry_is_node(exe))
return true;
if (bpf_get_current_comm(comm, sizeof(comm)) == 0 &&
comm[0] == 'n' && comm[1] == 'o' && comm[2] == 'd' &&
comm[3] == 'e' && comm[4] == '\0')
return true;
return false;
}
SEC("lsm/socket_connect")
int BPF_PROG(cve_2026_86119_connect, struct socket *sock,
struct sockaddr *address, int addrlen, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!is_blocked_addr(address, addrlen))
return 0;
if (!current_is_node())
return 0;
count_refused();
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-86119"
description = "Refuses outbound connections from Node.js processes to cloud metadata and link-local addresses to mitigate CVE-2026-86119"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-86119-ssrf-block.bpf.c"
[upatches.tree]
id = "cve-2026-86119-ssrf-block"
fixes = ["CVE-2026-86119"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 5 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #75 openedAdd CVE-2026-86119: Refuses outbound connections from Node.js processes to cloud metadata andromanlab
- 25 Nov 2026CIUpdate upatch.devcancelled
- 25 Nov 2026CICIpassed
- 25 Nov 2026MergeMerged #75romanlab
- 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
No human review is recorded on GitHub for this upatch yet.
Evidence
On Webstudio 0.296.0, the loaded upatch refused the /cgi/asset SSRF fetch to the link-local metadata endpoint with HTTP 500 (EPERM) while local asset serving continued to succeed.
- Tested
- 25 Nov 2026
- Target
- Webstudio 0.296.0 (/cgi/asset/$, /cgi/image/$, /cgi/video/$ routes on Node.js, RESIZE_ORIGIN unset, loopback only)
- Kernel
- 7.4-shirudo-ci-20261123
- Architecture
- x86_64
- Machine
- shirudo test VM
- Distribution
- Ubuntu 26.04
| State | GET /cgi/asset/http%3A%2F%2F169.254.169.250%3A8081%2Flatest%2Fmeta-data%2F | GET /cgi/asset/hello.txt |
|---|---|---|
| Before loading | reached (HTTP 200) | 200 |
| Upatch loaded | blocked (HTTP 500) | 200 |
| After unloading | reached (HTTP 200) | 200 |
tools-test.log Output of tools/test --setup showing the SSRF probe reached before, blocked while loaded, and reached again after.
tools/test --setup, 2026-11-25T14:18:56Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-86119 setup done WEBSTUDIO_URL=http://127.0.0.1:3000 METADATA_URL=http://169.254.169.250:8081/latest/meta-data/ before reached /cgi/asset fetched the link-local metadata endpoint loaded blocked /cgi/asset fetch to http://169.254.169.250:8081/latest/meta-data/ failed with HTTP 500 after reached /cgi/asset fetched the link-local metadata endpoint PASS: reached before, blocked while loaded, reached again after
Use it
Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-86119shirudo bpm push build/packages/cve-2026-86119-1.0.0.bee oci://<registry>/<namespace>/cve-2026-86119 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-86119-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>