You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

2019-07-12-recommended-security-update.md 1.6 kB

2 years ago
123456789101112131415161718192021222324252627
  1. ---
  2. layout : post
  3. title : "Recommended security update"
  4. author : "Maël Nison"
  5. author_url : "https://twitter.com/arcanis"
  6. date : 2019-07-12 23:44:03
  7. categories : announcements
  8. share_text : "Recommended security update"
  9. ---
  10. We've been made aware of a potential attack vector in the way some data are stored in the lockfile. We recommend to [upgrade](https://yarnpkg.com/en/docs/install) Yarn to the latest 1.17.3 release as soon as you get the chance. We also recommend you to edit your lockfiles to replace any reference to the `http:` protocol:
  11. ```
  12. $ sed -i '' 's/http:/https:/g' yarn.lock
  13. ```
  14. ## What happened?
  15. The Yarn registry is just a DNS alias to the npm registry. For a few months in 2018, the npm registry [returned http urls instead of the regular https ones](https://npm.community/t/some-packages-have-dist-tarball-as-http-and-not-https/285/40). Although the problem seems to have been corrected earlier this year, the lockfile entries generated during this period may still reference http urls and cause Yarn to send unencrypted authentication data over the network.
  16. ## What's the mitigation?
  17. Starting from the 1.17.3, regardless of what the registries return, we'll enforce https on the three most common hostnames: `*.yarnpkg.com`, `*.npmjs.org`, and `*.npmjs.com`. Additionally, starting from the v2, we'll rethink our default policies to make using http [require an explicit acknowledgement](https://github.com/yarnpkg/berry/issues/293) of some form.
  18. --
  19. Thanks to [@skovorodan](https://twitter.com/skovorodan) (operating on behalf of [Exodus](https://www.exodus.io/)) for the heads-up.

js yarn包管理组件依赖分析

Contributors (1)