fix(agent-eval-canary): constrain idna>=3.15 for CVE-2026-45409 - #358
Open
kylehounslow wants to merge 1 commit into
Open
fix(agent-eval-canary): constrain idna>=3.15 for CVE-2026-45409#358kylehounslow wants to merge 1 commit into
kylehounslow wants to merge 1 commit into
Conversation
kylehounslow
requested review from
anirudha,
goyamegh,
joshuali925,
ps48 and
vamsimanohar
as code owners
July 27, 2026 20:33
idna is transitive via opensearch-genai-observability-sdk-py. Add a [tool.uv] constraint-dependencies floor and re-lock; idna 3.11 -> 3.18. CVE-2026-45409 (GHSA-65pc-fj4g-8rjx): idna.encode() DoS, fixed in 3.15. Signed-off-by: Kyle Hounslow <kylhouns@amazon.com>
kylehounslow
force-pushed
the
fix/agent-eval-canary-idna-dos
branch
from
July 27, 2026 21:46
6a28630 to
ec12e54
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Constrain
idna>=3.15indocker-compose/agent-eval-canaryand re-lock.idnaresolves 3.11 -> 3.18.Root cause
idnais a transitive dependency viaopensearch-genai-observability-sdk-py(SDK ->requests->idna). The pinned 3.11 is affected by CVE-2026-45409 (GHSA-65pc-fj4g-8rjx): specially crafted input toidna.encode()bypasses the CVE-2024-3651 length guard and causes excessive CPU consumption. Fixed in idna 3.15.Fix
Added a
[tool.uv] constraint-dependencies = ["idna>=3.15"]floor to the canary'spyproject.tomland regenerateduv.lock. A uv constraint floors the resolved transitive version without addingidnaas a direct dependency, so it drops out once the SDK raises its own floor (tracked separately). The lock diff is limited to the constraint entry and the idna package block.Validation
The canary module imports cleanly against the new lock (SDK, OTel exporters, idna 3.18). The poll loop needs a live OpenSearch backend and was not exercised here.
Closes #241. Part of #357.