CVE-2026-76795
AeternaLabsHQ PullMD REST API Endpoint api server-side request forgery
Refuses outbound connections from PullMD node processes to private, loopback, link-local, CGNAT and cloud metadata addresses to mitigate CVE-2026-76795.
Medium 5.5Vetted
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-76795 is a medium (CVSS 5.5) vulnerability in PullMD, published 20 August 2026. A vetted upatch, cve-2026-76795-ssrf-block, blocks it on running Linux machines with shirudo until PullMD is upgraded.
- Severity
- Medium 5.5 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
- PullMD (AeternaLabsHQ)
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
CVE-2026-76795 is a server-side request forgery (SSRF) vulnerability in AeternaLabsHQ PullMD up to version 3.2.0, published on 20 August 2026. The /api REST endpoint accepts a url query parameter and fetches it without checking whether the target resolves to a loopback, private, link-local, CGNAT or cloud metadata address. A remote caller can pass internal addresses or cloud instance metadata endpoints such as 169.254.169.254 or 100.100.100.200 to /api?url=... and read the response back through PullMD. Version 3.3.0 (commit 96448894cc93ccecb0bdcbf263a9d25390a8455e) fixes the issue by resolving target hosts and denying private, loopback, link-local, CGNAT and metadata IPv4 and IPv6 ranges before fetching and across redirect hops.
Official description
A vulnerability has been found in AeternaLabsHQ PullMD 3.2.0. This impacts an unknown function of the file /api of the component REST API Endpoint. The manipulation of the argument url leads to server-side request forgery. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 3.3.0 will fix this issue. The identifier of the patch is 96448894cc93ccecb0bdcbf263a9d25390a8455e. Upgrading the affected component is advised.
Affected versions
This is an application vulnerability in AeternaLabsHQ PullMD up to 3.2.0, fixed in 3.3.0. The upatch runs on any Linux kernel supported by shirudo with BPF LSM and BTF enabled.
Sources
More references from NVD (9)
Mitigation
The BPF LSM program cve_2026_76795_ssrf_block attaches to lsm/socket_connect and returns -EPERM when a process whose command name or executable is node attempts to connect an AF_INET or AF_INET6 socket to any of the ranges blocked by the upstream fix in lib/ssrf.js:
- IPv4:
0.0.0.0/8,10.0.0.0/8,100.64.0.0/10(CGNAT, including100.100.100.200),127.0.0.0/8(loopback),169.254.0.0/16(link-local and cloud metadata169.254.169.254),172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4and240.0.0.0/4(including255.255.255.255/32). - IPv6:
::1/128,::/128,fc00::/7(unique-local, includingfd00:ec2::254),fe80::/10(link-local),ff00::/8,2001:db8::/32, and IPv4-mapped (::ffff:0:0/96), IPv4-compatible (::/96), NAT64 (64:ff9b::/96) and 6to4 (2002::/16) embeddings of the blocked IPv4 ranges.
The program checks the socket family and destination address first, and inspects the current task's command or executable name only when the destination falls in a blocked range. Because lsm/socket_connect runs on every TCP connect and UDP connect, both direct requests and HTTP redirects to internal addresses are refused in the kernel before a packet is sent. Refusals are counted in the refused per-CPU array map.
Side effects
- Any
nodeprocess on the machine is refused outboundAF_INETandAF_INET6connections to loopback, private, link-local, CGNAT and metadata addresses. Inbound connections to PullMD on loopback or private interfaces continue to work becauseacceptdoes not callsocket_connect. - Optional PullMD sidecars (
trafilatura,markitdown,playwright) orPULLMD_ALLOWED_HOSTStargets hosted on loopback or RFC 1918 addresses cannot be reached bynodeover TCP/IP while the upatch is loaded. - Non-
nodeprocesses on the host (includingsshd, system services,curlandpython3) are unaffected.
Preemption model and cost
The program keeps no shared state beyond a single per-CPU counter updated with __sync_fetch_and_add, so it is safe under every kernel preemption model, including PREEMPT_LAZY, PREEMPT_DYNAMIC with preemptible RCU, and PREEMPT_RT. Connections to public IPv4 or IPv6 addresses and non-IP sockets return after reading the address family and destination IP without querying task state or maps.
The policy
158 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 EPERM 1
#define AF_INET 2
#define AF_INET6 10
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 name_is_node(const struct dentry *dentry)
{
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
char buf[8] = {};
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)
{
char comm[16] = {};
struct task_struct *task;
const struct dentry *exe;
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;
task = bpf_get_current_task_btf();
exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
return name_is_node(exe);
}
static __always_inline bool ipv4_is_blocked(__u32 ip)
{
if ((ip & 0xff000000U) == 0x00000000U)
return true;
if ((ip & 0xff000000U) == 0x0a000000U)
return true;
if ((ip & 0xffc00000U) == 0x64400000U)
return true;
if ((ip & 0xff000000U) == 0x7f000000U)
return true;
if ((ip & 0xffff0000U) == 0xa9fe0000U)
return true;
if ((ip & 0xfff00000U) == 0xac100000U)
return true;
if ((ip & 0xffffff00U) == 0xc0000000U)
return true;
if ((ip & 0xffffff00U) == 0xc0000200U)
return true;
if ((ip & 0xffff0000U) == 0xc0a80000U)
return true;
if ((ip & 0xfffe0000U) == 0xc6120000U)
return true;
if ((ip & 0xffffff00U) == 0xc6336400U)
return true;
if ((ip & 0xffffff00U) == 0xcb007100U)
return true;
if ((ip & 0xe0000000U) == 0xe0000000U)
return true;
return false;
}
static __always_inline bool ipv6_is_blocked(const struct in6_addr *addr6)
{
__u32 w0 = bpf_ntohl(BPF_CORE_READ(addr6, in6_u.u6_addr32[0]));
__u32 w1 = bpf_ntohl(BPF_CORE_READ(addr6, in6_u.u6_addr32[1]));
__u32 w2 = bpf_ntohl(BPF_CORE_READ(addr6, in6_u.u6_addr32[2]));
__u32 w3 = bpf_ntohl(BPF_CORE_READ(addr6, in6_u.u6_addr32[3]));
if (w0 == 0 && w1 == 0 && w2 == 0)
return ipv4_is_blocked(w3) || w3 == 1;
if (w0 == 0 && w1 == 0 && w2 == 0x0000ffffU)
return ipv4_is_blocked(w3);
if (w0 == 0x0064ff9bU && w1 == 0 && w2 == 0)
return ipv4_is_blocked(w3);
if ((w0 & 0xffff0000U) == 0x20020000U)
return ipv4_is_blocked((w0 << 16) | (w1 >> 16));
if ((w0 & 0xfe000000U) == 0xfc000000U)
return true;
if ((w0 & 0xffc00000U) == 0xfe800000U)
return true;
if ((w0 & 0xff000000U) == 0xff000000U)
return true;
if (w0 == 0x20010db8U)
return true;
return false;
}
SEC("lsm/socket_connect")
int BPF_PROG(cve_2026_76795_ssrf_block, struct socket *sock,
struct sockaddr *address, int addrlen, int ret)
{
__u16 family;
if (ret)
return earlier_verdict(ret);
if (!address || addrlen < (int)sizeof(family))
return 0;
family = BPF_CORE_READ(address, sa_family);
if (family == AF_INET) {
const struct sockaddr_in *sin;
__u32 ip;
if (addrlen < (int)sizeof(*sin))
return 0;
sin = (const struct sockaddr_in *)address;
ip = bpf_ntohl(BPF_CORE_READ(sin, sin_addr.s_addr));
if (!ipv4_is_blocked(ip) || !current_is_node())
return 0;
count_refused();
return -EPERM;
}
if (family == AF_INET6) {
const struct sockaddr_in6 *sin6;
if (addrlen < (int)sizeof(*sin6))
return 0;
sin6 = (const struct sockaddr_in6 *)address;
if (!ipv6_is_blocked(&sin6->sin6_addr) || !current_is_node())
return 0;
count_refused();
return -EPERM;
}
return 0;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-76795"
description = "Refuses outbound connections from PullMD node processes to private, loopback, link-local, CGNAT and cloud metadata addresses to mitigate CVE-2026-76795"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-76795-ssrf-block.bpf.c"
[upatches.tree]
id = "cve-2026-76795-ssrf-block"
fixes = ["CVE-2026-76795"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 20 Aug 2026CVECVE published
- 25 Nov 2026Pull requestPull request #55 openedAdd CVE-2026-76795: Refuses outbound connections from PullMD node processes to private, loopback,romanlab
- 25 Nov 2026MergeMerged #55romanlab
No human review is recorded on GitHub for this upatch yet.
Evidence
On a vulnerable AeternaLabsHQ PullMD 3.2.0 instance, the loaded upatch refused the outbound loopback connection at lsm/socket_connect (HTTP 502), while the before and after runs reached the internal listener (HTTP 200).
- Tested
- 25 Nov 2026
- Target
- AeternaLabsHQ PullMD 3.2.0 on Node.js, listening on 127.0.0.1:3000
- Kernel
- 7.4-shirudo-ci-20261123
- Architecture
- x86_64
| State | SSRF fetch to internal address |
|---|---|
| Before loading | reached (HTTP 200) |
| Upatch loaded | blocked (HTTP 502) |
| After unloading | reached (HTTP 200) |
tools-test.log Output of tools/test --setup showing the probe reached before loading, blocked while loaded, and reached again after unloading.
tools/test --setup, 2026-11-25T13:14:15Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-76795 setup done PULLMD_URL=http://127.0.0.1:3000 before reached PullMD fetched internal target http://127.0.0.1:38899/upatch-probe-6dbefeed3ab8ca94 (HTTP 200) loaded blocked PullMD failed to connect to internal target with HTTP 502 after reached PullMD fetched internal target http://127.0.0.1:44707/upatch-probe-e88e130cdc7cfc00 (HTTP 200) 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-76795shirudo bpm push build/packages/cve-2026-76795-1.0.0.bee oci://<registry>/<namespace>/cve-2026-76795 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-76795-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>