Skip to content

Security: Remove pinned cryptography version 46.0.7 #61098

Description

@wallygatorek

Summary

The cryptography==46.0.7 pin in hermes-agent 0.18.x prevents security updates for a known HIGH vulnerability (GHSA-537c-gmf6-5ccf).

Vulnerability Details

  • Package: cryptography
  • Installed version: 46.0.7
  • Fixed version: 48.0.1+
  • GHSA: GHSA-537c-gmf6-5ccf
  • Issue: Vulnerable OpenSSL included in cryptography wheels

Current State

Requires-Dist: cryptography==46.0.7

This causes:

  1. Security vulnerability - exploitation via vulnerable bundled OpenSSL
  2. Dependency conflicts - pyOpenSSL requires cryptography>=49.0.0 for secure versions

Workaround

Manually upgrading pyOpenSSL to 26.3.0 pulls in cryptography==49.0.0, but this reverts after pipx reinstall hermes-agent.

Proposed Fix

Change to flexible constraint:

Requires-Dist: cryptography>=46.0.7,<50

This allows security updates while maintaining compatibility.

Environment

  • hermes-agent: 0.18.2
  • Python: 3.12.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/configConfig system, migrations, profilesdependenciesPull requests that update a dependency filepython:uvPull requests that update python:uv codetype/securitySecurity vulnerability or hardening

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions