Loading...
Skip to main content

CVE-2026-81525 — mongodb: Reject "." and NUL bytes in...

HIGH

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

Published September 8, 2026Updated September 8, 2026Source: osv

Summary

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

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
Update mongodb/mongodb to 2.4.1 or later
composer require "mongodb/mongodb:^2.4.1"
Composer
Update mongodb/mongodb to 1.21.4 or later
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).

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

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

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

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-65fr-j4p9-vc33

Related CVEs

  • CVE-2026-65954
    HIGH

    PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()

  • CVE-2026-61825
    HIGH

    code16/sharp has a stored XSS via data-html-content Sanitizer Bypass

  • CVE-2026-88023
    MEDIUM

    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