Insufficient Session Expiration Affecting @digitalbazaar/zcap package, versions <9.0.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insufficient Session Expiration vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-DIGITALBAZAARZCAP-6595954
  • published11 Apr 2024
  • disclosed10 Apr 2024
  • creditUnknown

Introduced: 10 Apr 2024

CVE-2024-31995  (opens in a new tab)
CWE-613  (opens in a new tab)

How to fix?

Upgrade @digitalbazaar/zcap to version 9.0.1 or higher.

Overview

@digitalbazaar/zcap is an Authorization Capabilities reference implementation.

Affected versions of this package are vulnerable to Insufficient Session Expiration due to incomplete expiration checks in capability chains. 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. However, a zcap still cannot be invoked without being able to use the associated private key material.

Workaround

A zcap could be revoked at any time.

CVSS Scores

version 3.1