{"id":"GHSA-78xj-cgh5-2h22","revision":"4f209f64113048b7a09e231d351c5039","records":[{"revision":"4f209f64113048b7a09e231d351c5039","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-78xj-cgh5-2h22","aliases":["CVE-2023-42282"],"title":"NPM IP package incorrectly identifies some private IP addresses as public","description":"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.","state":0,"publishedAt":"2024-02-08T18:30:39+00:00","modifiedAt":"2026-09-10T03:50:09.7948829+00:00","affected":[{"ecosystem":"npm","name":"ip","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.0.1"}]}],"versions":["2.0.0"],"rawVersionEvidence":null},{"ecosystem":"npm","name":"ip","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.1.9"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2023-42282","https://github.com/JoshGlazebrook/socks/issues/93#issue-2128357447","https://github.com/github/advisory-database/pull/3504#issuecomment-1937179999","https://github.com/indutny/node-ip/pull/138","https://github.com/indutny/node-ip/commit/32f468f1245574785ec080705737a579be1223aa","https://github.com/indutny/node-ip/commit/6a3ada9b471b09d5f0f5be264911ab564bf67894","https://cosmosofcyberspace.github.io/npm_ip_cve/npm_ip_cve.html","https://github.com/indutny/node-ip"],"sourceUrl":"https://github.com/advisories/GHSA-78xj-cgh5-2h22","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-78xj-cgh5-2h22","identifiers":["GHSA-78xj-cgh5-2h22","CVE-2023-42282"]},"retained":false,"historicalAffected":[]}],"coverage":[]}