Repository navigation
Desktop: bump url to 2.5.9 and cookie to 0.18.3 (RUSTSEC-2026-0592, RUSTSEC-2026-0594) - #19238
Merged
Merged
Conversation
…USTSEC-2026-0594)
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This was referenced Nov 24, 2026
danielhanchen
added a commit
that referenced
this pull request
Nov 24, 2026
…he package scan baseline (#19250) ## Problem `Security audit` / `pip scan-packages :: hf-stack` fails on every PR that runs it, for example #19238: ``` Summary: 2 CRITICAL, 4 HIGH, 177 MEDIUM HIGH unsloth-zoo unsloth_zoo/compiler.py (Advanced obfuscation (marshal/compile/zlib) + exec/eval) HIGH unsloth-zoo unsloth_zoo/mlx/decision.py (Advanced obfuscation (marshal/compile/zlib) + exec/eval) HIGH unsloth-zoo unsloth_zoo/temporary_patches/moe_utils.py (Advanced obfuscation (marshal/compile/zlib) + exec/eval) HIGH unsloth-zoo unsloth_zoo/vllm_utils.py (Advanced obfuscation (marshal/compile/zlib) + exec/eval) ``` plus the two `vision_utils.py` CRITICAL sites (env + network, IMDS + network). ## Root cause unsloth-zoo 2026.11.10 was released, and no PR here caused it. The scanner pins each reviewed zoo site to the file digest it was reviewed at, so a release that edits those files reopens their sites until they are re-reviewed. This is the same as the earlier re-pins (#19030, #18724). For all six sites the scanner reports "same matched code, file digest outside the pin": the evidence hash matches the reviewed entry, so the flagged lines themselves are unchanged. ## Re-review The pin covers the whole file, so I diffed each one from 2026.11.9 to 2026.11.10: - `vision_utils.py`: media fetches now pass an explicit `auth`. - A netrc `default` entry and plain-http URLs no longer receive the user's saved credentials. - An https host the netrc names explicitly, or credentials written into the URL, still do. - Stricter, not looser. No new destination. - `vllm_utils.py`: the adapter staging folder is created owner-only (`0o700`), and a re-save keeps the mode of the file it replaces. - `mlx/decision.py`: the same owner-only and keep-the-mode handling for saved weights (`private_staging` helpers). - `compiler.py`: - Inkling 2 residual modules stay eager through a custom op inside compiled graphs. - Inkling 2's softcap module is inlined for the fused LM-head loss. - The fused loss is skipped when the LM head needs its module forward. - `temporary_patches/moe_utils.py`: an automatic cap on MoE dequant scratch memory, read from the local `UNSLOTH_MOE_DEQUANT_*` settings, recorded once per checkpointed call so the backward replay matches. None adds a network destination, subprocess, encoded payload or dynamic code path beyond the reviewed `exec` / `eval` lines. ## Changes `scripts/scan_packages_baseline.json`: six new entries pinned to the 2026.11.10 file digests. They are appended at the end; no existing entry is changed or removed (54 lines added, 0 removed), so no reviewed pin is widened. ## Testing - `python scripts/scan_packages.py unsloth-zoo==2026.11.10`: - against `main`'s baseline: exit 1, `2 CRITICAL, 4 HIGH`, the six sites above; - against this branch's baseline: exit 0, `Summary: 17 MEDIUM`, 23 findings suppressed. - `tests/security/test_scan_packages.py`: 152 passed.
danielhanchen
added a commit
that referenced
this pull request
Nov 24, 2026
…9243) ## Problem The `desktop windows` clean-machine job fails on every PR that runs it since release `v0.1.923-beta`. For example #19238: ``` ##[error]expected exactly one AMD64 installer in the release, found 2 (assets: Unsloth-Desktop-Windows-ARM64.exe, Unsloth-Desktop-Windows-x64.exe, Unsloth-Desktop-Windows.exe) ``` The next step then fails with "the app wrote no tauri.log", because nothing was installed. ## Cause #18621 (one Windows installer that selects x64 or ARM64) is correct. Releases now ship: - `Unsloth-Desktop-Windows-x64.exe` - `Unsloth-Desktop-Windows-ARM64.exe` - `Unsloth-Desktop-Windows.exe`, which runs the right one for the machine. The release notes send every Windows user to this one. The clean-machine job treated every asset that is not ARM64 as the x64 installer, so on AMD64 it found two and stopped. Stopping was the job's intended reaction to a packaging change. It just was not updated for this one. ## Fix The `Silent install` step in `desktop-app-clean-machine-ci.yml` now recognises the release by name: - **x64 + ARM64 + universal:** install `Unsloth-Desktop-Windows.exe` on both architectures, which is the path a user takes. It forwards `/S` to the native installer and returns its exit code. - **Older releases, ARM64 + unsuffixed x64:** the previous per-architecture pick. - **Any other set:** still fails, with the asset list. After the install, a new check reads the installed app's PE machine type (`0x8664` / `0xAA64`) and compares it with the runner's architecture. If the universal installer ever picks the wrong payload, this job now fails. ## Verification - Ran both PowerShell blocks under `pwsh` against fake `dl/` folders: - the three-installer release picks the universal installer on AMD64 and ARM64; - the older two-installer release picks the unsuffixed installer on AMD64 and `-ARM64` on ARM64; - other sets fail. - Against fake PE headers, the matching build passes and the wrong one fails on each architecture. - The 9 test files that read this workflow pass (609 passed), and the YAML parses. - The real Windows run is this PR's own `desktop windows` job.
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.
Bumps two crates in the Desktop app's
studio/src-tauri/Cargo.lockto their patched releases. Lockfile only;form_urlencoded1.2.2 -> 1.2.3 comes along withurl.urlUrl::origin()recursed once per nestedblob:prefix, so a longblob:blob:...URL overflowed the stack and aborted the process.cookiePrivateJarnonces could repeat across processes that fork without exec.Exposure
url: the Desktop browser panel callsUrl::origin()only onhttp/httpsURLs, or after ablob:short-circuit, so our own code does not reach the recursion. tauri / wry may still compute origins for panel URLs internally, and a stack overflow aborts the whole app, so the bump is worth taking.cookie: only pulled in through tauri / wry for cookie types. Neither they nor our code seal private cookies, and Desktop does not fork without exec, so this is defence in depth. No key rotation or sign-out is needed.Compatibility
url2.5.9 now gives ablob:URL whose inner scheme is nothttp,httpsorfilean opaque origin, as the URL Standard says. The panel's ownblob:http(s)://previews keep their origin.Tests
cargo test --lockedinstudio/src-tauri: 882 passed on main and 882 passed here, including the browser panel origin tests.Url::origin()call on 10,000 nestedblob:prefixes in a spawned thread aborts with a stack overflow onurl2.5.8 and returns normally on 2.5.9.