{"id":"CVE-2023-42282","aliases":["GHSA-78xj-cgh5-2h22"],"url":"https://o3.security/vulnerability/CVE-2023-42282","summary":"NPM IP package incorrectly identifies some private IP addresses as public","details":"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.","published":"2024-02-08T00:00:00Z","modified":"2026-08-12T03:51:19.301222864Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"npm","name":"ip","fixedVersion":"2.0.1"},{"ecosystem":"npm","name":"ip","fixedVersion":"1.1.9"}],"fix":{"url":"https://github.com/indutny/node-ip/commit/6a3ada9b471b09d5f0f5be264911ab564bf67894","label":"indutny/node-ip@6a3ada9"},"references":[{"type":"WEB","url":"https://cosmosofcyberspace.github.io/npm_ip_cve/npm_ip_cve.html"},{"type":"WEB","url":"https://huntr.com/bounties/bfc3b23f-ddc0-4ee7-afab-223b07115ed3/"},{"type":"WEB","url":"https://www.bleepingcomputer.com/news/security/dev-rejects-cve-severity-makes-his-github-repo-read-only/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/42xxx/CVE-2023-42282.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-42282"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240315-0008/"},{"type":"FIX","url":"https://github.com/indutny/node-ip/commit/6a3ada9b471b09d5f0f5be264911ab564bf67894"},{"type":"WEB","url":"https://github.com/JoshGlazebrook/socks/issues/93#issue-2128357447"},{"type":"WEB","url":"https://github.com/github/advisory-database/pull/3504#issuecomment-1937179999"},{"type":"WEB","url":"https://github.com/indutny/node-ip/pull/138"},{"type":"WEB","url":"https://github.com/indutny/node-ip/commit/32f468f1245574785ec080705737a579be1223aa"},{"type":"PACKAGE","url":"https://github.com/indutny/node-ip"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:19.301222864Z"}}