GHSA-65fr-j4p9-vc33: High severity composer/mongodb/mongodb vulnerability

Published Sep 8, 2026
·
Updated

Impact Passing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.

Patches Fixed in PHP library 1.21.4 and 2.4.1.

Workarounds Validate database and collection names prior to passing into APIs.

Affected Software

2 affected componentsFixes available
composer/mongodb/mongodb>=2.0.0<2.4.1
2.4.1
composer/mongodb/mongodb<1.21.4
1.21.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/mongodb/mongodb to a version that resolves this vulnerability.

    Fixed in 2.4.1
  2. Upgrade

    Upgrade composer/mongodb/mongodb to a version that resolves this vulnerability.

    Fixed in 1.21.4
  3. Upgrade

    Upgrade PHP library to a version that resolves this vulnerability.

    Fixed in 1.21.4
  4. Upgrade

    Upgrade PHP library to a version that resolves this vulnerability.

    Fixed in 2.4.1
  5. Configuration

    Validate database and collection names before passing untrusted input into the PHP library APIs to prevent targeting a different database or collection than intended.

    Application code using the PHP library Database and collection name validation = Validate database and collection names prior to passing into APIs

Event History

Sep 8, 2026
Advisory Published
via GitHub·09:27 PM
Data Sourced
via GitHub·09:27 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which versions contain the fix?

The issue is fixed in PHP library versions 1.21.4 and 2.4.1.

2

What access does an attacker need to exploit this?

An attacker needs the ability to provide untrusted input that is used as part of a database or collection name passed to the library's APIs. The supplied data may cause operations to target a different database or collection than intended.

3

What can be done if updating is not immediately possible?

Validate database and collection names before passing them to the affected APIs. Do not construct these names directly from untrusted input without validation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203