GHSA-p94w-42g3-f7h4: Vp toolkit Holder Can (re)create Authentic Credentials Vulnerability
HIGHGHSA-p94w-42g3-f7h4 is a HIGH holder can (re)create authentic credentials vulnerability (General Security Weakness) affecting Vp toolkit libraries in the npm ecosystem. The issue involves holder can (re)create authentic credentials after receiving a credential in vp-toolkit. Remediation is available by upgrading affected packages to version 0.2.2.
GHSA-p94w-42g3-f7h4 at a Glance
How to Fix GHSA-p94w-42g3-f7h4
To remediate this vulnerability, upgrade all affected Vp toolkit 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 vp-toolkit@0.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls vp-toolkit
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-p94w-42g3-f7h4, inspect your project dependencies using npm:
npm ls vp-toolkit
Analyze the terminal output to locate any version of Vp toolkit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.2), your application is affected.
Note: The npm ls vp-toolkit 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 General Security Weakness. In Vp toolkit, 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-p94w-42g3-f7h4 Affected Vp toolkit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
vp-toolkit
|
npm |
< 0.2.2
|
0.2.2
|
References
Frequently Asked Questions
What is GHSA-p94w-42g3-f7h4?
Which Vp toolkit versions are affected?
What version fixes GHSA-p94w-42g3-f7h4?
Is vp-toolkit affected?
What CWE is associated with GHSA-p94w-42g3-f7h4?
How can I check npm dependencies for GHSA-p94w-42g3-f7h4?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p94w-42g3-f7h4",
"modified" : "2020-02-28T16:38:09Z",
"published" : "2020-03-06T01:16:00Z",
"aliases" : [ ],
"summary" : "Holder can (re)create authentic credentials after receiving a credential in vp-toolkit",
"details" : "### Impact\nThe [`verifyVerifiableCredential()`](https://github.com/rabobank-blockchain/vp-toolkit/blob/master/src/service/signers/verifiable-credential-signer.ts#L57) method check the cryptographic integrity of the Verifiable Credential, but it does not check if the [`credential.issuer`](https://github.com/rabobank-blockchain/vp-toolkit-models/blob/develop/src/model/verifiable-credential.ts#L129) DID matches the signer of the credential.\n\nThe **verifier** is impacted by this vulnerability.\n\n### Patches\nPatch will be available in version 0.2.2.\n\n### Workarounds\nIn case you trust certain issuers for certain credentials as a verifier, trust the issuer's public key from the `credential.proof.verificationMethod` field.\n\n### References\n[Github issue](https://github.com/rabobank-blockchain/vp-toolkit/issues/13)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Discuss in the existing [issue](https://github.com/rabobank-blockchain/vp-toolkit/issues/13)\n* [Contact me](https://github.com/rabomarnix)",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "vp-toolkit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rabobank-blockchain/vp-toolkit/security/advisories/GHSA-p94w-42g3-f7h4"
}, {
"type" : "WEB",
"url" : "https://github.com/rabobank-blockchain/vp-toolkit/issues/13"
}, {
"type" : "WEB",
"url" : "https://github.com/rabobank-blockchain/vp-toolkit/commit/6315936d1d7913fd116fa51a0dbbd29d82c0ce17"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-02-28T16:38:09Z",
"nvd_published_at" : null
}
}