Vulnerabilities in the event-stream package as outlined here have meant that I receive the following error when trying to build my application.
error An unexpected error occurred: "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz: Request failed \"404 Not Found\"".
After some digging, I realised that the mongo-cursor-pagination package I use had a dependency on mongodb-extended-json, which in turn depends on the malicious event-stream package.
After some more searching, it became apparent that the maintainers have updated the problematic dependency as shown by this commit.
However, the latest release v7.1.0 is from 28 June 2018 and doesn't include these changes.
Essentially, I would like my code to include the latest commit to mongo-cursor-pagination but I'm unsure how to go about achieving this.