CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-50131

CVE-2026-50131: Server-Side Request Forgery Validation Bypass in Fedify

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 14, 2026·8 min read·31 visits

Executive Summary (TL;DR)

Incomplete IP validation in Fedify enables unauthenticated remote attackers to bypass SSRF protections and access internal services by using CGNAT, benchmarking, and IPv6 transition IP addresses.

Fedify, a TypeScript framework for ActivityPub servers, implemented incomplete public URL validation inside the @fedify/fedify and @fedify/vocab-runtime libraries. The validator only blocked basic RFC 1918 networks, standard loopbacks, and link-local addresses, failing to restrict Carrier-Grade NAT (CGNAT), benchmarking, reserved, or IPv6 transition addresses. Consequently, unauthenticated remote attackers can bypass SSRF filters to access sensitive internal microservices and endpoints.

Vulnerability Overview

The vulnerability is an unauthenticated Server-Side Request Forgery (SSRF) in Fedify, an ActivityPub server framework written in TypeScript. Fedify allows developers to build federated server applications that exchange ActivityPub documents and media. Because federated interactions necessitate fetching resources from external servers, the system is exposed to external URLs supplied by users or peer federated servers.

To prevent SSRF, Fedify utilizes a validation mechanism named validatePublicUrl which verifies whether an IP address is a public, routable internet address before attempting a network connection. An analysis of the validation engine revealed that the framework failed to classify multiple special-use, reserved, and non-routable IP address ranges as private. Consequently, remote unauthenticated attackers can craft requests containing restricted IP addresses to bypass the validation boundaries and target internal network services.

The vulnerability is tracked as CVE-2026-50131 and has been assigned a CVSS v3.1 base score of 8.6, representing high severity. The underlying flaw resides within the custom IP validation utility functions distributed in the @fedify/fedify framework and its dependency utility package @fedify/vocab-runtime.

Root Cause Analysis

The root cause of CVE-2026-50131 lies in the flawed design and implementation of the IP address classification logic. Fedify attempted to determine whether an IP address is "public" by excluding a limited blocklist of known private subnets rather than adopting a robust, comprehensive CIDR range checking approach. The original validation logic in isValidPublicIPv4Address only evaluated basic subnets from RFC 1918, local loopback ranges, and standard link-local allocations.

Specifically, the validator parsed the target IP address string using a manual split on the dot separator and extracted the first and second octets as integers. It then checked if the first octet matched 10, 127, or 0. If so, or if the prefix fell inside 172.16.0.0/12 or 192.168.0.0/16, the address was marked invalid. This logic completely ignored Carrier-Grade NAT (CGNAT) address ranges defined by RFC 6598 (100.64.0.0/10), benchmarking ranges from RFC 2544 (198.18.0.0/15), documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24), multicast ranges (224.0.0.0/4), and future-use reserved ranges (240.0.0.0/4).

Furthermore, the validation of IPv6 addresses in isValidPublicIPv6Address was similarly incomplete. It expanded the IPv6 address and filtered out standard Unique Local Addresses (ULA) and link-local ranges but was incapable of parsing and resolving transition and tunneling mechanisms. For example, NAT64 networks use the prefix 64:ff9b::/96 to translate IPv4 packets into IPv6. Because the validator lacked translation mapping checks, an attacker could supply an IPv6-wrapped private IPv4 address (such as 64:ff9b::127.0.0.1), which would successfully bypass the validation routine and subsequently map to local loopback within a dual-stack configuration.

Code Analysis

An examination of the source code before and after the application of the patch highlights the exact architectural shift from naive string parsing to rigorous bitwise CIDR validation. The original vulnerable function in packages/vocab-runtime/src/url.ts is shown below:

// VULNERABLE CODE PATH
export function isValidPublicIPv4Address(address: string): boolean {
  const parts = address.split(".");
  const first = parseInt(parts[0]);
  if (first === 0 || first === 10 || first === 127) return false;
  const second = parseInt(parts[1]);
  if (first === 169 && second === 254) return false;
  if (first === 172 && second >= 16 && second <= 31) return false;
  if (first === 192 && second === 168) return false;
  return true;
}

The vulnerability is fixed in commit c5b46f82668edbc3ee17a466e259627d846da498. The developer rewrote the validation framework to use standard CIDR boundaries. The implementation parses the input address safely, validating that each octet consists strictly of decimal digits via the regex /^\d+$/ to block any radix-obfuscation vectors (such as octal or hex formats). The patched structure establishes an array of restricted ranges defined with accurate CIDR masks:

// PATCHED IMPLEMENTATION (Excerpt from url.ts)
const nonPublicIPv4Prefixes = [
  ipv4Prefix("0.0.0.0/8", "RFC 6890"),
  ipv4Prefix("10.0.0.0/8", "RFC 1918"),
  ipv4Prefix("100.64.0.0/10", "RFC 6598"), // Added CGNAT
  ipv4Prefix("127.0.0.0/8", "RFC 1122"),
  ipv4Prefix("169.254.0.0/16", "RFC 3927"),
  ipv4Prefix("172.16.0.0/12", "RFC 1918"),
  ipv4Prefix("192.0.0.0/24", "RFC 6890"),   // Added Protocol Assignments
  ipv4Prefix("192.0.2.0/24", "RFC 5737"),   // Added Documentation range
  ipv4Prefix("192.88.99.0/24", "RFC 7526"),  // Added 6to4 Anycast
  ipv4Prefix("192.168.0.0/16", "RFC 1918"),
  ipv4Prefix("198.18.0.0/15", "RFC 2544"),  // Added Benchmarking
  ipv4Prefix("198.51.100.0/24", "RFC 5737"), // Added Documentation range
  ipv4Prefix("203.0.113.0/24", "RFC 5737"),  // Added Documentation range
  ipv4Prefix("224.0.0.0/4", "RFC 5771"),     // Added Multicast
  ipv4Prefix("240.0.0.0/4", "RFC 1112"),     // Added Reserved
];

The updated validation engine iterates over the defined CIDR prefixes, performs bitwise operations on the numeric representation of the parsed IP address, and immediately rejects the target if any match occurs. Similarly, for IPv6, the code was updated to map well-known transition ranges back to their embedded IPv4 representations, which are then routed back into the secure IPv4 checker.

Exploitation Methodology

Exploitation of CVE-2026-50131 requires sending a crafted ActivityPub fetch request containing a reference to a target host that resolves to one of the non-blocked, private IP addresses. For example, if an internal API panel or metadata service is hosted on the Carrier-Grade NAT block 100.64.0.10, an attacker cannot query it directly from the internet. However, they can instruct the vulnerable Fedify instance to request a remote resource from that IP address.

To coordinate the attack, the adversary registers a DNS domain (e.g., trigger.internal.attacker-dns.com) and configures the domain's A record to point directly to 100.64.0.10. Next, the attacker submits an ActivityPub action (such as subscribing to an actor profile at https://trigger.internal.attacker-dns.com/actor) via the public endpoint of the vulnerable Fedify server. The server receives the URL, resolves the domain name using DNS, and obtains the IP address 100.64.0.10.

The server then executes validatePublicUrl() on the resolved address. Because the validation blocklist before version 1.9.12/2.0.19 did not contain 100.64.0.0/10, the check succeeds and evaluates the IP as public. The server proceeds to dispatch an HTTP GET request to http://100.64.0.10/actor. The attacker receives the internal server's response content via the application's outbound rendering pipeline, effectively executing an unauthenticated SSRF.

Impact Assessment

The impact of successful exploitation is substantial, particularly within modern containerized and cloud-native environments. Attackers can leverage the SSRF capability to conduct network port scanning against the internal subnet infrastructure, bypassing firewall perimeters and ingress controls. In doing so, they can map out internal services, databases, cache layers (such as Redis or Memcached), and administrative management consoles that are bound strictly to internal network interfaces.

In cloud environments (such as AWS, Azure, or GCP), modern systems heavily rely on local metadata services for credential management. While typical metadata endpoints (like 169.254.169.254) were theoretically blocked by the original validation logic, the presence of transition mechanisms in dual-stack networks or internal NAT proxies could still expose these services. The ability to query internal HTTP interfaces unauthenticated allows for potential local credential extraction, configuration theft, and further lateral movement within the compromised VPC.

The vulnerability is classified under CWE-918 (Server-Side Request Forgery) as the primary weakness, coupled with CWE-1286 and CWE-1389 due to the underlying parsing weaknesses. Given the lack of required privileges and the network vector, the CVSS base score is calculated at 8.6, reflecting the high potential for internal information disclosure and system manipulation.

Remediation and Defensive Measures

The primary remediation path requires immediately updating @fedify/fedify and @fedify/vocab-runtime dependencies to their corresponding patched releases. Multiple release branches have been maintained to facilitate upgrade paths: users on the 1.9.x branch must update to 1.9.12 or higher; users on 1.10.x must update to 1.10.11 or higher; users on 2.0.x must update to 2.0.19 or higher; users on 2.1.x must update to 2.1.15 or higher; and users on 2.2.x must update to 2.2.4 or higher.

In addition to applying software patches, developers must review whether their application is vulnerable to DNS Rebinding. Because the validation of the IP occurs during the hostname resolution phase, it is critical that the actual HTTP socket request binds strictly to the resolved and validated IP, rather than initiating a secondary DNS query during the actual HTTP fetch phase. Implementing a custom agent in the underlying HTTP client library that intercepts DNS resolution and enforces IP-level validation on the target socket connection is the most resilient architectural strategy.

At the network layer, egress filtering should be configured to prevent the application servers from initiating outbound connections to any internal subnet. By employing strict firewall rules or security groups that allow outbound traffic only to established external gateways and blocking all local loopback, CGNAT, and private address blocks, organizations can achieve a robust defense-in-depth posture that mitigates potential validation-bypass vulnerabilities.

Official Patches

FedifyGitHub Security Advisory GHSA-xw9q-2mv6-9fr8

Fix Analysis (1)

Technical Appendix

CVSS Score
8.6/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
EPSS Probability
0.27%
Top 81% most exploited

Affected Systems

Fedify@fedify/fedify@fedify/vocab-runtime

Affected Versions Detail

Product
Affected Versions
Fixed Version
@fedify/fedify
Fedify
>= 0.11.2, < 1.9.121.9.12
@fedify/fedify
Fedify
>= 1.10.0, < 1.10.111.10.11
@fedify/fedify
Fedify
>= 2.0.0, < 2.0.192.0.19
@fedify/fedify
Fedify
>= 2.1.0, < 2.1.152.1.15
@fedify/fedify
Fedify
>= 2.2.0, < 2.2.42.2.4
@fedify/vocab-runtime
Fedify
< 2.0.192.0.19
@fedify/vocab-runtime
Fedify
>= 2.1.0, < 2.1.152.1.15
@fedify/vocab-runtime
Fedify
>= 2.2.0, < 2.2.42.2.4
AttributeDetail
CWE IDCWE-918
Attack VectorNetwork (AV:N)
CVSS Score8.6
EPSS Score0.00269 (0.269%)
ImpactHigh Confidentiality, Low Integrity, Low Availability
Exploit StatusProof-of-Concept
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1005Data from Local System
Collection
CWE-918
Server-Side Request Forgery (SSRF)

The web server receives a URL or similar vector from an upstream source and retrieves the resource without thoroughly verifying that the resolved destination is a public, routable internet address.

Known Exploits & Detection

GitHubProof-of-Concept documentation and vulnerability index

Vulnerability Timeline

Initial branch version bumps prepared
2026-05-20
Technical fix committed (c5b46f82668edbc3ee17a466e259627d846da498) by Hong Minhee
2026-05-29
Maintenance branch pull requests merged
2026-06-02
Patched libraries published to registries
2026-06-04
Primary Security Advisory GHSA-xw9q-2mv6-9fr8 published
2026-06-08
Vulnerability officially published on CVE.org
2026-06-10

References & Sources

  • [1]GitHub Security Advisory GHSA-xw9q-2mv6-9fr8
  • [2]GitHub Repository - CVE-2026-50131 Analysis and PoC Index

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•1 day ago•CVE-2026-16454
4.3

CVE-2026-16454: Object-Level Authorization Bypass in Eclipse hawkBit Direct Device Integration Controller

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.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•CVE-2026-62284
8.6

CVE-2026-62284: Remote Code Execution and SSRF via Unsanitized Kubeconfig in OSAC Operator

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.

Amit Schendel
Amit Schendel
8 views•8 min read
•2 days ago•CVE-2026-62361
5.5

CVE-2026-62361: Authenticated SQL Injection and Table Access Control Bypass in Listmonk Subscriber Export

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

Alon Barad
Alon Barad
9 views•11 min read
•2 days ago•CVE-2026-28385
5.0

CVE-2026-28385: Server-Side Request Forgery in Canonical LXD Image Import

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.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

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

Alon Barad
Alon Barad
8 views•12 min read
•2 days ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

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.

Amit Schendel
Amit Schendel
8 views•9 min read