Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report: "JWT sign" for RS256 is broken since version v10.13.0 #1768

Closed
gloryknight opened this issue Apr 2, 2024 · 3 comments
Closed
Labels

Comments

@gloryknight
Copy link

Describe the bug
"JWT sign" and "JWT verify" for RS256 are broken since version v10.13.0 (last working version is v10.10.0).

To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

  1. Go to 'CyberChef'
  2. Click on 'BAKE!'
  3. In the output window
  4. See error: TypeError: Right-hand side of 'instanceof' is not an object

Expected behaviour
Signed JWT. Works with version is v10.10.0.

Screenshots
image

Desktop (if relevant, please complete the following information):

  • OS: Windows
  • Browser: chrome 123.0.6312.59 (Official Build) (64-bit)
  • CyberChef version: > v10.14.0

Additional context
There might be other functions affected which I did not check.

@gloryknight gloryknight added the bug label Apr 2, 2024
@a3957273
Copy link
Member

a3957273 commented Apr 2, 2024

Looks like the JWT library we use passes when running within Node, but the update to v9 broke all browser based usage. I'll revert the change and look at perhaps migrating to another library that continues to support the browser.

@a3957273
Copy link
Member

a3957273 commented Apr 2, 2024

Fixed in #1769

@a3957273 a3957273 closed this as completed Apr 2, 2024
@gloryknight
Copy link
Author

Thank you very much for this amazing tool and the fast fix 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants