Skip to content

Dependency on malicious package #5863

Description

@benmccann

flatmap-stream is owned by a malicous actor. See here: dominictarr/event-stream#116

This repo depends on flatmap-stream:

chart.js@2.7.3
└─┬ gulp-connect@5.6.1
  └─┬ event-stream@3.3.6 
    └── flatmap-stream@0.1.2 

If you npm install today you'll get flatmap-stream@0.1.2, which I believe to be safe. However, there's no reason why the malicious maintainer cannot publish a new malicious 0.1.3. Adding a package-lock.json file would prevent this.

There's also no way to tell if anyone has been exposed to the malicious flatmap-stream@0.1.1 previously by using Chart.js. It's very likely that our developers have been exposed to this package in the past if they did an npm install at the time where the latest version of flatmap-stream was 0.1.1. Had we been using package-lock.json we would be able to check and take action more easily

I would recommend we adopt package-lock.json and stop using unpinned dependencies. @etimberg @simonbrunel @nagix thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions