Aug 3, 2026·6 min read·322 visits
A parser discrepancy in 'ip-address' validates leading-zero IPv4 octets as decimal (e.g. '012' -> 12) while network stacks resolve them as octal (e.g. '012' -> 10). This differential allows unauthenticated attackers to bypass internal IP filters and execute Server-Side Request Forgery (SSRF).
CVE-2026-69192 is a critical parser differential vulnerability in the 'ip-address' JavaScript library (versions <= 10.3.0). The library parses IPv4 octets containing leading zeros as base-10 (decimal), whereas standard system resolvers and web environments parse them as base-8 (octal). This discrepancy allows remote attackers to bypass SSRF guards and route malicious requests to internal RFC 1918 networks.
The 'ip-address' JavaScript library is a widely utilized dependency for parsing, validating, and manipulating IPv4 and IPv6 addresses. Applications frequently leverage this package within security-critical components, such as input sanitizers and Server-Side Request Forgery (SSRF) protection layers, to validate user-supplied hostnames before issuing outbound HTTP requests.
The core of the vulnerability lies in a parser differential between the validation library and the downstream network resolution environments. While the 'ip-address' library parses input strings in a specific format, the runtime network APIs (such as Node.js's network client, getaddrinfo, and operating system resolvers) decode those same inputs differently. This structural inconsistency creates a blind spot where security boundaries can be systematically bypassed.
The vulnerability is classified under CWE-918 (Server-Side Request Forgery) and CWE-20 (Improper Input Validation). By constructing an IPv4 address containing octets with leading zeros, an unauthenticated remote attacker can force the application to treat an internal IP address as public, bypassing the intended security filters and routing arbitrary traffic to restricted resources.
The root cause of this vulnerability is a fundamental semantic mismatch during the parsing of IPv4 octets. In versions of 'ip-address' prior to 10.3.1, the library used regular expressions to identify decimal segments and subsequently converted these string segments to numeric representations using parseInt(part, 10). The inclusion of the explicit radix of 10 instructed the engine to interpret the string strictly in base-10, disregarding any leading zero markers.
For example, if an attacker provides the string '012.0.0.1', the library validates each group independently. The first group, '012', is decoded via parseInt('012', 10) to yield the decimal value 12. Consequently, the library reconstructs the normalized IP as '12.0.0.1'. Since this IP address belongs to a public class A range, validation methods like isPrivate() or isLoopback() return a boolean false value, indicating the address is safe to access.
Conversely, standard network resolution environments follow different decoding rules. Under the POSIX standard and systems implementing inet_aton or getaddrinfo, any numeric octet prefixed with a leading zero is evaluated as an octal (base-8) representation rather than base-10. Under this interpretation, the octet '012' is converted to (1 * 8^1) + (2 * 8^0) = 10. The resulting network address resolves to '10.0.0.1', which is a private RFC 1918 Class A IP address.
The vulnerability was addressed in version 10.3.1 by modifying the regular expression used for address validation and adding pre-checks within the parser. In the vulnerable version, the library relied on RE_ADDRESS in src/v4/constants.ts to identify valid IPv4 addresses. This regex allowed optional leading zeros ([01]?[0-9][0-9]?) which allowed multi-digit octets like 012 to pass validation.
// VULNERABLE REGEX IN src/v4/constants.ts
export const RE_ADDRESS =
/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g;The patch modified the regular expression to explicitly disallow multi-digit octets from starting with zero. In the updated implementation, single-digit octets 0-9 are allowed, and double-digit octets 10-99 or triple-digit octets 100-255 must begin with a non-zero character. This change prevents the parsing of octal representation formats.
// PATCHED REGEX IN src/v4/constants.ts
export const RE_ADDRESS =
/^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/g;Additionally, explicit defensive checks were introduced in the initialization pipeline in src/ipv4.ts. The parser now inspects each dot-separated segment using a simple lookahead pattern /^0\d/ to throw an explicit AddressError when leading zeroes are detected before matching against the main regex.
// DEFENSIVE CHECKS ADDED IN src/ipv4.ts
parse(address: string) {
const groups = address.split('.');
if (groups.some((group) => /^0\d/.test(group))) {
throw new AddressError("IPv4 addresses can't have leading zeroes.");
}
if (!address.match(constants.RE_ADDRESS)) {
throw new AddressError('Invalid IPv4 address.');
}
}An attacker can exploit this vulnerability by submitting a crafted URL where the host portion is formatted with leading-zero IPv4 octets. In a typical scenario, an target application accepts a user-provided URL and parses the hostname to verify if it points to a restricted internal address. Because the validation layer uses ip-address, the hostname passes the check as safe.
The target application, after allowing the connection, passes the original un-normalized URL to its HTTP client (such as Axios or Node's http module). The underlying HTTP client depends on the runtime environment or system-level resolvers to resolve the hostname. The resolver decodes the leading-zero octet in octal, establishing a connection to the internal network instead of the public network representation recognized by ip-address.
This behavior bypasses blacklist and whitelist defenses. For instance, the system may prevent requests to '10.0.0.0/8', but a request to '010.0.0.1' translates to '8.0.0.1' (public) in ip-address, while standard network environments route it to '8.0.0.1' as well. In contrast, '012.0.0.1' translates to public '12.0.0.1' in ip-address, but routes to '10.0.0.1' in the system resolver, executing SSRF.
The impact of CVE-2026-69192 is high because it allows attackers to bypass boundary restrictions designed to protect private services. By leveraging this vulnerability, a remote attacker can interact with internal web servers, metadata APIs, container orchestration interfaces, or databases that are otherwise inaccessible from the public internet.
When deployed within cloud environments, SSRF can lead to the compromise of cloud credentials via access to metadata services (such as AWS IMDSv1 at 'http://169.254.169.254' or equivalent metadata endpoints in Google Cloud and Azure). Although IMDSv2 provides mitigation via session tokens, many environments still fall back to IMDSv1, rendering them vulnerable to total host takeover.
The vulnerability is tracked with a CVSS v4.0 score of 7.7, reflecting a high impact on subsequent systems. While the direct confidentiality of the target server itself is not immediately violated by the parsing library itself, the library is a critical validation control, meaning its failure directly compromises the confidentiality and integrity of subsequent internal targets.
The primary remediation strategy is upgrading the ip-address library to version 10.3.1 or higher. This update restricts the syntax allowed by the library to match strict standard dot-decimal notation, throwing a clean parsing error for any ambiguous representations.
For systems where an immediate package upgrade is not feasible, developers should implement a pre-validation filter. This filter can scan the input IP string and reject it if any octet contains a leading zero. A simple regular expression such as /\b0\d+/ can identify invalid segments in the hostname before passing the string to the validation library.
Additionally, defense-in-depth principles should be applied at the network layer. Rather than relying solely on application-level validations, organizations should implement strict egress firewalls and network segmentation. Isolating the application servers from internal administrative interfaces prevents successful SSRF even if the application-level validation is bypassed.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
ip-address beaugunderson | < 10.3.1 | 10.3.1 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-918 |
| Attack Vector | Network |
| CVSS v4.0 Score | 7.7 |
| Exploit Status | Proof of Concept |
| Impact | Server-Side Request Forgery |
| Vulnerable Component | Address4 Class |
| Remediation Status | Official Patch Released |
The web server receives a URL or similar vector from an upstream source and does not validate it properly before executing the connection, allowing an attacker to force the server to connect to arbitrary destinations.
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.
CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.