GHSA-j59f-6m4q-62h6: Ipns Improper Key Verification Vulnerability
HIGHGHSA-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
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).
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.
npm install ipns@0.1.3
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
GHSA-j59f-6m4q-62h6 Affected Ipns Versions
1 component(s)| 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?
Which Ipns versions are affected?
What version fixes GHSA-j59f-6m4q-62h6?
Is ipns affected?
What is the CVSS score of GHSA-j59f-6m4q-62h6?
What CWE is associated with GHSA-j59f-6m4q-62h6?
How can I check npm dependencies for GHSA-j59f-6m4q-62h6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}