# CVE-2024-31995: zcap has incomplete expiration checks in capability chains.

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-10 · Modified: 2024-08-02
- Aliases: GHSA-hp8h-7x69-4wmv
- Record: https://cvemate.com/vulnerability/CVE-2024-31995 · JSON: https://cvemate.com/vulnerability/CVE-2024-31995/json

## Description

```text
`@digitalbazaar/zcap` provides JavaScript reference implementation for Authorization Capabilities. Prior to version 9.0.1, 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. `@digitalbazaar/zcap` v9.0.1 fixes expiration checking. As a workaround, one may revoke a zcap at any time.
```

## Signals

- CVSS: 4.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.441%, percentile 40.063%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- digitalbazaar zcap: \< 9.0.1
- @digitalbazaar zcap (Npm): \< 9.0.1

## References

- <https://github.com/digitalbazaar/zcap/security/advisories/GHSA-hp8h-7x69-4wmv>
- <https://github.com/digitalbazaar/zcap/pull/82>
- <https://github.com/digitalbazaar/zcap/commit/261eea040109b6e25159c88d8ed49d3c37f8fcfe>
- <https://github.com/digitalbazaar/zcap/commit/55f8549c80124b85dfb0f3dcf83f2c63f42532e5>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31995>
- <https://github.com/digitalbazaar/zcap>

---

Data as of 2026-12-05T08:15:52.333Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
