[COMPASS-3321] Malicious event-stream package in compass and compass-connect repositories Created: 27/Nov/18  Updated: 29/Oct/23  Resolved: 28/Nov/18

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.17.0, 1.18.0

Type: Bug Priority: Major - P3
Reporter: Robert Dong (Inactive) Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Iteration Sriracha

 Description   

Snyk has indicated that the compass and compass-connect repositories are affected by the issue outlined https://app.snyk.io/vuln/SNYK-JS-EVENTSTREAM-72638 , https://snyk.io/vuln/SNYK-JS-FLATMAPSTREAM-72637 and https://www.theregister.co.uk/2018/11/26/npm_repo_bitcoin_stealer/ .

Can you please check these repositories and resolve the issue?

Thanks



 Comments   
Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream use for CWE-506
Branch: 1.17-releases
https://github.com/10gen/compass/commit/9af996af044e5b9a100fa00b4d3ee68bb6e0c8b7

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: refs/tags/v19.3.1
https://github.com/mongodb-js/hadron-build/commit/2bfedf60b9ae78de15e983a4d090512f3eaf176f

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: master
https://github.com/10gen/compass/commit/1e3d338f92e7bd647f06d1edb0f5e6cfcbdd817c

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: master
https://github.com/10gen/compass/commit/4aede75c416a2899d0a088cfc857e4dde547f48e

Comment by Durran Jordan [ 28/Nov/18 ]

Although the code path that would execute the malicious code was never being executed in Compass, we did have the bad dependency. I have now upgraded event-stream to 4.0.1 which removes the bad flatmap-stream dependency.

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: COMPASS-3321
https://github.com/10gen/compass/commit/e3a2c4d693b6e3e7fb29ea1ab2cb73830c6bc7f2

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: COMPASS-3321
https://github.com/10gen/compass/commit/ad2e20410c24624beb3c5770ac3a79b25cb61a53

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: master
https://github.com/mongodb-js/mongodb-schema/commit/87c8f45ab56102f68eaa6ebcdae23a2fb3f9c9e4

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: evergreen
https://github.com/mongodb-js/hadron-build/commit/c44689a7eb5979e4a915b6cc9a4abd4e78c412d3

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: master
https://github.com/mongodb-js/hadron-build/commit/5e3dd7439bb4df164dcd964d3a774c7e1809378c

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: master
https://github.com/mongodb-js/data-service/commit/b0de818cedc365fb8b44fcf228145bc76221f05c

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: master
https://github.com/mongodb-js/mongodb-schema/commit/eb13ed11cc3df3325ee3ab004b1b6ec8ad7db293

Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3321: Update event-stream sue to CWE-506
Branch: master
https://github.com/mongodb-js/data-service/commit/1b1508c64713880bf802b0bedae672159091c0b9

Generated at Wed Feb 07 22:32:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.