NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-81525: mongodb: Reject "." and NUL bytes in database and collection names

highCVSS 4.0 8.6 · 3.1 8.1GHSA-65fr-j4p9-vc33

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.

Published Sep 8, 2026

Affected packages

mongodb/mongodb

Ecosystem
Composer (PHP)
Affected
< 1.21.4
Fixed in
1.21.4
Check
composer show mongodb/mongodb

mongodb/mongodb

Ecosystem
Composer (PHP)
Affected
>= 2.0.0, < 2.4.1
Fixed in
2.4.1
Check
composer show mongodb/mongodb

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries