Skip to content

Baseline the unsloth-zoo 2026.10.7 scan findings after review - #14311

Merged
danielhanchen merged 1 commit into
mainfrom
ci/baseline-zoo-2026.10.7
Oct 20, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/baseline-zoo-2026.10.7

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Security audit on main fails in pip scan-packages :: hf-stack (run 39357543071 on 22a0bea) with 2 CRITICAL and 5 HIGH unbaselined findings, all in unsloth-zoo. unsloth-zoo 2026.10.7 reached PyPI yesterday at 15:39, and the scan installs the latest release. Nothing in this repo caused it; it is the expected churn of digest-pinned entries on a zoo release, same as #13143, #13472, #13701 and #13949.

File Check Why it reopened
llama_cpp.py env + network file digest changed, matched lines unchanged
compiler.py exec/eval file digest changed, matched lines unchanged
vllm_utils.py exec/eval file digest changed, matched lines unchanged
mlx/loader.py exec/eval file digest changed, matched lines unchanged
mlx/speculative.py exec/eval file digest changed, matched lines unchanged
temporary_patches/moe_utils.py exec/eval file digest changed, matched lines unchanged
triton_kernels_compat.py downloads and executes remote code new matched lines

Review

I diffed each of the seven files between 2026.10.6 (last baselined) and 2026.10.7 and searched the added lines for network, subprocess, exec/eval/compile, encoding, pickle, ctypes and environment access. What they add:

  • triton_kernels_compat.py: the flagged lines are importlib.import_module(self.name + ".topk") and ".tensor_details.ragged_tensor", which import fixed submodules of an already installed triton_kernels package or vLLM's vendored copy. The new UNSLOTH_TRITON_KERNELS_SOURCE flag (auto | triton_kernels | vllm) only picks which of those two to import. Nothing is downloaded.
  • vllm_utils.py, temporary_patches/moe_utils.py: feature flags (UNSLOTH_VLLM_SUFFIX_DECODING, UNSLOTH_VLLM_FP32_LM_HEAD, UNSLOTH_MOE_DEQUANT_CHUNK_EXPERTS, UNSLOTH_MOE_SELECTIVE_DEQUANT).
  • mlx/loader.py: on MLX >= 0.32.4, imports the mlx-vlm modules named in a fixed table (_EXACT_VERIFY_SUM_SOURCES) and uses two regexes to promote their verify-kernel sums to float32.
  • llama_cpp.py, compiler.py, mlx/speculative.py: no added line touches any of those patterns.

None adds network access, subprocess use, encoded payloads or a new destination.

Change

Seven entries added to scripts/scan_packages_baseline.json, taken from scan_packages.py --write-baseline over unsloth-zoo==2026.10.7 and filtered to the unbaselined keys. Each is pinned to its 2026.10.7 file digest, as the previous entries for these files were, and sits next to them. Nothing is removed, so older releases stay covered.

Testing

  • scan_packages.py unsloth-zoo==2026.10.7: exits 0 with this baseline; with main's baseline it exits 1 with the same seven findings as CI.
  • scan_packages.py unsloth-zoo==2026.10.6 still exits 0.
  • tests/security/test_scan_packages.py: 152 passed.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T04:01:50.517888Z 13ea1bf Manual request
🔒 Security Review ⚠️ Failed 2026-10-20T03:57:42.359731Z 13ea1bf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 13ea1bfce7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit e326020 into main Oct 20, 2026
@danielhanchen
danielhanchen deleted the ci/baseline-zoo-2026.10.7 branch October 20, 2026 04:03
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.

1 participant