r/javascript • • Nov 27 '18

event-stream vulnerability explained

https://schneid.io/blog/event-stream-vulnerability-explained/
412 Upvotes

70 comments sorted by

View all comments

-1

u/thisisafullsentence Nov 27 '18 edited Nov 28 '18

One more reason not to commit minified code to any repo!

Edit: I was wrong. Looks like the malicious code was minified and published to npm.

3

u/notarebel Nov 27 '18

The malicious payload was injected into the minified JS published to npm, it wasn't committed to the two repos in question (event-stream and flatmap-stream).

1

u/thisisafullsentence Nov 28 '18

Ah I misread that. Thanks for the clarity. I suppose minified files direct from an npm package isn’t out of the ordinary.