The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(deps): bump certifi 2026.5.20 → 2026.10.19 (critical, GHSA-6q48-6c7w-9gw2)
Maciej Lisiewski5aa2f1b56c58
diff --git a/pm/AGENTS.md b/pm/AGENTS.mdindex 17b7c2ed198..0efc54ceb84 100644--- a/pm/AGENTS.md+++ b/pm/AGENTS.md@@ -19,7 +19,9 @@ isolated tool environments. Callers receive an interpreter or tool path, not uv.Nix's declarative uv2nix builds and unrelated user projects remain independently owned.The `[tool.uv] exclude-newer = "3 days"` release-age check covers **Hermes's own dependencies-only**, exact pins included, with no per-package exemptions, and it runs when Hermes LOCKS+only**, exact pins included, with one per-package exemption class: CA trust stores (`certifi`),+whose revocation releases must reach the lock the day they ship (`exclude-newer-package`; nothing+else goes there). It runs when Hermes LOCKS(`hermes pm lock`, CI's lock check), never on users' machines: every generated workspace drops thecutoff (`pm/workspace.py::_without_release_age`), so a mirror without upload times cannot break aninstall (#135589). Plugin resolution is unchanged by this: core's exact pins stay put, and a plugindiff --git a/pyproject.toml b/pyproject.tomlindex 897a5e02899..df55bc8024b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -38,7 +38,7 @@ dependencies = [# user picks that backend. Smaller `dependencies` = smaller blast# radius for the next supply-chain attack."openai==2.24.0; python_version >= '3.14'",- "certifi==2026.5.20; python_version >= '3.14'",+ "certifi==2026.10.19; python_version >= '3.14'",# TLS trust comes from the OS certificate store (agent/ssl_verify.py), so# a corporate/internal root installed on the machine just works. certifi# above stays a direct pin because httpx/requests/openai each depend on@@ -635,8 +635,12 @@ override-dependencies = [# check), never on users' machines: PM installs from this vetted lock and drops the# cutoff from what it generates (pm/workspace.py::_trust_core_lock), because many# package mirrors publish no upload times and uv rejects a file it cannot date-# (#135589). Exact pins follow the same 3-day rule; there are no exemptions.+# (#135589). Exact pins follow the same 3-day rule. The one exemption is CA+# trust stores: a release that revokes or distrusts a compromised CA must reach+# the lock the day it ships, because holding it back keeps the bad root trusted.+# Only packages whose job is CA trust belong in exclude-newer-package.exclude-newer = "3 days"+exclude-newer-package = { certifi = false }[tool.setuptools]# Root single-file modules are derived by setup.py at build time from thediff --git a/tests/test_packaging_metadata.py b/tests/test_packaging_metadata.pyindex 3fd0fee7fc2..02b41e3ee9a 100644--- a/tests/test_packaging_metadata.py+++ b/tests/test_packaging_metadata.py@@ -53,19 +53,25 @@ def test_starlette_server_pins_and_lock_exclude_cve_2026_48710():assert versions and all(version >= floor for version in versions)+CA_TRUST_PACKAGES = {"certifi"}++def test_every_dependency_is_held_to_one_three_day_release_age():"""Hermes's deps must be >= 3 days old when locked, exact pins included (Teknium ruling).A per-package exemption or date would quietly let a fresh release into the lock; thecheck runs at lock time only, so users never need a mirror that serves upload times.+ The sole exception is CA trust stores: a CA revocation must ship the day it is released."""manifest = tomllib.loads((REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8"))uv = manifest["tool"]["uv"]lock = tomllib.loads((REPO_ROOT / "uv.lock").read_text(encoding="utf-8"))assert uv["exclude-newer"] == "3 days"- assert "exclude-newer-package" not in uv+ exempt = uv.get("exclude-newer-package", {})+ assert set(exempt) <= CA_TRUST_PACKAGES, exempt+ assert all(value is False for value in exempt.values()), exemptassert lock["options"].get("exclude-newer-span") == "P3D"- assert "exclude-newer-package" not in lock["options"]+ assert lock["options"].get("exclude-newer-package", {}) == exemptdef test_httpx2_pins_and_lock_exclude_ghsa_7mj9_2mp8_4m2p_family():diff --git a/uv.lock b/uv.lockindex 579494c2dde..c4a01b67015 100644--- a/uv.lock+++ b/uv.lock@@ -13,6 +13,9 @@ supported-markers = [exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values.exclude-newer-span = "P3D"+[options.exclude-newer-package]+certifi = false+[manifest]overrides = [{ name = "cryptography", specifier = "==50.0.1" },@@ -749,11 +752,11 @@ wheels = [[[package]]name = "certifi"-version = "2026.5.20"+version = "2026.10.19"source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/f3/ce/ee2ecad540810a79593028e88299baeae54d346cc7a0d94b6199988b89b1/certifi-2026.5.20.tar.gz", hash = "sha256:69dea482ab64caa7b9f6aba1c6bf48bb6a5448d1c0f1b17ab42ad8c763a5344d", size = 135422, upload-time = "2026-05-20T11:46:50.073Z" }+sdist = { url = "https://files.pythonhosted.org/packages/a6/bd/1436c50cc46699de0230fbaacc1d1de7bfec413176099949e9d5112e88f2/certifi-2026.10.19.tar.gz", hash = "sha256:035c1e85572b141bf1c3a3eff0e33a8eb74917522f2559075ff8d2fea780a1ae", size = 137598, upload-time = "2026-10-20T02:24:16.604Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/59/8c/57e832b7af6d7c5abe66eb3fbe3a3a32f4d11ea23a1aa7131371035be991/certifi-2026.5.20-py3-none-any.whl", hash = "sha256:3c52e209ba0a4ad7aebe60436a4ab349c39e1e602e8c134221e546902ad25897", size = 134134, upload-time = "2026-05-20T11:46:48.578Z" },+ { url = "https://files.pythonhosted.org/packages/c4/51/29046e48f693c54e5b7412216d447a1d8362c9653148d98c02cdf65fa733/certifi-2026.10.19-py3-none-any.whl", hash = "sha256:42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b", size = 136464, upload-time = "2026-10-20T02:24:15.072Z" },][[package]]@@ -2545,7 +2548,7 @@ requires-dist = [{ name = "boto3", marker = "extra == 'bedrock'", specifier = "==1.42.89" },{ name = "brotlicffi", marker = "extra == 'messaging'", specifier = "==1.2.0.2" },{ name = "browser-harness", marker = "python_full_version >= '3.14'", specifier = "==0.1.13" },- { name = "certifi", marker = "python_full_version >= '3.14'", specifier = "==2026.5.20" },+ { name = "certifi", marker = "python_full_version >= '3.14'", specifier = "==2026.10.19" },{ name = "concurrent-log-handler", marker = "python_full_version >= '3.14' and sys_platform == 'win32'", specifier = "==0.9.29" },{ name = "croniter", marker = "python_full_version >= '3.14'", specifier = "==6.0.0" },{ name = "cryptography", marker = "python_full_version >= '3.14'", specifier = "==50.0.1" },diff --git a/website/docs/reference/package-management.md b/website/docs/reference/package-management.mdindex 1a2e7d33361..341ef30f33e 100644--- a/website/docs/reference/package-management.md+++ b/website/docs/reference/package-management.md@@ -585,7 +585,9 @@ Every Python package Hermes itself depends on must be at least three days oldwhen Hermes locks it (uv's `exclude-newer`, enforced by CI's lock check), so afreshly published, possibly compromised release cannot reach `uv.lock`. Usersinstall from that lock, and installing or enabling a plugin never re-checks-dates, so package mirrors that publish no upload times work. Set a mirror with `index-url` in `pip.conf`,+dates, so package mirrors that publish no upload times work. The one exemption+is CA trust stores (`certifi`): a release that distrusts a compromised CA is+locked the day it ships, since waiting keeps the bad root trusted. Set a mirror with `index-url` in `pip.conf`,which Hermes passes to uv, or with `UV_INDEX_URL`.`hermes pm lock` is the one step that applies the check. Run against a mirror