fast-jwt@6.2.0

Fast JSON Web Token implementation

  • latest version

    6.2.2

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the fast-jwt package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • L
    Incorrect Regular Expression

    fast-jwt is a Fast JSON Web Token implementation

    Affected versions of this package are vulnerable to Incorrect Regular Expression in the allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce options when used with RegExp objects and RegExp is configured with modifiers such as /y and /g. An attacker can cause intermittent authentication failures and potentially trigger retry storms or operational disruptions by repeatedly submitting valid tokens, leading to unpredictable acceptance or rejection outcomes.

    How to fix Incorrect Regular Expression?

    Upgrade fast-jwt to version 6.2.1 or higher.

    <6.2.1
    • M
    Regular Expression Denial of Service (ReDoS)

    fast-jwt is a Fast JSON Web Token implementation

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce options when used with RegExp objects and RegExp is configured with nested quantifiers. An attacker can cause excessive CPU consumption and degrade service availability by submitting a validly signed JWT with a specially crafted aud claim that triggers catastrophic backtracking in the regular expression engine.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade fast-jwt to version 6.2.1 or higher.

    >=5.0.0 <6.2.1