Skip to content
Medium 6.8

Credential exposure via unmasked connection string in driver parse-error messages for the PHP driver

CVE-2026-129928 First seen on SecPulse

Summary

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 appli...

Affected packages

PackageAffected → Fixed
MongoDBPHP Driver
≥ 1.16.0, < 1.21.14→ 1.21.14
≥ 1.22.0, < 2.1.14→ 2.1.14
≥ 2.2.0, < 2.5.8→ 2.5.8

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details