MongoDB Node.js Driverで接続先を偽装、修正版あり
Summary
MongoDB Node.js Driverの脆弱性で、mongodb+srv://を使うアプリはDNS応答の改ざんで接続先をすり替えられます。7.8.0以上へ更新し、接続文字列の形式をまず確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
MongoDB Node.js Driverの脆弱性で、mongodb+srv://を使うアプリはDNS応答の改ざんで接続先をすり替えられます。7.8.0以上へ更新し、接続文字列の形式をまず確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| MongoDBNode.js Driver |
≥ 3.3.3, < 7.8.0→ 7.8.0 |
7.8.0 |
Original description The description as published by the source.
A validation flaw in the DNS SRV host discovery of the MongoDB Node.js driver may cause the driver to connect to a host outside the expected domain. For a mongodb+srv:// connection string, the driver checks each host name in the DNS SRV response against the domain of the connection string. The driver then builds the connection address from the original name, in which certain characters end the host name early. An unauthenticated party who can forge or change the DNS SRV response may redirect the connection to a host of their choice. TLS does not prevent this, because the driver verifies the server certificate against the redirected host name. This may result in unintended disclosure of application data and authentication credentials, and in altered query results. Applications that use mongodb:// connection strings are not affected.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- web cna@mongodb.com
- web github.com