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-69198

CVE-2026-69198: Server-Side Request Forgery Bypass via CIDR Suffix in ip-address Library

Amit Schendel
Amit Schendel
Senior Security Researcher

Aug 4, 2026·6 min read·111 visits

Executive Summary (TL;DR)

A design flaw in the `ip-address` library's classification logic allows attackers to bypass SSRF filters. Adding a `/0` suffix short-circuits internal checks, making local/private IPs look public.

An input validation vulnerability in the npm package `ip-address` allows unauthenticated remote attackers to bypass Server-Side Request Forgery (SSRF) protections by appending a `/0` CIDR suffix to IP address strings. This causes the library's classification helper functions to incorrectly identify internal addresses as public, external addresses, while normalization helpers resolve the address back to its internal form during network connection establishment.

Vulnerability Overview

The npm library ip-address is a widely utilized package for parsing, validating, and manipulating IPv4 and IPv6 addresses within Node.js applications. A critical utility of such a library is providing trust-boundary checks, enabling developers to classify IP addresses into categories such as private, loopback, or link-local. These classifications are frequently used to enforce Server-Side Request Forgery (SSRF) defenses, blocking connections to internal networks.

The vulnerability designated as CVE-2026-69198 (GHSA-4xrf-jv44-h6hh) arises from a fundamental confusion between network containment semantics and host address classification. When parsing user-supplied IP addresses containing trailing CIDR suffixes, the library evaluates these addresses against reference internal ranges. Because of an incorrect short-circuit guard in the comparison logic, appending a /0 suffix causes the library to treat local and private addresses as external, while other methods still return the normalized, unmasked local address.

This flaw results in a complete bypass of security boundaries in applications that rely on isPrivate(), isLoopback(), or similar classification functions to restrict outgoing connections. Because the connection logic subsequently normalizes the address back to the actual local target, the application executes requests to internal hosts under the assumption that they are safe external targets.

Root Cause Analysis

The underlying flaw is located in the isInSubnet method, defined within the common codebase (src/common.ts). This method was designed to serve two distinct functions: validating whether a network range is fully enclosed by another subnet, and checking if an individual IP address matches a predefined classification range (such as RFC 1918 or Loopback blocks).

To determine containment, the library evaluates if the subnet mask of the current parsed IP is narrower than the reference range mask. It does so using the guard clause if (this.subnetMask < address.subnetMask) { return false; }. If an attacker inputs an IP address with a /0 prefix, such as 127.0.0.1/0, the parsed object is instantiated with a subnetMask property of 0.

When the application invokes a helper classifier like isLoopback(), the library compares the input instance to the static loopback subnet (e.g., 127.0.0.0/8 for IPv4). Inside isInSubnet, the evaluation is mapped as this.subnetMask < address.subnetMask, which evaluates to 0 < 8. Because this comparison is true, the method immediately returns false. This short-circuit bypasses the actual bitwise comparison of the IP address, leading the library to report that 127.0.0.1/0 is not a loopback address.

Code Analysis

A side-by-side analysis of the vulnerable and patched code reveals how the boundary checks were separated. In the vulnerable version of src/common.ts, the implementation of isInSubnet conflated host classification and network containment.

// Vulnerable Implementation in src/common.ts
export function isInSubnet(this: Address4 | Address6, address: Address4 | Address6) {
  // If the input address has a smaller mask (wider subnet) than the reference range,
  // it immediately returns false. This is incorrect for host classification.
  if (this.subnetMask < address.subnetMask) {
    return false;
  }
 
  if (this.mask(address.subnetMask) === address.mask()) {
    return true;
  }
 
  return false;
}

The patch merged in version 10.2.2 resolves this issue by introducing isHostInSubnet. This function evaluates only the host bits against the reference mask, intentionally ignoring the parsed address's own subnet mask property.

// Patched Implementation in src/common.ts
export function isInSubnet(this: Address4 | Address6, address: Address4 | Address6) {
  if (this.subnetMask < address.subnetMask) {
    return false;
  }
 
  return isHostInSubnet.call(this, address);
}
 
export function isHostInSubnet(this: Address4 | Address6, address: Address4 | Address6) {
  // Directly performs the mask comparison without evaluating the input's subnet mask
  return this.mask(address.subnetMask) === address.mask();
}

Additionally, the library's classifiers in src/ipv4.ts and src/ipv6.ts were refactored to consume isHostInSubnet instead of isInSubnet. This ensures that classification results remain consistent and are not influenced by the user-defined CIDR suffix.

Exploitation Methodology

An attacker targeting an SSRF protection filter can exploit this vulnerability by submitting a crafted IP string with a /0 suffix. The typical attack flow starts with the target application accepting user-supplied network input to perform an outbound request, validating the destination IP using the library's built-in checks prior to execution.

const { Address4 } = require('ip-address');
const axios = require('axios');
 
// Vulnerable application handler
async function fetchExternalResource(userInput) {
  const parsed = new Address4(userInput);
 
  // The filter attempts to block internal loopback/private destinations
  if (parsed.isPrivate() || parsed.isLoopback()) {
    throw new Error("Forbidden address");
  }
 
  // Normalization ignores the CIDR block, resolving the string to '127.0.0.1'
  const safeUrl = `http://${parsed.correctForm()}/endpoint`;
  return await axios.get(safeUrl);
}

If the attacker inputs 127.0.0.1/0, the security checks return false, allowing the execution to proceed. When the HTTP client establishes the connection, it connects directly to 127.0.0.1. The application makes the connection internally, bypassing the SSRF defense entirely.

Impact Assessment

The impact of CVE-2026-69198 is severe for applications that rely on the library to maintain trust boundaries. By bypassing the private and loopback filters, an unauthenticated attacker can force the backend application server to interact with arbitrary internal network services.

This enables attackers to access restricted internal endpoints, cloud metadata services (e.g., AWS IMDSv1/v2 at 169.254.169.254), internal databases, and administration consoles. In microservice architectures, this bypass allows complete lateral movement, potentially leading to unauthorized data exposure, configuration modification, or remote code execution via vulnerable internal APIs.

While the CVSS base score is 6.9, the impact on subsequent systems is high (SC:H). This indicates that although the host library itself does not suffer direct data modification or service interruption, the backend infrastructure exposed by the SSRF bypass faces severe confidentiality threats.

Remediation and Mitigation

The primary remediation path is upgrading the ip-address dependency to version 10.2.2 or later. This version correctly implements host classification and prevents CIDR suffixes from affecting loopback or private range checks.

For legacy deployments where immediate package upgrades are not feasible, developers must implement strict input sanitization. All user-supplied IP strings should be stripped of CIDR suffixes prior to parsing. This can be achieved using a regular expression to validate the absence of the / character, or by manually truncating the string at the first occurrence of the forward slash.

// Temporary Workaround: Strip CIDR suffix before parsing
function sanitizeIpInput(input) {
  const parts = input.split('/');
  return parts[0]; // Retains only the host portion
}

Additionally, security teams should audit internal codebases for direct calls to isInSubnet. If custom code calls isInSubnet directly to validate host containment against a private range, it must be migrated to isHostInSubnet to prevent similar bypass techniques.

Fix Analysis (1)

Technical Appendix

CVSS Score
6.9/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N

Affected Systems

Node.js applications using `ip-address` version >= 10.1.1 and < 10.2.2 for input validation and SSRF defenses

Affected Versions Detail

Product
Affected Versions
Fixed Version
ip-address
beaugunderson
>= 10.1.1, < 10.2.210.2.2
AttributeDetail
CWE IDCWE-20, CWE-918
Attack VectorNetwork (AV:N)
CVSS Score6.9 (Medium)
Exploit StatusProof of Concept available
KEV StatusNot Listed
ImpactServer-Side Request Forgery Bypass

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1005Data from Local System
Collection
CWE-20
Improper Input Validation

The product receives input that is intended to be parsed or validated but lacks correct, comprehensive, or isolated validation checks, leading to a bypass of security controls.

Vulnerability Timeline

Official patch fix committed
2026-07-25
Library version 10.2.2 released
2026-07-25
GitHub Security Advisory GHSA-4xrf-jv44-h6hh published
2026-08-03
NVD details published for CVE-2026-69198
2026-08-03

References & Sources

  • [1]GitHub Security Advisory GHSA-4xrf-jv44-h6hh
  • [2]Fix Commit 488fe9bc7c35363b4b090494fc38c266d217740d
  • [3]GitHub Release v10.2.2

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

•40 minutes ago•CVE-2026-114155
7.5

CVE-2026-114155: Local Elevation of Privilege via TOCTOU Race Condition in Microsoft .NET dotnet-watch

CVE-2026-114155 is a local elevation of privilege vulnerability affecting Microsoft .NET on Linux and macOS platforms. The vulnerability exists within the dotnet-watch (Hot Reload) component and is caused by a Time-of-Check Time-of-Use (TOCTOU) race condition (CWE-367) during the generation and execution of temporary XML solution files (.slnx) in shared system temporary directories. A local attacker with low privileges can intercept and modify the temporary solution file before MSBuild evaluates it, achieving arbitrary code execution in the security context of the user running dotnet-watch.

Alon Barad
Alon Barad
1 views•9 min read
•about 2 hours ago•CVE-2026-118748
7.5

CVE-2026-118748: Unbounded Memory Allocation Denial of Service in ASP.NET Core Blazor Static-SSR

CVE-2026-118748 is a remote Denial of Service (DoS) vulnerability in Microsoft ASP.NET Core (.NET 11.0 preview releases prior to 11.0.0) and Microsoft Visual Studio 2026 (prior to 18.12.0). The flaw originates from unbounded resource allocation (CWE-770) within the Blazor static server-side rendering (static-SSR) validation pipeline, where dynamic or attacker-supplied form field identifiers are cached in a singleton-scoped memory structure without size limits or eviction policies. Unauthenticated remote attackers can exploit this condition over the network by sending repeated HTTP requests with unique field names, exhausting heap memory and terminating the host process via an unhandled OutOfMemoryException.

Alon Barad
Alon Barad
3 views•9 min read
•about 3 hours ago•CVE-2026-114150
5.9

CVE-2026-114150: Remote Information Disclosure via Uninitialized Pooled Memory in ASP.NET Core Response Buffering

CVE-2026-114150 is a network-accessible information disclosure vulnerability affecting Microsoft ASP.NET Core in .NET 11.0 preview releases and Microsoft Visual Studio 2026 prior to version 18.12.0. The flaw stems from the use of uninitialized resources (CWE-908) within response buffering components, specifically ResponseBufferingStream used by middleware such as HTTP Logging and Output Caching. Because rented memory segments from ArrayPool<byte> or MemoryPool<byte> are not cleared upon return or strictly bounded to the exact written byte count during subsequent reads, residual response payloads from earlier HTTP requests remain in the buffer tail. Downstream consumers or log sinks reading these buffers expose confidential cross-session data, including authentication tokens and personally identifiable information.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 4 hours ago•CVE-2026-114146
9.0

CVE-2026-114146: Elevation of Privilege in ASP.NET Core SignalR Connection Dispatcher

An incorrect authorization vulnerability (CWE-863) exists in the ASP.NET Core SignalR HTTP Connection Dispatcher (`Microsoft.AspNetCore.Http.Connections`). The connection negotiation process failed to bind the authenticated caller identity to the generated connection state, and subsequent transport or message dispatch handlers failed to verify caller consistency. Consequently, an authenticated low-privilege attacker who obtains a valid connection identifier or token can inject messages into or hijack another user's SignalR session, achieving an elevation of privilege across security boundaries.

Alon Barad
Alon Barad
5 views•11 min read
•about 5 hours ago•CVE-2026-109478
7.5

CVE-2026-109478: Algorithmic Complexity Denial of Service in ASP.NET Core Header Parsing

CVE-2026-109478 is a network-accessible Denial of Service (DoS) vulnerability in ASP.NET Core caused by inefficient algorithmic complexity (CWE-407) when parsing comma-separated HTTP request headers. Prior to the patch, the internal helper method ParsingHelpers.GetHeaderSplit repeatedly called StringValues.Concat inside a loop iterating over each comma-separated token. Because StringValues allocates a new array of size k + 1 and copies all existing elements upon each concatenation, processing N tokens incurs O(N^2) time and space complexity. An unauthenticated remote attacker can send HTTP requests with headers containing thousands of short, comma-separated values to exhaust CPU cycles and induce severe Garbage Collection (GC) pauses, rendering the web application unresponsive.

Alon Barad
Alon Barad
6 views•11 min read
•about 6 hours ago•CVE-2026-114147
7.5

CVE-2026-114147: Denial of Service via Memory Leak in ASP.NET Core SignalR Redis Backplane

CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.

Amit Schendel
Amit Schendel
3 views•10 min read