GHSA-ff5x-w9wg-h275: Vp toolkit Holder Can Generate Proof Of Vulnerability

HIGH
Published
Advisory Summary

GHSA-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.

GHSA-ff5x-w9wg-h275 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-ff5x-w9wg-h275
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Vp toolkit
Package Ecosystem npm
Published Date
Last Updated

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.

vp-toolkit fixed: 0.2.2
npm install vp-toolkit@0.2.2
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 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

### Impact The [`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. The **verifier** is impacted by this vulnerability. ### Patches Patch will be available in version 0.2.2. ### Workarounds - 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. ### References [Github issue](https://github.com/rabobank-blockchain/vp-toolkit/issues/14) ### For more information If you have any questions or comments about this advisory: * Discuss in the existing [issue](https://github.com/rabobank-blockchain/vp-toolkit/issues/14) * [Contact me](https://github.com/rabomarnix)

GHSA-ff5x-w9wg-h275 Affected Vp toolkit Versions

1 component(s)
Fixed Versions:
0.2.2
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?
GHSA-ff5x-w9wg-h275 is a security vulnerability in Vp toolkit involving Holder can generate proof of ownership for credentials it does not control in vp-toolkit under General Security Weakness.
Which Vp toolkit versions are affected?
Affected versions include releases prior to 0.2.2 across affected packages: vp-toolkit.
What version fixes GHSA-ff5x-w9wg-h275?
Upgrading to 0.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vp-toolkit affected?
Yes, vp-toolkit is affected in releases prior to 0.2.2. Upgrade your dependency to 0.2.2 or later.
What CWE is associated with GHSA-ff5x-w9wg-h275?
GHSA-ff5x-w9wg-h275 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-ff5x-w9wg-h275?
Run the dependency tree command: 'npm ls vp-toolkit'. 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-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
  }
}