npm / sharp / 0.35.6-rc.0
sharp 0.35.6-rc.0
- Source
- https://github.com/lovell/sharp
- Artifact scanned
sharp-0.35.6-rc.0.tgz- Compared with
sharp-0.35.5.tgz(0 signals introduced since)- Files
- 45 scanned, 2 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 16 info
- Scan time
- 10.4 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 16 of 16 warn and critical signals; 16 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-11-28 09:12
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
likely benign Loads the libvips include directory from a platform-specific sharp package.
Reasoning
The require specifier is a template literal filled with buildPlatformArch(), which selects the platform-specific libvips development package. This is the standard way sharp locates its native dependencies, and the require sits inside a try/catch fallback chain with no decoding or process execution.
-
likely benign Loads the libvips lib directory from a platform-specific package in a fallback chain.
Reasoning
Same pattern as the sibling finding: a platform-derived package name selects the libvips lib directory for a fallback resolution attempt. The specifier is constrained to the @img/sharp-libvips scope and nothing else is done with the result.
-
}likely benign Falls back to loading the runtime libvips package for the current platform.Reasoning
The non-dev fallback resolves the runtime libvips package by platform name and swallows errors. This is ordinary optional-dependency resolution with no network, shell, or decoding behaviour.
-
likely benign Loads the libvips include directory from a platform-specific sharp package.
Reasoning
This is the ESM build of the same libvips resolver, with the same platform-derived package name and try/catch fallback. Nothing in the snippet is malicious.
-
likely benign Loads the libvips lib directory from a platform-specific package in a fallback chain.
Reasoning
Mirror of the CJS build's lib resolution with a platform-derived scoped package name inside a fallback chain. Expected for a native-image library.
-
}likely benign Falls back to loading the runtime libvips package for the current platform.Reasoning
Runtime libvips fallback resolved by platform name with errors suppressed. Standard optional-dependency loading for a native module.
-
likely benign Loads the sharp native addon binary for the current platform and version.
Reasoning
The native binding path is built from runtimePlatform and version, and it points at a relative build/Release .node file. This is how sharp loads its prebuilt addon, and the failure is collected into an errors array rather than hidden.
-
likely benign Loads the wasm32 sharp addon as a fallback when the native build is missing.
Reasoning
The wasm32 fallback path is built from the version string and loads a local .node binary inside a try/catch. This is a normal fallback for an alternative build target.
-
likely benign Reads libvips package config to compare libc family and version for diagnostics.
Reasoning
Reads the package config of the platform-specific libvips package to compare libc versions, which is a diagnostic step in sharp's install-error reporting. It only reads metadata and executes nothing.
-
likely benign Loads the sharp native addon binary for the current platform and version.
Reasoning
ESM copy of the native addon loader using the same platform and version path construction. Expected behaviour.
-
likely benign Loads the wasm32 sharp addon as a fallback when the native build is missing.
Reasoning
ESM copy of the wasm32 fallback loader. A normal alternative build path inside a try/catch.
-
likely benign Reads libvips package config to compare libc family and version for diagnostics.
Reasoning
ESM copy of the libc diagnostic step that reads the platform package's config. Read-only metadata access.
-
likely benign Loads the platform package's versions metadata for reporting.
Reasoning
Loads a versions metadata module from a platform-named sharp package, with a fallback to the libvips package. The result is used only to report version strings.
-
}likely benign Falls back to the libvips package versions metadata for reporting.Reasoning
Fallback to the libvips package versions module, with errors suppressed. Ordinary metadata lookup.
-
likely benign Loads the platform package's versions metadata for reporting.
Reasoning
ESM copy of the versions metadata lookup, with the same platform-named package and fallback. Read-only reporting, no execution.
-
}likely benign Falls back to the libvips package versions metadata for reporting.Reasoning
ESM copy of the libvips versions fallback with errors suppressed. Ordinary metadata access.
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|
&&