Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
fix: patch nltk vulnerability (CVE-2026-54293) (#1929)
OrbisAI Security28ca61fc9d3e
diff --git a/pyproject.toml b/pyproject.tomlindex 9b6d52c52..1f6495caa 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -279,12 +279,11 @@ dev = [# `benchmark` is deliberately EXCLUDED from `[all]`. It installs the# EleutherAI lm-evaluation-harness (lm-eval), which headroom invokes as an# external subprocess (`python -m lm_eval`) — it is never imported as a-# library, so it is not a true runtime dependency. lm-eval pulls two-# transitive deps with unpatchable High CVEs (sqlitedict CVE-2024-35515,-# nltk CVE-2026-54293 via rouge-score), neither of which has an upstream-# fix. Keeping `benchmark` out of `[all]` means `pip install-# headroom-ai[all]` is CVE-free; researchers who need the accuracy harness-# opt in explicitly with `pip install headroom-ai[benchmark]`.+# library, so it is not a true runtime dependency. lm-eval pulls sqlitedict+# CVE-2024-35515, which has no upstream fix. Keeping `benchmark` out of+# `[all]` means `pip install headroom-ai[all]` is CVE-free; researchers who+# need the accuracy harness opt in explicitly with `pip install+# headroom-ai[benchmark]`.all = ["headroom-ai[proxy,code,ml,memory,relevance,image,reports,otel,evals,voice,html,mcp,spreadsheet]",]@@ -325,6 +324,8 @@ constraint-dependencies = ["langsmith>=0.9.0",# CVE-2026-49825 (High, XSS) — transitive via lxml[html-clean]; fix at 0.4.5"lxml-html-clean>=0.4.5",+ # CVE-2026-54293 (High) — transitive via rouge-score/lm-eval; fix at 3.10.0+ "nltk>=3.10.0",]# Pin the project's package index to public PyPI. Without this, `uv lock`diff --git a/uv.lock b/uv.lockindex 169f16d6e..786c688e0 100644--- a/uv.lock+++ b/uv.lock@@ -22,6 +22,7 @@ constraints = [{ name = "gitpython", specifier = ">=3.1.50" },{ name = "langsmith", specifier = ">=0.9.0" },{ name = "lxml-html-clean", specifier = ">=0.4.5" },+ { name = "nltk", specifier = ">=3.10.0" },{ name = "pydantic-settings", specifier = ">=2.14.2" },{ name = "pygments", specifier = ">=2.20.0" },]@@ -979,6 +980,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/87/22/f020c047ae1346613db9322638186468238bcfa8849b4668a22b97faad65/dateparser-1.2.2-py3-none-any.whl", hash = "sha256:5a5d7211a09013499867547023a2a0c91d5a27d15dd4dbcea676ea9fe66f2482", size = 315453, upload-time = "2025-06-26T09:29:21.412Z" },]+[[package]]+name = "defusedxml"+version = "0.7.1"+source = { registry = "https://pypi.org/simple/" }+sdist = { url = "https://files.pythonhosted.org/packages/0f/d5/c66da9b79e5bdb124974bfe172b4daf3c984ebd9c2a06e2b8a4dc7331c72/defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69", size = 75520, upload-time = "2021-03-08T10:59:26.269Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61", size = 25604, upload-time = "2021-03-08T10:59:24.45Z" },+]+[[package]]name = "dill"version = "0.4.0"@@ -3155,17 +3165,18 @@ wheels = [[[package]]name = "nltk"-version = "3.9.4"+version = "3.10.0"source = { registry = "https://pypi.org/simple/" }dependencies = [{ name = "click" },+ { name = "defusedxml" },{ name = "joblib" },{ name = "regex" },{ name = "tqdm" },]-sdist = { url = "https://files.pythonhosted.org/packages/74/a1/b3b4adf15585a5bc4c357adde150c01ebeeb642173ded4d871e89468767c/nltk-3.9.4.tar.gz", hash = "sha256:ed03bc098a40481310320808b2db712d95d13ca65b27372f8a403949c8b523d0", size = 2946864, upload-time = "2026-03-24T06:13:40.641Z" }+sdist = { url = "https://files.pythonhosted.org/packages/96/02/df4f105b28a7c16b0e41423bc09cf0f1b8a305df4ef0b10ca74a2e4c648c/nltk-3.10.0.tar.gz", hash = "sha256:4fbac1d98203cbcd1b5d94a2877fb822300072d80604a5e7fae49d2c5f84e8c1", size = 3089244, upload-time = "2026-07-08T02:39:13.562Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/9d/91/04e965f8e717ba0ab4bdca5c112deeab11c9e750d94c4d4602f050295d39/nltk-3.9.4-py3-none-any.whl", hash = "sha256:f2fa301c3a12718ce4a0e9305c5675299da5ad9e26068218b69d692fda84828f", size = 1552087, upload-time = "2026-03-24T06:13:38.47Z" },+ { url = "https://files.pythonhosted.org/packages/6e/89/a0b0f35e2820d6a99d75ea1c11977ee6d5c9e6658eceb45b0c7620881faa/nltk-3.10.0-py3-none-any.whl", hash = "sha256:54ff84d4916d3ef127e8953bee0023f6a6b320b75d634a19e06ef056d3d244bf", size = 1716144, upload-time = "2026-07-08T02:39:09.753Z" },][[package]]