Advisory

GHSA-65fr-j4p9-vc33

Also known as: CVE-2026-81525

Summary

mongodb: Reject "." and NUL bytes in database and collection names

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-09-08 21:27 UTC
Modified
2026-09-08 21:56 UTC

Affected packages and fixes

mongodb/mongodb

Packagist · All systems

Affected

  • introduced 0, fixed 1.21.4 (ecosystem)

Fixed versions

1.21.4

Fix

The export has no generic command for this ecosystem.

mongodb/mongodb

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.4.1 (ecosystem)

Fixed versions

2.4.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences