Files
bun.sh/test/cli
Claude Bot 563fbbb416 fix(install): reject unsupported integrity hash algorithms in lockfiles
Previously, if a lockfile contained an integrity hash with an
unrecognized algorithm (e.g., "md5-AAAA"), the tag would parse as
unknown and the integrity verification would be silently skipped. This
meant a tampered lockfile could disable integrity checking entirely.

Now all lockfile parsers (bun.lock, yarn.lock, pnpm-lock.yaml,
package-lock.json) reject non-empty integrity strings with unsupported
hash algorithms. As defense-in-depth, the tarball extraction step also
errors when an npm package lacks a supported integrity hash.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-12 04:48:27 +00:00
..