Skip to content

Insufficient Session Expiration in @cyyynthia/tokenize

High severity GitHub Reviewed Published Nov 8, 2021 in cyyynthia/tokenize • Updated Jan 9, 2023

Package

npm @cyyynthia/tokenize (npm)

Affected versions

>= 1.1.0, < 1.1.3

Patched versions

1.1.3

Description

Impact

A bug introduced in version 1.1.0 made Tokenize generate faulty tokens with NaN as a generation date. As a result, tokens would not properly expire and remain valid regardless of the lastTokenReset field.

Patches

Version 1.1.3 contains a patch that'll invalidate these faulty tokens and make new ones behave as expected.

Workarounds

None. Tokens do not hold the necessary information to perform invalidation anymore.

References

PR #1

For more information

If you have any questions or comments about this advisory:

References

@cyyynthia cyyynthia published to cyyynthia/tokenize Nov 8, 2021
Reviewed Nov 8, 2021
Published to the GitHub Advisory Database Nov 10, 2021
Last updated Jan 9, 2023

Severity

High

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-jcjx-c3j3-44pr

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.