NODE-7939Investigating

mongodb@7.7.0 uses require('crypto') in SCRAM-SHA-1, causing bundled ESM authentication to fail

h3. Use Case As a Node.js application developer using the MongoDB driver in a bundled ESM server, I want SCRAM-SHA-1 authentication to work when Node's built-in crypto module is available. h3. User Experience * _Expected outcome: MongoDB authentication succeeds when the driver is bundled into ESM output and executed in Node.js._ * _Actual outcome: SCRAM-SHA-1 authentication fails because a raw require('crypto') call remains in the emitted ESM bundle._ * _Impact: the affected applicatio

Affected Versions
Versions known to exhibit this issue
7.7.0
Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Authentication
Labels
Tags and classification
external-user