Skip to content

Remove compromised emSign trust from framework and pip bootstrap - #95

Merged
natewalck merged 2 commits into
mainfrom
codex/emsign-ca-security-fix
Oct 23, 2026
Merged

natewalck merged 2 commits into
mainfrom
codex/emsign-ca-security-fix

Conversation

@grahamgilbert

@grahamgilbert grahamgilbert commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

The framework currently ships a CA bundle and pip bootstrap wheels that trust the compromised emSign ECC root. Updating certifi alone leaves installed pip and newly created virtual environments exposed.

  • Upgrade certifi to 2026.10.19, pip to 26.2.2, and virtualenv to 21.14.13 with its required dependency updates.
  • Use Python 3.13.17 and 3.14.9 installers; patch ensurepip in every supported framework so Python 3.11/3.12 also seed fixed pip offline.
  • Bootstrap pip from the advisory’s SHA-256-verified wheel before the first PyPI request, then relocate newly installed console scripts.
  • Verify the revoked root is absent, dependencies and console scripts work, offline venv/virtualenv creation seeds fixed pip, and stdlib/Requests HTTPS succeeds before packaging.
  • Finish runtime checks before signing and strictly verify the framework resource seal before packaging.
  • Keep signed/notarized PR validation and artifact uploads, while restricting release publishing to manual workflow runs.

Advisory: https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576

Validation:

  • zsh -n build_python_framework_pkgs.zsh and Python syntax checks pass.
  • All workflow YAML parses with PyYAML.
  • Updated requirements resolve successfully on macOS arm64 / Python 3.14.
  • Full signed/notarized CI builds pass on commit 52bc180, including runtime checks, strict signature validation, Apple notarization/stapling, and uploaded package/framework artifacts:
  • PR builds skip release publishing.

Existing virtual environments need separate updates. The unsupported Python 3.9 compatibility seed in virtualenv still uses older pip; this limitation is documented.

@natewalck
natewalck merged commit 69b38db into main Oct 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants