Vulnerabilities in pkg:npm/vp-toolkit
PACKAGEGHSA-ff5x-w9wg-h275 is a HIGH holder can generate proof of vulnerability (General Security Weakness) affecting Vp toolkit libraries in the npm ecosystem. The issue involves holder can generate proof of ownership for credentials it does not control in vp-toolkit. Remediation is available by upgrading affected packages to version 0.2.2.
pkg:npm/vp-toolkit
Vulnerability advisories affecting package pkg:npm/vp-toolkit. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-ff5x-w9wg-h275 | - | HIGH | Holder can generate proof of ownership for credentials it does not control in vp-toolkit |
| GHSA-p94w-42g3-f7h4 | - | HIGH | Holder can (re)create authentic credentials after receiving a credential in vp-toolkit |
GHSA-ff5x-w9wg-h275 at a Glance
How to Fix GHSA-ff5x-w9wg-h275
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-ff5x-w9wg-h275, 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-ff5x-w9wg-h275 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-ff5x-w9wg-h275?
Which Vp toolkit versions are affected?
What version fixes GHSA-ff5x-w9wg-h275?
Is vp-toolkit affected?
What CWE is associated with GHSA-ff5x-w9wg-h275?
How can I check npm dependencies for GHSA-ff5x-w9wg-h275?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ff5x-w9wg-h275",
"modified" : "2020-02-28T16:38:18Z",
"published" : "2020-03-06T01:15:46Z",
"aliases" : [ ],
"summary" : "Holder can generate proof of ownership for credentials it does not control in vp-toolkit",
"details" : "### Impact\nThe [`verifyVerifiablePresentation()`](https://github.com/rabobank-blockchain/vp-toolkit/blob/master/src/service/signers/verifiable-presentation-signer.ts#L97) method check the cryptographic integrity of the Verifiable Presentation, but it does not check if the [`credentialSubject.id`](https://github.com/rabobank-blockchain/vp-toolkit-models/blob/develop/src/model/verifiable-credential.ts#L150) DID matches the signer of the VP proof.\n\nThe **verifier** is impacted by this vulnerability.\n\n### Patches\nPatch will be available in version 0.2.2.\n\n### Workarounds\n- Compute the address out of the `verifiablePresentation.proof.n.verificationMethod` using `getAddressFromPubKey()` from `crypt-util@0.1.5` and match it with the `credentialSubject.id` address from the credential.\n\n### References\n[Github issue](https://github.com/rabobank-blockchain/vp-toolkit/issues/14)\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/14)\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-ff5x-w9wg-h275"
}, {
"type" : "WEB",
"url" : "https://github.com/rabobank-blockchain/vp-toolkit/issues/14"
}, {
"type" : "WEB",
"url" : "https://github.com/rabobank-blockchain/vp-toolkit/commit/18a7db84d3265c6ffa10ef63eb37ae1bd4ba192b"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-02-28T16:38:18Z",
"nvd_published_at" : null
}
}