GHSA-j59f-6m4q-62h6: Ipns Improper Key Verification Vulnerability

HIGH
CVSS 7.5
CWE-287
Published
Advisory Summary

GHSA-j59f-6m4q-62h6 is a HIGH (CVSS 7.5) improper key verification vulnerability (CWE-287: Improper Authentication) affecting Ipns libraries in the npm ecosystem. The issue involves improper key verification in ipns. Remediation is available by upgrading affected packages to version 0.1.3.

GHSA-j59f-6m4q-62h6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j59f-6m4q-62h6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-287: Improper Authentication
Affected Product Ipns
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-j59f-6m4q-62h6

To remediate this vulnerability, upgrade all affected Ipns dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ipns fixed: 0.1.3
npm install ipns@0.1.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls ipns

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-j59f-6m4q-62h6, inspect your project dependencies using npm:

npm ls ipns

Analyze the terminal output to locate any version of Ipns in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.3), your application is affected.

Note: The npm ls ipns command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Ipns, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions 0.1.1 or 0.1.2 of `ipns` are vulnerable to improper key validation. This is due to the public key verification was not being performed properly, resulting in any key being valid. ## Recommendation Update to version 0.1.3 or later.

GHSA-j59f-6m4q-62h6 Affected Ipns Versions

1 component(s)
Fixed Versions:
0.1.3
Product / Package Ecosystem Affected Versions Fixed Version
ipns
npm
< 0.1.3
0.1.3

References

Frequently Asked Questions

What is GHSA-j59f-6m4q-62h6?
GHSA-j59f-6m4q-62h6 is a security vulnerability in Ipns involving Improper Key Verification in ipns under CWE-287: Improper Authentication.
Which Ipns versions are affected?
Affected versions include releases prior to 0.1.3 across affected packages: ipns.
What version fixes GHSA-j59f-6m4q-62h6?
Upgrading to 0.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ipns affected?
Yes, ipns is affected in releases prior to 0.1.3. Upgrade your dependency to 0.1.3 or later.
What is the CVSS score of GHSA-j59f-6m4q-62h6?
GHSA-j59f-6m4q-62h6 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-j59f-6m4q-62h6?
GHSA-j59f-6m4q-62h6 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for GHSA-j59f-6m4q-62h6?
Run the dependency tree command: 'npm ls ipns'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j59f-6m4q-62h6",
  "modified" : "2023-12-07T22:05:54Z",
  "published" : "2019-05-30T17:28:48Z",
  "aliases" : [ ],
  "summary" : "Improper Key Verification in ipns",
  "details" : "Versions 0.1.1 or 0.1.2 of `ipns` are vulnerable to improper key validation. This is due to the public key verification was not being performed properly, resulting in any key being valid.\n\n\n## Recommendation\n\nUpdate to version 0.1.3 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ipns"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ipfs/js-ipns/commit/33684e356f1f2fdcd99b2fb85fcc5d52223769a0"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/693"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-05-30T17:28:19Z",
    "nvd_published_at" : null
  }
}