CVE-2026-69198
Beschrijving NL
ip-adres is een bibliotheek voor het parseren en manipuleren van IPv4- en IPv6-adressen in JavaScript. Van 10.1.1 tot 10.2.2 is elke classificatiemethode voor speciaal gebruik gebaseerd op isInSubnet, dat kortsluit naar false wanneer het eigen subnetmasker van het adres korter is dan het masker van het referentiebereik. Dat masker komt letterlijk van het CIDR-achtervoegsel op de geparseerde invoer, dus het toevoegen van een achtervoegsel zoals /0 onderdrukt de classificatie volledig: isLoopback (), isPrivate (), isLinkLocal (), isCGNAT (), isMulticast (), isUnspecified (), isBroadcast (), isULA () en getType() rapporteren allemaal een intern adres als onleesbaar, terwijl correctForm () en adres nog steeds het echte interne doel retourneren. Een applicatie die op basis van deze controles een beslissing over de vertrouwensgrens van het netwerk bouwt, bijvoorbeeld een filter dat bedoeld is om Server-Side Request Forgery of SSRF te blokkeren, kan daarom een intern doelwit als extern behandelen en het verzoek toestaan. De onderliggende bitvergelijking is correct en masker(n) retourneert al de eerste n bits van het volledige geparseerde adres onafhankelijk van subnetMask; het defect is alleen dat de containment guard in het classificatiepad zit. Dit probleem is opgelost in versie 10.2.2.
Origineel (Engels) tonen
ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript. From 10.1.1 until 10.2.2, every special-use classification method is built on isInSubnet, which short-circuits to false whenever the address's own subnet mask is shorter than the reference range's mask. That mask comes verbatim from the CIDR suffix on the parsed input, so appending a suffix such as /0 suppresses classification entirely: isLoopback(), isPrivate(), isLinkLocal(), isCGNAT(), isMulticast(), isUnspecified(), isBroadcast(), isULA(), and getType() all report an internal address as unremarkable, while correctForm() and address still return the real internal target. An application that builds a network trust-boundary decision on these checks, for example a filter intended to block Server-Side Request Forgery, or SSRF, may therefore treat an internal target as external and allow the request. The underlying bit comparison is correct, and mask(n) already returns the first n bits of the full parsed address independently of subnetMask; the defect is solely that the containment guard sits in the classification path. This issue is fixed in version 10.2.2.