You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.5 KiB

4 years ago
  1. # Change Log
  2. All notable changes to this project will be documented in this file.
  3. ## [3.0.0]
  4. ### Changed
  5. - **BREAKING**: `jwt.verify` now requires an `algorithm` parameter, and
  6. `jws.createVerify` requires an `algorithm` option. The `"alg"` field
  7. signature headers is ignored. This mitigates a critical security flaw
  8. in the library which would allow an attacker to generate signatures with
  9. arbitrary contents that would be accepted by `jwt.verify`. See
  10. https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/
  11. for details.
  12. ## [2.0.0] - 2015-01-30
  13. ### Changed
  14. - **BREAKING**: Default payload encoding changed from `binary` to
  15. `utf8`. `utf8` is a is a more sensible default than `binary` because
  16. many payloads, as far as I can tell, will contain user-facing
  17. strings that could be in any language. (<code>[6b6de48]</code>)
  18. - Code reorganization, thanks [@fearphage]! (<code>[7880050]</code>)
  19. ### Added
  20. - Option in all relevant methods for `encoding`. For those few users
  21. that might be depending on a `binary` encoding of the messages, this
  22. is for them. (<code>[6b6de48]</code>)
  23. [unreleased]: https://github.com/brianloveswords/node-jws/compare/v2.0.0...HEAD
  24. [2.0.0]: https://github.com/brianloveswords/node-jws/compare/v1.0.1...v2.0.0
  25. [7880050]: https://github.com/brianloveswords/node-jws/commit/7880050
  26. [6b6de48]: https://github.com/brianloveswords/node-jws/commit/6b6de48
  27. [@fearphage]: https://github.com/fearphage