GHSA-p94w-42g3-f7h4: Vp toolkit Holder Can (re)create Authentic Credentials Vulnerability

HIGH
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-p94w-42g3-f7h4
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-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.

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

### Impact The [`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. The **verifier** is impacted by this vulnerability. ### Patches Patch will be available in version 0.2.2. ### Workarounds In case you trust certain issuers for certain credentials as a verifier, trust the issuer's public key from the `credential.proof.verificationMethod` field. ### References [Github issue](https://github.com/rabobank-blockchain/vp-toolkit/issues/13) ### 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/13) * [Contact me](https://github.com/rabomarnix)

GHSA-p94w-42g3-f7h4 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-p94w-42g3-f7h4?
GHSA-p94w-42g3-f7h4 is a security vulnerability in Vp toolkit involving Holder can (re)create authentic credentials after receiving a credential 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-p94w-42g3-f7h4?
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-p94w-42g3-f7h4?
GHSA-p94w-42g3-f7h4 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-p94w-42g3-f7h4?
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-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&#39;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
  }
}