Skip to main content
Vulnerability Database/CVE-2026-114374

CVE-2026-114374: wiki-go SSRF Vulnerability

CVE-2026-114374 is a server-side request forgery flaw in leomoon-studios wiki-go that enables remote attackers to manipulate server requests through the fetch-metadata endpoint. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114374 Overview

CVE-2026-114374 is a server-side request forgery (SSRF) vulnerability in leomoon-studios wiki-go up to version 1.9.1. The flaw resides in the fetch-metadata endpoint, implemented in internal/handlers/metadata_api.go. An authenticated remote attacker with low privileges can manipulate the metadata fetch function to issue arbitrary outbound HTTP requests from the server. This enables probing of internal services, cloud metadata endpoints, and other network resources normally unreachable from outside the host. The maintainers released a fix in version 1.9.2 under commit 25498ebf5c012b870967e38eec2a1e5133fa1a83. Public exploit information is referenced in the VulDB entry for the issue.

Critical Impact

An authenticated attacker can coerce the wiki-go server into sending HTTP requests to internal network destinations, including cloud instance metadata services such as 169.254.169.254.

Affected Products

  • leomoon-studios wiki-go versions up to and including 1.9.1
  • Component: fetch-metadata endpoint in internal/handlers/metadata_api.go
  • Fixed in: wiki-go 1.9.2

Discovery Timeline

  • 2026-10-21 - CVE-2026-114374 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114374

Vulnerability Analysis

The vulnerability is classified as a server-side request forgery issue [CWE-918]. The fetch-metadata endpoint in internal/handlers/metadata_api.go accepts a user-supplied URL and performs an HTTP request to retrieve metadata such as page titles or OpenGraph data. Prior to the fix, the handler did not validate the destination host or resolved IP address before issuing the request. An authenticated user could supply URLs targeting loopback addresses, link-local ranges, or cloud provider metadata endpoints. The server would dutifully fetch those URLs and return response data to the caller, enabling reconnaissance and in some environments credential theft from instance metadata services.

Root Cause

The root cause is the absence of an outbound URL policy on the metadata fetch handler. The code accepted any syntactically valid URL and allowed the HTTP client to follow redirects without re-validating resolved IP addresses. There was no enforcement against private, link-local, or carrier-grade NAT ranges, and no restriction on known cloud metadata endpoints such as 169.254.169.254 (AWS/GCP), 168.63.129.16 (Azure), or fd00:ec2::254 (AWS IPv6).

Attack Vector

Exploitation requires network access to the wiki-go instance and valid low-privilege credentials. The attacker submits a crafted request to the fetch-metadata endpoint with a URL pointing at an internal service. The server-side HTTP client resolves the host and performs the request, returning response metadata to the attacker. Chaining with HTTP redirects can bypass naive host allow-lists that only inspect the initial URL.

go
// Patch excerpt: internal/handlers/metadata_url_policy.go
// Source: https://github.com/leomoon-studios/wiki-go/commit/25498ebf5c012b870967e38eec2a1e5133fa1a83

package handlers

import (
    "context"
    "fmt"
    "net"
    "net/url"
    "strconv"
    "strings"
)

type metadataHostnameResolver interface {
    LookupIPAddr(context.Context, string) ([]net.IPAddr, error)
}

var metadataProhibitedNetworks = []*net.IPNet{
    mustParseMetadataNetwork("169.254.0.0/16"),
    mustParseMetadataNetwork("100.64.0.0/10"),
    mustParseMetadataNetwork("168.63.129.16/32"),
    mustParseMetadataNetwork("fd00:ec2::254/128"),
}

// validateOutboundMetadataURL validates the initial destination before a
// metadata request is created. Connection-time and redirect validation reuse
// this policy in the metadata HTTP client.
func validateOutboundMetadataURL(ctx context.Context, rawURL string, resolver metadataHostnameResolver) (*url.URL, error) {
    parsedURL, err := url.Parse(rawURL)
    if err != nil {
        return nil, fmt.Errorf("parse metadata URL: %w", err)
    }
    // ... additional host/IP validation follows
}

The patch introduces a dedicated URL policy module that enumerates prohibited networks and validates destinations at parse time, connection time, and on redirects.

Detection Methods for CVE-2026-114374

Indicators of Compromise

  • Outbound HTTP requests from the wiki-go process to 169.254.169.254, 168.63.129.16, or RFC1918 ranges that are not part of normal operation.
  • Access log entries targeting the fetch-metadata endpoint with URL parameters pointing at internal hostnames, loopback, or link-local addresses.
  • Unexpected DNS lookups originating from the wiki-go host for internal service names.

Detection Strategies

  • Review wiki-go HTTP access logs for repeated requests to fetch-metadata from a single authenticated user with varying url parameters.
  • Correlate wiki-go process network telemetry with destination IPs falling into cloud metadata, loopback, or private address ranges.
  • Deploy egress proxy rules that log and alert when the wiki-go workload initiates connections to disallowed destinations.

Monitoring Recommendations

  • Enable per-process egress logging on the host running wiki-go and ingest the data into a central analytics platform for anomaly detection.
  • Alert on any HTTP response from the server containing content lengths or payloads consistent with cloud instance metadata documents.
  • Track authenticated usage patterns of the fetch-metadata endpoint and baseline typical destinations to identify outliers.

How to Mitigate CVE-2026-114374

Immediate Actions Required

  • Upgrade wiki-go to version 1.9.2 or later, which contains commit 25498ebf5c012b870967e38eec2a1e5133fa1a83.
  • Audit application logs for prior invocations of the fetch-metadata endpoint targeting internal addresses.
  • Rotate any cloud instance credentials that may have been exposed through the instance metadata service.

Patch Information

The upstream fix is available in the GitHub Release v1.9.2 and the corresponding GitHub Commit 25498ebf. Additional context is published in GitHub Security Advisory GHSA-7q4p-98g4-pwp7 and tracked at VulDB CVE-2026-114374.

Workarounds

  • Restrict egress from the wiki-go workload with a host or network firewall that blocks access to 169.254.0.0/16, 100.64.0.0/10, 168.63.129.16/32, fd00:ec2::254/128, and internal RFC1918 ranges that the application does not need to reach.
  • On cloud instances, enforce Instance Metadata Service v2 (IMDSv2) with hop limit 1 to prevent proxied metadata retrieval.
  • Temporarily disable or network-restrict the fetch-metadata endpoint until the upgrade can be applied.
bash
# Example: block outbound access to common cloud metadata endpoints
# from the host running wiki-go using iptables
iptables -A OUTPUT -m owner --uid-owner wiki-go -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner wiki-go -d 168.63.129.16 -j REJECT
ip6tables -A OUTPUT -m owner --uid-owner wiki-go -d fd00:ec2::254 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.