GHSA-78XJ-CGH5-2H22

Vulnerability from github – Published: 2024-02-08 18:30 – Updated: 2024-06-28 16:49
VLAI?
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.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "ip"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.0.0"
            },
            {
              "fixed": "2.0.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.0.0"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "ip"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.1.9"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2023-42282"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-918"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-02-09T15:03:18Z",
    "nvd_published_at": "2024-02-08T17:15:10Z",
    "severity": "LOW"
  },
  "details": "The `isPublic()` function in the NPM package `ip` doesn\u0027t 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.",
  "id": "GHSA-78xj-cgh5-2h22",
  "modified": "2024-06-28T16:49:27Z",
  "published": "2024-02-08T18:30:39Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-42282"
    },
    {
      "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": "WEB",
      "url": "https://github.com/indutny/node-ip/commit/6a3ada9b471b09d5f0f5be264911ab564bf67894"
    },
    {
      "type": "WEB",
      "url": "https://cosmosofcyberspace.github.io/npm_ip_cve/npm_ip_cve.html"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/indutny/node-ip"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [],
  "summary": "NPM IP package incorrectly identifies some private IP addresses as public"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…