Skip to content

Ensure 'jiffy:encode/1' returns a binary#145

Merged
potatosalad merged 1 commit into
potatosalad:mainfrom
ssepml:jiffy_binary
Dec 7, 2023
Merged

Ensure 'jiffy:encode/1' returns a binary#145
potatosalad merged 1 commit into
potatosalad:mainfrom
ssepml:jiffy_binary

Conversation

@ssepml

@ssepml ssepml commented Sep 25, 2023

Copy link
Copy Markdown
Contributor

Description

jiffy may return an iolist instead of a binary when encoding big objects (see details here). This leads to problems inside jose as it expects the plaintext to be a binary when signing a token (see here).

@potatosalad

Copy link
Copy Markdown
Owner

@ssepml Thanks!

@potatosalad potatosalad merged commit c53977d into potatosalad:main Dec 7, 2023
@ssepml ssepml deleted the jiffy_binary branch December 7, 2023 13:56
potatosalad added a commit that referenced this pull request Apr 7, 2024
* Security Patches
  * [CVE-2023-50966](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-50966): Add `jose:pbes2_count_maximum/0`.  By default, the maximum iterations are set to 10,000 and it will raise an error if `p2c` is larger than this value.
* Changes
  * Declare Poison as an optional dependency, thanks to [@lnikkila][https://github.com/lnikkila]; see [#144](#144).
  * Ensure `jiffy:encode/1` returns a binary, thanks to [@ssepml](https://github.com/ssepml); see [#145](#145).
  * Various type spec additions and dialyzer/dialyxir integrations, thanks to [@whatyouhide](https://github.com/whatyouhide) and [@maennchen](https://github.com/maennchen).
  * Doc updates and fixes, thanks to [@aymanosman](https://github.com/aymanosman) and [@adamu](https://github.com/adamu); see [#158](#158) and [#159](#159).
infra-ravenlabmkop added a commit to infra-ravenlabmkop/erlang-jose that referenced this pull request Sep 29, 2025
* Security Patches
  * [CVE-2023-50966](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-50966): Add `jose:pbes2_count_maximum/0`.  By default, the maximum iterations are set to 10,000 and it will raise an error if `p2c` is larger than this value.
* Changes
  * Declare Poison as an optional dependency, thanks to [@lnikkila][https://github.com/lnikkila]; see [#144](potatosalad/erlang-jose#144).
  * Ensure `jiffy:encode/1` returns a binary, thanks to [@ssepml](https://github.com/ssepml); see [#145](potatosalad/erlang-jose#145).
  * Various type spec additions and dialyzer/dialyxir integrations, thanks to [@whatyouhide](https://github.com/whatyouhide) and [@maennchen](https://github.com/maennchen).
  * Doc updates and fixes, thanks to [@aymanosman](https://github.com/aymanosman) and [@adamu](https://github.com/adamu); see [#158](potatosalad/erlang-jose#158) and [#159](potatosalad/erlang-jose#159).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants