fix: address supply-chain RCE via trust_remote_code and torch.load#241
Merged
QianhuiWu merged 2 commits intohot_bug_fixfrom Apr 8, 2026
Merged
fix: address supply-chain RCE via trust_remote_code and torch.load#241QianhuiWu merged 2 commits intohot_bug_fixfrom
QianhuiWu merged 2 commits intohot_bug_fixfrom
Conversation
- Change trust_remote_code default from True to False in load_model() - Change trust_remote_code from True to False for jina model in get_distance_jinza() - Add weights_only=True to torch.load() calls in experiments/llmlingua2/ Agent-Logs-Url: https://github.com/microsoft/LLMLingua/sessions/765d55a4-b2e4-4a32-bc6f-5321918d9c33 Co-authored-by: mydmdm <7117512+mydmdm@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
mydmdm
April 7, 2026 08:00
View session
… changes Agent-Logs-Url: https://github.com/microsoft/LLMLingua/sessions/c08187e2-c22b-43dc-8bb1-81ce4cd422c3 Co-authored-by: mydmdm <7117512+mydmdm@users.noreply.github.com>
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.
trust_remote_codedefaulting toTrueinload_model()- change default toFalsetrust_remote_code=Truehardcoded inget_distance_jinza()- change toFalsetorch.load()withoutweights_only=Truein experiment scriptstrust_remote_codedefault change and how to opt-inmodel_configparameter docs in DOCUMENT.md to mentiontrust_remote_codetrust_remote_codebreaking change