MsQuic: Improper Certificate Validation in Microsoft.Native.Quic.MsQuic.OpenSSLGHSA-w5f4-fx9m-m4q7
Fix: microsoft/msquic#6274GHSA-w5f4-fx9m-m4q7 is a CWE-295 vulnerability in Microsoft.Native.Quic.MsQuic.OpenSSL. A fix is available for Microsoft.Native.Quic.MsQuic.OpenSSL — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
Microsoft.Native.Quic.MsQuic.OpenSSL.NETMicrosoft.Native.Quic.MsQuic.OpenSSL.NETMicrosoft.Native.Quic.MsQuic.OpenSSLReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
MsQuic is a cross-platform C implementation of the IETF QUIC protocol exposed to C, C++, C#, and Rust. Prior to 2.4.20, 2.5.11, and 2.6.1, MsQuic clients using the OpenSSL or QuicTLS TLS backend do not properly verify that a server certificate matches the intended target server hostname. An on-path attacker can therefore present a certificate that does not match the intended target hostname and spoof the server in a man-in-the-middle attack. The Schannel backend is not affected. This issue is fixed in versions 2.4.20, 2.5.11, and 2.6.1.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | Microsoft.Native.Quic.MsQuic.OpenSSL | all versions | 2.4.20dotnet add package Microsoft.Native.Quic.MsQuic.OpenSSL --version 2.4.20 |
| .NETNuGet | Microsoft.Native.Quic.MsQuic.OpenSSL | ≥ 2.5.0&&< 2.5.11 | 2.5.11dotnet add package Microsoft.Native.Quic.MsQuic.OpenSSL --version 2.5.11 |
| .NETNuGet | Microsoft.Native.Quic.MsQuic.OpenSSL | ≥ 2.6.0&&< 2.6.1 | 2.6.1dotnet add package Microsoft.Native.Quic.MsQuic.OpenSSL --version 2.6.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for Microsoft.Native.Quic.MsQuic.OpenSSL, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update Microsoft.Native.Quic.MsQuic.OpenSSL to 2.4.20 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-w5f4-fx9m-m4q7 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-w5f4-fx9m-m4q7 in your dependencies?
Find it across NuGet, including transitive dependencies.