Sep 29, 2026·6 min read·22 visits
A logic bug in the ip-address library (< 10.5.1) causes isLinkLocal() to fail to identify valid link-local IPv6 addresses outside the fe80::/64 subnet, enabling SSRF bypasses.
A validation bypass exists in the ip-address library prior to version 10.5.1. The Address6.isLinkLocal() method inaccurately restricted link-local classifications to the fe80::/64 subnet, failing to cover the complete RFC 4291 fe80::/10 allocation. This allows attackers to bypass SSRF filters relying on this library to safeguard local network boundaries.
The ip-address npm package is a widely utilized utility library in JavaScript and TypeScript environments for parsing, validating, and manipulating IPv4 and IPv6 network addresses. Applications frequently employ this library within input validation pipelines and security boundary checks to prevent Server-Side Request Forgery (SSRF) and to restrict outbound connections to designated safe ranges.
This vulnerability, tracked as CVE-2026-101913, stems from an incorrect classification logic in the library's link-local check. It is categorized under CWE-697 (Incorrect Comparison) and can lead directly to CWE-918 (Server-Side Request Forgery).
The attack surface exists anywhere user-controlled input is parsed by Address6 and filtered using the isLinkLocal() method before initiating outbound server requests. Because the library fails to identify certain valid link-local addresses, security filters are bypassed, exposing local physical or virtual networks to unauthorized access.
According to RFC 4291 §2.4, the prefix fe80::/10 is reserved globally for IPv6 link-local unicast communications. This allocation spans a broad range of addresses from fe80:: to febf::, requiring only the first 10 bits of the address structure to match the binary sequence 1111 1110 10. Operating systems, network cards, and routing frameworks natively recognize the entire /10 subnet as link-local.
In versions of the ip-address library prior to version 10.5.1, the validation logic in Address6.isLinkLocal() was restricted to a static, hardcoded comparison against a 64-bit binary literal string. This comparison enforced that bits 10 through 63 must be strictly set to zero, matching only the fe80::/64 prefix commonly utilized by Stateless Address Autoconfiguration (SLAAC).
This narrow evaluation introduced a logical discrepancy between the library's validation and the system's underlying routing engine. When an input address like fe81::1 or fe80:0:0:1::1 was parsed, isLinkLocal() returned false. However, the host operating system's networking stack resolved and routed the subsequent outbound packets to adjacent hosts on the local link, creating a complete security boundary bypass.
To understand the exact programmatic mistake, let us analyze the code transition in src/ipv6.ts that occurred in version 10.5.1. The old code utilized a strict string check that was highly brittle and did not scale to proper subnet masking.
Here is the comparison between the vulnerable and patched code paths:
// VULNERABLE CODE - ip-address <= 10.5.0
isLinkLocal(): boolean {
if (this.is4()) {
const embedded = this.embeddedIPv4();
if (embedded) {
return embedded.isLinkLocal();
}
}
// Zeroes are required, i.e. we can't check isHostInSubnet with 'fe80::/10'
if (
this.getBitsBase2(0, 64) ===
'1111111010000000000000000000000000000000000000000000000000000000'
) {
return true;
}
return false;
}// PATCHED CODE - ip-address >= 10.5.1
isLinkLocal(): boolean {
if (this.is4()) {
const embedded = this.embeddedIPv4();
if (embedded) {
return embedded.isLinkLocal();
}
}
// Delegation to the proper subnet validation engine using the correct /10 definition
return this.isHostInSubnet(LINK_LOCAL_SUBNET);
}In the patched version, the developer registered LINK_LOCAL_SUBNET as a static Address6 instance containing 'fe80::/10'. By delegating the evaluation to the existing isHostInSubnet() mechanism, the library correctly evaluates the first 10 bits and ignores any variations in the subsequent bits, resolving the logical error.
Exploiting this validation flaw requires minimal effort and is highly reliable since the vulnerability depends solely on logical comparison differences between the application and the network layer. The prerequisites are an unauthenticated input interface that executes HTTP requests or TCP connections and validates the destination using ip-address.
The exploit flow starts with the attacker generating a target address that resides within the fe80::/10 range but outside the fe80::/64 boundary. An example of such an address is fe80:0:0:1::1 or fe81::1. The attacker supplies this IP inside a payload to the vulnerable endpoint (e.g., http://[fe81::1]/status).
When the endpoint parses the input, the validation wrapper invokes isLinkLocal(), which returns false due to the logical limitation. The security check is bypassed, and the HTTP client executes the request. The underlying system socket routes the packet to the local interface, establishing a connection with adjacent administrative interfaces or services on the local link.
Here is a visual representation of the attack execution path:
The primary risk associated with this vulnerability is unauthenticated Server-Side Request Forgery (SSRF). Attackers can leverage the bypass to reach adjacent internal systems, local administrative interfaces, and local hypervisor metadata endpoints that are typically restricted from external network access.
While the scope of the attack is constrained to link-local adjacent assets, the information leakage can be severe if local systems trust adjacent nodes without authentication. This vulnerability allows port scanning of the local link, interaction with adjacent system services, and potential extraction of configuration data.
The vulnerability is assessed with a CVSS v4.0 base score of 6.3 (Medium). The score reflects a Network-based, Low complexity attack vector that requires no privileges or user interaction, but results in Low confidentiality impact on both the vulnerable system and subsequent systems (VC:L, SC:L).
The recommended remediation is to upgrade the ip-address dependency to version 10.5.1 or higher. This update replaces the flawed comparison logic with robust subnet-mask evaluations for the complete fe80::/10 range.
npm install ip-address@10.5.1If immediate package upgrade is impossible, developers can mitigate the flaw by implementing a manual prefix check. The application should reject any IPv6 address where the first 10 bits in binary translate to 1111111010 (corresponding to the fe80::/10 space).
Additionally, applications should adopt defensive-in-depth principles. This includes pinning the IP address resolved from DNS immediately, enforcing zero-trust egress rules at the network layer, and restricting local link-local routing rules for application host systems.
| Attribute | Detail |
|---|---|
| CWE ID | CWE-697, CWE-918 |
| Attack Vector | Network (Unauthenticated) |
| CVSS v4.0 | 6.3 (Medium) |
| EPSS Status | Not yet listed |
| Impact | Bypass of SSRF network boundary controls |
| Exploit Status | No active wild exploitation tracked |
| KEV Status | Not listed |
CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.
An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.