# GHSA-ff5x-w9wg-h275: Holder can generate proof of ownership for credentials it does not control in vp-toolkit

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-03-06T01:15:46.000Z
- Modified: 2020-02-28T16:38:18.000Z

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- vp-toolkit (npm): before 0.2.2

## References

- <https://github.com/rabobank-blockchain/vp-toolkit/security/advisories/GHSA-ff5x-w9wg-h275> (web)
- <https://github.com/rabobank-blockchain/vp-toolkit/issues/14> (web)
- <https://github.com/rabobank-blockchain/vp-toolkit/commit/18a7db84d3265c6ffa10ef63eb37ae1bd4ba192b> (web)

## Sources

- GitHub Advisory Database: [GHSA-ff5x-w9wg-h275](https://github.com/advisories/GHSA-ff5x-w9wg-h275), CC-BY-4.0, modified 2020-02-28

---

Page: https://cve.day/GHSA-ff5x-w9wg-h275 · Whole record: https://cve.day/GHSA-ff5x-w9wg-h275.json · Rebuilt by cve.day 2026-11-25T22:56:45.250Z
