{"id":"CVE-2023-42282","aliases":["CVE-2023-42282","GHSA-78xj-cgh5-2h22"],"related":[],"kind":"vulnerability","state":"published","title":"NPM IP package incorrectly identifies some private IP addresses as public","summary":"The ip package before 1.1.9 for Node.js might allow SSRF because some IP addresses (such as 0x7f.1) are improperly categorized as globally routable via isPublic.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The ip package before 1.1.9 for Node.js might allow SSRF because some IP addresses (such as 0x7f.1) are improperly categorized as globally routable via isPublic.","source":"cvelist"},{"lang":"en","text":"The `isPublic()` function in the NPM package `ip` doesn't correctly identify certain private IP addresses in uncommon formats such as `0x7F.1` as private. Instead, it reports them as public by returning `true`. This can lead to security issues such as Server-Side Request Forgery (SSRF) if `isPublic()` is used to protect sensitive code paths when passed user input. Versions 1.1.9 and 2.0.1 fix the issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Un problema en el paquete IP NPM v.1.1.8 y anteriores permite a un atacante ejecutar código arbitrario y obtener información confidencial a través de la función isPublic().","source":"nvd"}],"published":"2024-02-08T00:00:00.000Z","modified":"2026-09-10T03:50:09.794Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"rating","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.1"}],"ecosystem":"npm","package":"ip","purl":"pkg:npm/ip","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.9"}],"ecosystem":"npm","package":"ip","purl":"pkg:npm/ip","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.1.9"},{"status":"affected","version":"2.0.0"}],"vendor":"fedorindutny","product":"ip","cpe":"cpe:2.3:a:fedorindutny:ip:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://cosmosofcyberspace.github.io/npm_ip_cve/npm_ip_cve.html","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/indutny/node-ip/commit/6a3ada9b471b09d5f0f5be264911ab564bf67894","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://huntr.com/bounties/bfc3b23f-ddc0-4ee7-afab-223b07115ed3/","tags":["exploit","technical-description","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240315-0008/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.bleepingcomputer.com/news/security/dev-rejects-cve-severity-makes-his-github-repo-read-only/","tags":["press/media-coverage","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-42282","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/JoshGlazebrook/socks/issues/93#issue-2128357447","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/github/advisory-database/pull/3504#issuecomment-1937179999","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/indutny/node-ip/pull/138","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/indutny/node-ip/commit/32f468f1245574785ec080705737a579be1223aa","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/indutny/node-ip","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-05-08T15:58:36.885Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-42282","url":"https://www.cve.org/CVERecord?id=CVE-2023-42282","licence":"CVE Terms of Use","modified":"2025-05-15T19:42:13.205Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-78xj-cgh5-2h22","url":"https://github.com/advisories/GHSA-78xj-cgh5-2h22","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:09.794Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-42282","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-42282","licence":"Public domain","modified":"2026-06-17T06:23:41.113Z"}],"updatedAt":"2026-11-25T22:58:32.633Z","epss":{"score":0.01613,"percentile":0.76718,"date":"2026-12-02T12:00:21.000Z"}}