CVE-2026-81525 — mongodb: Reject "." and NUL bytes in...
mongodb: Reject "." and NUL bytes in database and collection names
Summary
Advisory Timeline
- First published September 8, 2026 (33 days ago).
- Last revised September 8, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "mongodb/mongodb:^2.4.1"
composer require "mongodb/mongodb:^1.21.4"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| mongodb/mongodb | packagist | 2.0.0, 2.1.0, 2.1.1, 2.1.2 (+3 more) | 2.4.1 |
| mongodb/mongodb | packagist | 0.1.0, 0.2.0, 1.0.0, 1.0.0-alpha1 (+55 more) | 1.21.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-943
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-65fr-j4p9-vc33WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-81525ADVISORY
- https://github.com/mongodb/mongo-php-library/pull/1967WEB
- https://github.com/mongodb/mongo-php-library/pull/1968WEB
- https://github.com/mongodb/mongo-php-library/commit/3a462213bb4fd46efa58a1937b06b1b0553b67a7WEB
- https://github.com/mongodb/mongo-php-library/commit/6f305a3b21740080255a3093b12458274c7cc8caWEB
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6WEB
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.7WEB
- https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1WEB
- https://github.com/mongodb/mongo-php-libraryPACKAGE
- https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4WEB
- https://github.com/mongodb/mongo-php-library/releases/tag/2.4.1WEB
- https://jira.mongodb.org/browse/PHPLIB-1927WEB
Frequently Asked Questions
- What is CVE-2026-81525?
- mongodb: Reject "." and NUL bytes in database and collection names This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-81525?
- CVE-2026-81525 affects mongodb/mongodb. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-81525 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-65954HIGH
PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()
- CVE-2026-61825HIGH
code16/sharp has a stored XSS via data-html-content Sanitizer Bypass
- CVE-2026-88023MEDIUM
MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies