Repository navigation
fix(erlpack): reject unsafe terms in untrusted payloads - #15
Merged
Merged
Conversation
smocherla-brex
marked this pull request as ready for review
October 19, 2026 16:06
|
Disclaimer: This comment was generated by AI. Please give it feedback using 👍 / 👎 emoji to help it learn
[Critical impact] The PR appears safe to merge.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Backport the protection for GHSA-grp7-v8xh-rj7h to
elixir-2025. The current Erlpack decoder accepts new atoms and executable terms from message bodies.What Changed
binary_to_term/2and[:safe]to prevent new atoms.Adapted from the upstream fix.
Validation
107ec659ce3de687db071635f7fbe3fb8b17f192(new atoms, runtime terms, nested functions accepted), then passed with this patch. Seetest/grpc/codec/erlpack_test.exsfor the exact cases.mix test: 5 doctests, 72 tests, 0 failures, including existing gRPC integration tests.git diff --checkpassed.Older CI runtime combinations and downstream Brex service compatibility have not been verified locally. This PR does not update downstream lockfiles or deploy the fix.