Credential exposure via unmasked connection string in driver parse-error messages for the PHP driver
- CVE-2026-129928
- EUVD-2026-130676
Description
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.
Text from the CVE.org record.
Recommendation
MongoDB PHP Driver
- If you run a version from 2.2.0 to before 2.5.8update to 2.5.8 or laterMinor version change: check the release notes
- If you run a version from 1.22.0 to before 2.1.14update to 2.1.14 or laterMajor version change: expect breaking changes
- If you run a version from 1.16.0 to before 1.21.14update to 1.21.14 or laterMinor version change: check the release notes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
MongoDB PHP Driver
Affected versions Fixed in from 2.2.0 to before 2.5.8 2.5.8 from 1.22.0 to before 2.1.14 2.1.14 from 1.16.0 to before 1.21.14 1.21.14
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.