Skip to content

v3.1.1

Latest

Choose a tag to compare

@zaguiini zaguiini released this 28 Nov 12:01

Security fix

On Android, decode() accepted a token with the header alg: none and an empty signature. A caller without the secret could forge claims. decode() now rejects every token that is not signed.

  • Affected: Android, versions up to 3.1.0. iOS was not affected.
  • Not changed: skipValidation: true still decodes a token without a signature check, as documented.

Update to 3.1.1 if your app verifies tokens with decode() on Android.

Thanks to Vishal Suwalka (@vsuwalka01) for the report and the suggested fix.