fast-jwt@1.1.2 vulnerabilities

Fast JSON Web Token implementation

  • latest version

    6.0.2

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    1 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Acceptance of Extraneous Untrusted Data With Trusted Data

    fast-jwt is a Fast JSON Web Token implementation

    Affected versions of this package are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data when validating an issuer (iss) claim in validateClaimValues(). This function implicitly accepts an array of issuer URLs and accepts it if one member is verified. This behavior is not compliant with RFC 7519, which specifies that a token must be a string. An attacker can bypass the intended verification by sending a JWT whose iss claim includes a malicious domain as well as a legitimate one.

    How to fix Acceptance of Extraneous Untrusted Data With Trusted Data?

    Upgrade fast-jwt to version 5.0.6 or higher.

    <5.0.6
    • M
    Improper Input Validation

    fast-jwt is a Fast JSON Web Token implementation

    Affected versions of this package are vulnerable to Improper Input Validation due to improperly prevention of JWT algorithm confusion for all public key types. To exploit this vulnerability, an attacker needs to craft a malicious JWT token containing the HS256 algorithm, signed with the public RSA key of the victim application.

    Note: This attack will only work if the victim application utilizes a public key containing the BEGIN RSA PUBLIC KEY header.

    How to fix Improper Input Validation?

    Upgrade fast-jwt to version 3.3.2 or higher.

    <3.3.2