CVE Professor
/
All CVEs
CVE-2026-142596

CVE-2026-142596 — Mongoose — CWE-200

HIGH CVSS 7.5 ⚡ EPSS 0.7% GitHub

### Summary Since Mongoose 8.5.0, the `sanitizeProjection` option prevents untrusted projections from including fields that the schema deselects with `select: false`, like password hashes and reset tokens. Several projection forms got around that check, so a user-controlled projection could still return `select: false` fields even with `sanitizeProjection` enabled. Mongoose versions before 8.5.0 do **not** make `sanitizeProjection` block including `select: false` keys - hiding `select: false` keys was a new feature introduced in Mongoose 8.5.0. ### Details Given: ```javascript const User = mongoose.model('User', new Schema({ name: String, password: { type: String, select: false }, profile: { bio: String, ssn: { type: String, select: false } }, secrets: { type: Map, of: String, select: false }, recoveryCodes: { type: [String], select: false }, tags: [String], comments: [{ text: String, secret: { type: String, select: false } }] })); ``` each of the following returned `select: false` data with `sanitizeProjection` enabled: | Projection | Why it got through | | --- | --- | | `select('-name +password')` | `+path` was only blocked in inclusive projections | | `select('-+password')` | Collapsing `-` paths turned it into `+password` | | `select('+secrets')` | `+path` was not blocked for map paths | | `select({ name: { $concat: ['$password'] } })`, `select({ name: ['$password'] })` | Object and array values are aggregation expressions; only string values were san

### Summary Since Mongoose 8.5.0, the `sanitizeProjection` option prevents untrusted projections from including fields that the schema deselects with `select: false`, like password hashes and reset tokens. Several projection forms got around that check, so a user-controlled projection could still return `select: false` fields even with `sanitizeProjection` enabled. Mongoose versions before 8.5.0 do **not** make `sanitizeProjection` block including `select: false` keys - hiding `select: false` keys was a new feature introduced in Mongoose 8.5.0. ### Details Given: ```javascript const User = mongoose.model('User', new Schema({ name: String, password: { type: String, select: false }, profile: { bio: String, ssn: { type: String, select: false } }, secrets: { type: Map, of: String, select: false }, recoveryCodes: { type: [String], select: false }, tags: [String], comments: [{ text: String, secret: { type: String, select: false } }] })); ``` each of the following returned `select: false` data with `sanitizeProjection` enabled: | Projection | Why it got through | | --- | --- | | `select('-name +password')` | `+path` was only blocked in inclusive projections | | `select('-+password')` | Collapsing `-` paths turned it into `+password` | | `select('+secrets')` | `+path` was not blocked for map paths | | `select({ name: { $concat: ['$password'] } })`, `select({ name: ['$password'] })` | Object and array values are aggregation expressions; only string values were san

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity None I:N
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.7%
30-day probability
In the 54. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142596
CVSS 7.5/10 · HIGH · 02.12.2026
CWE: CWE-200
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Summary

Since Mongoose 8.5.0, the sanitizeProjection option prevents untrusted projections from including fields that the schema deselects with select: false, like password hashes and reset tokens. Several projection forms got around that check, so a user-controlled projection could still return select: false fields even with sanitizeProjection enabled. Mongoose versions before 8.5…
Affected: mongoose

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable.

🛡️ REMEDIATION
→ Apply vendor security update for mongoose.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (1)
mongoose
References & Advisories (4)
Related CVEs
5.3
CVE-2026-144571
Payload 3.86.0 before 3.94.2 and 4.0.0-beta.1 before 4.0.0-beta.12 contains an access control bypass in the Mo
9.2
CVE-2026-115991
Exposure of sensitive information in the content lock-check endpoints (PUT /api/content/canLock and GET /api/v
6.9
CVE-2026-77469
FediHome is a self-hosted, single-user publishing platform that connects to the Fediverse via ActivityPub. Pri
6.9
CVE-2026-132094
Improper access control in the content search and asset delivery paths (GraphQL search and collection queries,
6.5
CVE-2026-77461
ORAS is a tool for working with OCI Artifacts. Prior to version 0.6.0, the auth client blindly follows the rea
6.3
CVE-2026-132114
Exposure of sensitive information in the workflow Velocity context (VelocityUtil.getWorkflowContext) in dotCMS
6.0
CVE-2026-144620
Chatwoot before 4.20.2 contains an information disclosure vulnerability that allows account administrators to