Skip to content

globally-installed package overwrites an existing binary in the target install location #7761

@koba04

Description

@koba04

npm has announced vulnerabilities that npm has been fixed.

https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli

One of the vulnerabilities has been fixed at yarn v1.12.1. Thank you! 👏👏👏
But yarn hasn't fixed the other yet.
Do you have any plans to fix this?

Do you want to request a feature or report a bug?

bug?

What is the current behavior?

globally-installed package overwrites an existing binary in the target install location.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Do not overwrite the symlink.

Please mention your node.js, yarn and operating system version.

  • Node: v10.16.3
  • Yarn: v1.21.1
  • OS: macOS 10.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions