Upgrade the MongoDB module used by the Whiteflag API to version 3.1.13 or later, as advised by this NPM advisory: https://www.npmjs.com/advisories/1203.
Note that for a properly configured setup, this issue should not impact the current Whiteflag API versions 1.0.0-alpha.3 and below, because the database and collections are only configured once and the database configuration cannot be influenced by action external to the API.
Updated MongoDB module to version 3.5.3, refactored related code and tested in the dev/mongodb branch. Tested and merged into develop in 02027f4eb4b5739d8f65e63e287f9ff9bcce9b88.
Upgrade the MongoDB module used by the Whiteflag API to version 3.1.13 or later, as advised by this NPM advisory: https://www.npmjs.com/advisories/1203. Note that for a properly configured setup, this issue should not impact the current Whiteflag API versions 1.0.0-alpha.3 and below, because the database and collections are only configured once and the database configuration cannot be influenced by action external to the API.