docs: add SECURITY.md#5
Merged
Merged
Conversation
…dings Documents cellpose-js's threat model (browser-only, no Node fs, no eval, no telemetry) and the input-handling surface inherited from onnxruntime-web: caller-supplied modelUrl and wasmPaths. Provides recommended consumer practices (hardcode or allowlist the model URL, serve ORT sidecars same-origin, optionally validate model integrity, pin the peer dep). Also addresses scanner findings on the ort-web peer dep — labels like "Obfuscated code" and "Supply-chain risk" are structural false positives on minified bundles + binary WASM, not actual malware behavior. README now points at SECURITY.md from a new "## Security" section. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.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.
Summary
Why
A consumer running npm safety scans on `cellpose-js` saw the `onnxruntime-web` peer dep flagged with `Obfuscated code Supply Chain risk`. The reviewer's note clarified it's likely non-malicious — minified bundles look "obfuscated", and ort-web's caller-controlled URL input is the documented runtime contract. Writing the threat model + scanner-notes section explicitly so anyone running similar scans has a documented answer.
Notes
🤖 Generated with Claude Code