← Blog

Opal v0.4.2

A security release. opal install no longer accepts a dependency whose name is a path, and a package's bin entry can no longer point outside the package.

To install Opal v0.4.2

curl -fsSL https://raw.githubusercontent.com/saintparish4/opal/master/install.sh | OPAL_VERSION=v0.4.2 bash

Security

  • opal install no longer accepts a dependency whose name is a path. A package.json or opal.lock naming a dependency ../../x made Opal delete that directory and write a package there. Names are now checked in the resolver, the lockfile parser and the linker, and the install fails with the name.
  • A package's bin entry can no longer point outside the package. Such an entry is skipped.

Affected: every release up to 0.4.1. Upgrade with opal upgrade.

Full Changelog: https://github.com/saintparish4/opal/compare/v0.4.1...v0.4.2