{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-31995","id":"CVE-2024-31995","title":"zcap has incomplete expiration checks in capability chains.","description":"`@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.","descriptionLong":"`@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.","published":"2024-04-10T21:57:41.129Z","updated":"2026-10-28T02:31:09.031026142Z","reserved":"2024-04-08T13:48:37.491Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["digitalbazaar zcap"],"affectedProducts":[{"vendor":"digitalbazaar","product":"zcap","defaultStatus":null,"versions":[{"version":"< 9.0.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@digitalbazaar/zcap","purl":"pkg:npm/%40digitalbazaar/zcap","ranges":["<9.0.1"],"fixed":["9.0.1"],"advisory":"GHSA-hp8h-7x69-4wmv"}],"cwes":["CWE-613"],"aliases":["GHSA-hp8h-7x69-4wmv"],"references":[{"url":"https://github.com/digitalbazaar/zcap/security/advisories/GHSA-hp8h-7x69-4wmv","tags":["x_refsource_CONFIRM","x_transferred","advisory","web"]},{"url":"https://github.com/digitalbazaar/zcap/pull/82","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://github.com/digitalbazaar/zcap/commit/261eea040109b6e25159c88d8ed49d3c37f8fcfe","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://github.com/digitalbazaar/zcap/commit/55f8549c80124b85dfb0f3dcf83f2c63f42532e5","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31995.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31995","tags":["advisory"]},{"url":"https://github.com/digitalbazaar/zcap","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00441,"epssPercentile":0.38955,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-31995","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31995","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-31995","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hp8h-7x69-4wmv","ok":true,"note":"GHSA-hp8h-7x69-4wmv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-31995","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}