Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1ocDhoLTd4NjktNHdtds4AA63y

zcap has incomplete expiration checks in capability chains.

Impact

When invoking a capability with a chain depth of 2, i.e., it is delegated directly from the root capability, the expires property is not properly checked against the current date or other date param. This can allow invocations outside of the original intended time period. A zcap still cannot be invoked without being able to use the associated private key material.

Patches

@digitalbazaar/zcap v9.0.1 fixes expiration checking.

Workarounds

A zcap could be revoked at any time.

References

https://github.com/digitalbazaar/zcap/pull/82

Permalink: https://github.com/advisories/GHSA-hp8h-7x69-4wmv
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ocDhoLTd4NjktNHdtds4AA63y
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 2 months ago
Updated: about 1 month ago


CVSS Score: 4.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-hp8h-7x69-4wmv, CVE-2024-31995
References: Repository: https://github.com/digitalbazaar/zcap
Blast Radius: 4.3

Affected Packages

npm:@digitalbazaar/zcap
Dependent packages: 13
Dependent repositories: 10
Downloads: 1,654 last month
Affected Version Ranges: < 9.0.1
Fixed in: 9.0.1
All affected versions: 7.0.0, 7.0.1, 7.1.0, 7.2.0, 7.2.1, 7.2.2, 8.0.0, 9.0.0
All unaffected versions: 9.0.1