CVE-2016-10533
Private Data Disclosure in express-restify-mongoose
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
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.
- Record
CVE-2016-10533- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.0 Medium
AV:N/AC:L/Au:S/C:P/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-10533- Weakness
- CWE-200
- Updated
- 2026-11-02
EUVDEUVD-2018-0577 No score
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.
- Record
EUVD-2018-0577- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-cgjx-mwpx-47jv No score
Private Data Disclosure in express-restify-mongoose
Affected versions of express-restify-mongoose are susceptible to an information leakage vulnerability which may allow an attacker to access fields on a model even if those fields are marked as private.
Proof of Concept
If you have a user model that you want to protect, such as the following User model:
const User = mongoose.model('User', new mongoose.Schema({
name: String,
password: String,
}));
You would normally do something such as:
restify.serve(router, User, {
private: ['password'], // Set the password part of User as private, so outside people can't read it
})
This would hide the password field from people that send your application a GET /User and GET /User/some-user-id request.
A malicious user can go to your application and 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 could be used for other private data, if the malicious user knew what was set as private for specific routes.
Recommendation
Version 2.x: Update to version 2.5.0 or later. Version 3.x: Update to version 3.1.0 or later.
- Record
GHSA-cgjx-mwpx-47jv- Weakness
- CWE-200
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2016-10533- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-cgjx-mwpx-47jv No score
Private Data Disclosure in express-restify-mongoose
Affected versions of express-restify-mongoose are susceptible to an information leakage vulnerability which may allow an attacker to access fields on a model even if those fields are marked as private.
Proof of Concept
If you have a user model that you want to protect, such as the following User model:
const User = mongoose.model('User', new mongoose.Schema({
name: String,
password: String,
}));
You would normally do something such as:
restify.serve(router, User, {
private: ['password'], // Set the password part of User as private, so outside people can't read it
})
This would hide the password field from people that send your application a GET /User and GET /User/some-user-id request.
A malicious user can go to your application and 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 could be used for other private data, if the malicious user knew what was set as private for specific routes.
Recommendation
Version 2.x: Update to version 2.5.0 or later. Version 3.x: Update to version 3.1.0 or later.
- Record
GHSA-cgjx-mwpx-47jv- Weakness
- CWE-200
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
express-restify-mongoosenpm |
through 2.4.2 | 2.5.0 |
express-restify-mongoosenpm |
3.0.0 to 3.0.1 | 3.1.0 |
express-restify-mongoosenpm |
3.0.0 up to 3.1.0 | 3.1.0 |
express-restify-mongoosenpm |
before 2.5.0 | 2.5.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-10533 is a high vulnerability (CVSS 8.8) in Express-restify-mongoose Project Express-restify-mongoose, published May 31, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.40%, the 72nd percentile. Fixed in express-restify-mongoose 2.5.0.
References
github.com/florianholzapfel/express-restify-mongoose/issues/252
nodesecurity.io/advisories/92
nvd.nist.gov/vuln/detail/CVE-2016-10533
github.com/advisories/GHSA-cgjx-mwpx-47jv
npmjs.com/advisories/92
github.com/florianholzapfel/express-restify-mongoose/pull/253
github.com/florianholzapfel/express-restify-mongoose/commit/23ccb247d0074bfaca6737cdff52d89c6d6e4a7c
github.com/florianholzapfel/express-restify-mongoose/commit/746defcd808e2ed1e8931dc36702b25b7db0e94b