Credential exposure via unmasked connection string in MongoDB PHP driver
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-209.
Summary
The MongoDB PHP extension includes the full connection string in the error it raises when that string cannot be parsed. A party able to influence any part of the connection string, even a part that holds no secret, can cause the message to carry credentials into standard error output and log files. This may disclose authentication material to anyone able to read that output (CWE-209).
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the CNA
The MongoDB PHP extension includes the full connection string it was given in the error it raises when that string cannot be parsed. A party able to influence any part of the connection string, including a part that holds no secret, can cause the resulting message to carry credentials into the application's standard error output and log files. This may result in unintended disclosure of authentication material to anyone able to read that output.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | PHP Driver | 1.16.0 to before 1.21.14; 1.22.0 to before 2.1.14; 2.2.0 to before 2.5.8 | 1.21.14, 2.1.14, 2.5.8 | Patch available | CNA |
- PHP Driver VendorMongoDB Affected 1.16.0 to before 1.21.14; 1.22.0 to before 2.1.14; 2.2.0 to before 2.5.8 Fixed in 1.21.14, 2.1.14, 2.5.8 Patch available CNA
Remediation
Upgrade the MongoDB PHP Driver to 1.21.14, 2.1.14 or 2.5.8, which fix the flaw in the affected ranges before 1.21.14, before 2.1.14 and before 2.5.8 respectively.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · CNA PHP Driver (MongoDB) Fixed in 1.21.14, 2.1.14, 2.5.8
Timeline
- 2026-11-19 Threatist record created from CVE-2026-129928
References
More MongoDB vulnerabilities
- TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
- TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
- TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences