MongoDB Patches Input Sanitation Flaw in libmongocrypt KMS Requests

2 min read
Source: MongoDB | Alerts
TL;DR

MongoDB has resolved a major security vulnerability in its libmongocrypt library where inputs for Key Management Service (KMS) HTTP requests were not properly sanitized. The issue, tracked as MONGOCRYPT-963, was fixed in version 1.21.1 and backported to the 1.21 release branch. The fix was committed to the master branch on October 22, 2026, by developer Kevin Albertson. This update addresses a potential security risk associated with unsanitized data in cryptographic operations, ensuring that HTTP requests to KMS providers are handled securely. The resolution was marked as fixed on the same day, with the target end date for the issue set for November 4, 2026.

Key points

  • The vulnerability, identified as MONGOCRYPT-963, involved insufficient sanitization of inputs for KMS HTTP requests in the libmongocrypt library.
  • The issue was classified as a major bug with a priority level of P3, indicating significant but not critical impact.
  • The fix was implemented in version 1.21.1 and backported to the 1.21 release branch.
  • Kevin Albertson, a MongoDB developer, authored the commits that resolved the issue on October 22, 2026.
  • The resolution was confirmed on October 22, 2026, with the issue's end date scheduled for November 4, 2026.

Background

MongoDB's libmongocrypt library is a critical component for client-side encryption, handling cryptographic operations and interactions with Key Management Services (KMS). Previous security issues in this library have highlighted the importance of robust input validation to prevent potential exploits. The current fix aligns with MongoDB's ongoing efforts to enhance the security and stability of its encryption tools, ensuring that data transmitted to KMS providers is properly sanitized to mitigate risks such as injection attacks or malformed request handling.

Why it matters

This patch is crucial for organizations relying on MongoDB's client-side encryption features, as unsanitized inputs in KMS requests could potentially lead to security vulnerabilities or data integrity issues. By addressing this flaw, MongoDB ensures that its cryptographic library maintains a high standard of security, protecting sensitive data during encryption and key management processes. Users of libmongocrypt should update to version 1.21.1 or later to mitigate any associated risks.

What to watch

MongoDB users should update their libmongocrypt installations to version 1.21.1 or the latest 1.21 release branch to incorporate the fix. The issue's end date is set for November 4, 2026, suggesting that further verification or documentation updates may occur before this date. Monitoring for any additional security advisories related to libmongocrypt is recommended to ensure continued protection against potential vulnerabilities.

Share this article

Want the full story? Read the original reporting

Read on MongoDB | Alerts