Skip to content

Harden unsafe deserialization paths - #260

Merged
SimJeg merged 3 commits into
mainfrom
simon/fix-vulnerabilities
Aug 10, 2026
Merged

Harden unsafe deserialization paths#260
SimJeg merged 3 commits into
mainfrom
simon/fix-vulnerabilities

Conversation

@SimJeg

@SimJeg SimJeg commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator
  • Replace LooGLE’s eval() with ast.literal_eval().
  • Load FastKVzip checkpoints with weights_only=True and restricted NumPy globals.

SimJeg added 2 commits August 10, 2026 12:09
Use literal-only parsing so model-generated answers cannot execute code during evaluation.

Signed-off-by: SimJeg <sjegou@nvidia.com>
Restrict checkpoint deserialization to the NumPy globals required by the gate weights.

Signed-off-by: SimJeg <sjegou@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Suppress the expected type error for NumPy's private compatibility namespace.

Signed-off-by: SimJeg <sjegou@nvidia.com>

@alessiodevoto alessiodevoto left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@SimJeg
SimJeg merged commit 4e41f14 into main Aug 10, 2026
2 checks passed
@SimJeg
SimJeg deleted the simon/fix-vulnerabilities branch August 10, 2026 11:11
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