CVE-2024-31995 json
zcap has incomplete expiration checks in capability chains.
published 2024-04-10 2 y ago modified 2026-09-10 1 mo ago also GHSA-hp8h-7x69-4wmv , EUVD-2024-1217
- cvss
- 4.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
`@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.
Patch / fix
- npm @digitalbazaar/zcap 9.0.1
- github.com/digitalbazaar/zcap@261eea0 commit
- github.com/digitalbazaar/zcap@55f8549 commit
- github.com/digitalbazaar/zcap#82 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @digitalbazaar/zcap | <9.0.1 |
9.0.1 |
Affected products
- digitalbazaar zcap
Classification
- Weakness
-
- CWE-613 DEPRECATED: Insufficient Session Expiration
References
-
github.com
/digitalbazaar/zcap/pull/82
web
-
github.com
/digitalbazaar/zcap/commit/261eea040109b6e25159c88d8ed49d3c37f8fcfe
web
-
github.com
/digitalbazaar/zcap/commit/55f8549c80124b85dfb0f3dcf83f2c63f42532e5
web
-
github.com
/digitalbazaar/zcap/security/advisories/GHSA-hp8h-7x69-4wmv
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-31995
advisory
-
github.com
/digitalbazaar/zcap
package
Sources
- CVE List CVE-2024-31995
- GitHub Advisory GHSA-hp8h-7x69-4wmv
- NVD CVE-2024-31995
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.