Description
express-restify-mongoose is a module to easily create a flexible REST interface for mongoose models. express-restify-mongoose 2.4.2 and earlier and 3.0.X through 3.0.1 allows a malicious user to send a request for `GET /User?distinct=password` and get all the passwords for all the users in the database, despite the field being set to private. This can be used for other private data if the malicious user knew what was set as private for specific routes.
Remediation
References
https://github.com/florianholzapfel/express-restify-mongoose/issues/252
https://nodesecurity.io/advisories/92
Related Vulnerabilities
CVE-2022-26585 Vulnerability in maven package net.mingsoft:ms-mcms
CVE-2019-6002 Vulnerability in maven package com.linecorp.centraldogma:centraldogma-server
CVE-2021-33605 Vulnerability in maven package com.vaadin:vaadin-checkbox-flow
CVE-2022-29253 Vulnerability in maven package org.xwiki.platform:xwiki-platform-oldcore
CVE-2020-6427 Vulnerability in maven package org.webjars.npm:electron