GHSA-965h-392x-2mh5: webpki Name Constraints For URI Names Vulnerability
LOWGHSA-965h-392x-2mh5 is a LOW (CVSS 2.2) name constraints for uri names vulnerability (CWE-295: Improper Certificate Validation) affecting webpki libraries in the crates.io ecosystem. The issue involves name constraints for uri names were incorrectly accepted. Remediation is available by upgrading affected packages to version 0.103.12, 0.104.0-alpha.6.
GHSA-965h-392x-2mh5 at a Glance
Security Impact
CVSS: 2.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N).
How to Fix GHSA-965h-392x-2mh5
To remediate this vulnerability, upgrade all affected webpki dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade rustls-webpki to 0.103.12
Upgrade rustls-webpki to 0.104.0-alpha.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rustls-webpki
How to Check if You Are Affected
To determine whether your application is affected by GHSA-965h-392x-2mh5, inspect your project dependencies for webpki:
inspect dependencies for rustls-webpki
Analyze the terminal output to locate any version of webpki in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.103.12), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & RFC 5280 Specification
Under RFC 5280 specifications for X.509 certificates, the Name Constraints extension defines a namespace within which all subsequent subject names in a certification path must be located. Constraints apply to various name forms including directory names, IP addresses, rfc822Name (email addresses), and uniformResourceIdentifier (URI) entries. Specifically, during certificate path validation, affected versions of webpki failed to properly normalize or enforce boundary checks when domain names contained trailing dot (.) characters. Because domain names with a trailing dot signify fully qualified domain names (FQDNs), this omission allowed non-conforming certificates to be improperly validated as compliant with the defined name constraints.
Source Advisory Statement
GHSA-965h-392x-2mh5 Affected webpki Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rustls-webpki
|
crates.io |
≥ 0.101.0
< 0.103.12
|
0.103.12
|
|
rustls-webpki
|
crates.io |
≥ 0.104.0-alpha.1
< 0.104.0-alpha.6
|
0.104.0-alpha.6
|
References
Frequently Asked Questions
What is GHSA-965h-392x-2mh5?
Which webpki versions are affected?
What version fixes GHSA-965h-392x-2mh5?
Is rustls-webpki affected?
What is the CVSS score of GHSA-965h-392x-2mh5?
What CWE is associated with GHSA-965h-392x-2mh5?
How can I check crates.io dependencies for GHSA-965h-392x-2mh5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-965h-392x-2mh5",
"modified" : "2026-04-16T21:16:23Z",
"published" : "2026-04-16T21:16:22Z",
"aliases" : [ ],
"summary" : "webpki: Name constraints for URI names were incorrectly accepted",
"details" : "Name constraints for URI names were ignored and therefore accepted.\n\nNote this library does not provide an API for asserting URI names, and URI name constraints are otherwise not implemented. URI name constraints are now rejected unconditionally.\n\nSince name constraints are restrictions on otherwise properly-issued certificates, this bug is reachable only after signature verification and requires misissuance to exploit.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "rustls-webpki"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.101.0"
}, {
"fixed" : "0.103.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "rustls-webpki"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.104.0-alpha.1"
}, {
"fixed" : "0.104.0-alpha.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rustls/webpki/security/advisories/GHSA-965h-392x-2mh5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rustls/webpki"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2026-0098.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-16T21:16:22Z",
"nvd_published_at" : null
}
}