# CVE-2026-76795: AeternaLabsHQ PullMD REST API Endpoint api server-side request forgery

The Markdown version of <https://upatch.dev/cve/CVE-2026-76795>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-76795 is rated Medium 5.5 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects PullMD (AeternaLabsHQ) and was published on 20 Aug 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.6%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-76795-ssrf-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

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.

## What the upatch does

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, including `100.100.100.200`), `127.0.0.0/8` (loopback), `169.254.0.0/16` (link-local and cloud metadata `169.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/4` and `240.0.0.0/4` (including `255.255.255.255/32`).
- IPv6: `::1/128`, `::/128`, `fc00::/7` (unique-local, including `fd00: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.

The policy: [`cve-2026-76795-ssrf-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-76795), 158 lines of BPF C attached at `lsm/socket_connect`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- Any `node` process on the machine is refused outbound `AF_INET` and `AF_INET6` connections to loopback, private, link-local, CGNAT and metadata addresses. Inbound connections to PullMD on loopback or private interfaces continue to work because `accept` does not call `socket_connect`.
- Optional PullMD sidecars (`trafilatura`, `markitdown`, `playwright`) or `PULLMD_ALLOWED_HOSTS` targets hosted on loopback or RFC 1918 addresses cannot be reached by `node` over TCP/IP while the upatch is loaded.
- Non-`node` processes on the host (including `sshd`, system services, `curl` and `python3`) 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.

## 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.

## How it was tested

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

### Results

| State           | SSRF fetch to internal address |
| --------------- | ------------------------------ |
| Before loading  | reached (HTTP 200)             |
| Upatch loaded   | blocked (HTTP 502)             |
| After unloading | reached (HTTP 200)             |

## How to apply

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.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-76795
```

Publish and roll out:

```sh
shirudo 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>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-76795 on VulDB](https://vuldb.com/cve/CVE-2026-76795)
- [PullMD issue #41](https://github.com/AeternaLabsHQ/pullmd/issues/41)
- [PullMD pull request #42](https://github.com/AeternaLabsHQ/pullmd/pull/42)
- [Fix commit 96448894cc93ccecb0bdcbf263a9d25390a8455e](https://github.com/AeternaLabsHQ/pullmd/commit/96448894cc93ccecb0bdcbf263a9d25390a8455e)
- [PullMD v3.3.0 release](https://github.com/AeternaLabsHQ/pullmd/releases/tag/v3.3.0)

### Links

- [CVE-2026-76795 on upatch.dev](https://upatch.dev/cve/CVE-2026-76795) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-76795)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-76795)
- [CWE-918](https://cwe.mitre.org/data/definitions/918.html)
- Upatch source: [upatches/cve-2026-76795](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-76795)

### More references from NVD (9)

- [github.com](https://github.com/AeternaLabsHQ/pullmd/)
- [github.com](https://github.com/AeternaLabsHQ/pullmd/commit/96448894cc93ccecb0bdcbf263a9d25390a8455e)
- [github.com](https://github.com/AeternaLabsHQ/pullmd/issues/41)
- [github.com](https://github.com/AeternaLabsHQ/pullmd/pull/42)
- [github.com](https://github.com/AeternaLabsHQ/pullmd/releases/tag/v3.3.0)
- [vuldb.com](https://vuldb.com/cve/CVE-2026-76795)
- [vuldb.com](https://vuldb.com/submit/879954)
- [vuldb.com](https://vuldb.com/vuln/393282)
- [vuldb.com](https://vuldb.com/vuln/393282/cti)
