fix(agentex): bump ddtrace to >=4.8.2 (CVE-2026-50271)#364
Merged
Conversation
Raise the ddtrace floor from >=3.13.0 (resolved 3.15.0) to >=4.8.2 to clear CVE-2026-50271 (HIGH): improper W3C baggage header parsing without item-count or byte-size limits -> uncontrolled resource consumption (DoS). Fixed upstream in ddtrace 4.8.2. uv re-resolves the workspace lock to ddtrace 4.11.0. GFDVR-19959
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
scale-ballen
enabled auto-merge (squash)
July 16, 2026 12:43
declan-scale
approved these changes
Jul 16, 2026
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.
Summary
Bumps ddtrace
3.15.0 → 4.11.0(constraint>=3.13.0→>=4.8.2) in theagentex-backendpackage to remediate CVE-2026-50271.ddtrace(python-pkg, direct dependency ofagentex-backend)>=3.13.0, resolved to3.15.0inuv.lock>=4.8.2, resolved to4.11.0inuv.lockagentex/pyproject.toml; lockfile: workspace-rootuv.lockCVE
AV:N/AC:L/PR:N/UI:N/A:H)Floor set to the lowest fixed release (
4.8.2); the uv workspace resolver picks the latest compatible 4.x (4.11.0).This crosses a major boundary, so the consuming code was checked against the new API. First-party usage is limited to
agentex/src/utils/logging.py(ddtrace-runentrypoint in the Dockerfiles). All APIs used are stable across v4 and were exercised on an installedddtrace==4.11.0:from ddtrace.trace import tracer— imports OKddtrace.config.service/.env/.version— presenttracer.get_log_correlation_context()— returns the expecteddd.trace_id,dd.span_id,dd.service,dd.env,dd.versionkeys thatlogging.pyreadsddtrace-runconsole script — presentNo first-party code change required.
Validation
uv lock --upgrade-package ddtrace(viauv@0.8.22to preserverevision = 3) — lock diff limited to the ddtrace specifier + package block; no other packages added/removed/changed.uv lock --locked— passes (CI immutability gate).3.15.0fully removed fromuv.lock; Linux cp312 wheels for4.11.0present (runtime target).ddtrace==4.11.0— passes (see above).Notes
This is the
public/submodule source for thegolden/agenteximage (scaleapi/agentex→dockerfiles-chainguard/Dockerfile.agentexbuilds frompublic/uv.lock+public/agentex/). After this merges, theagentexsubmodule pointer bump + image rebuild/rescan will clear the Trivy finding.Resolves GFDVR-19959 (child GFDVR-19960, CVE-2026-50271).
🤖 Generated with Claude Code
Greptile Summary
This PR remediates CVE-2026-50271 (HIGH, CVSS 7.5 — unbounded W3C baggage header parsing enabling remote DoS) by bumping the
ddtracefloor from>=3.13.0to>=4.8.2, resolving to4.11.0in the workspace lockfile.agentex/pyproject.toml: Constraint updated to>=4.8.2with a clear inline comment citing the CVE.uv.lock:ddtraceblock replaced with4.11.0wheels/hashes; no other packages added, removed, or changed.protobufwas dropped as a ddtrace transitive dep in v4 but remains in the lockfile via other packages. All first-party usages (from ddtrace.trace import tracer,ddtrace.config.*,ddtrace-runentrypoint in the Dockerfile) are API-stable across the major version boundary.Confidence Score: 5/5
Safe to merge — a targeted lockfile-scoped version bump with no first-party code changes, well-validated API compatibility, and no other packages disturbed.
The change touches only the ddtrace version constraint and its lockfile block. All first-party usages (ddtrace.trace.tracer, ddtrace.config.*, ddtrace-run) were smoke-tested against the new version and are API-stable across the major boundary. Production Linux wheels are present; the only caveat is the macOS minimum wheel version jump (12→14) that could affect dev environments on older macOS — not a production concern.
No files require special attention. uv.lock carries the macOS wheel version change worth noting for developers, but it has no production impact.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["agentex/pyproject.toml\nddtrace >=4.8.2"] --> B["uv resolver"] B --> C["uv.lock\nddtrace 4.11.0"] C --> D["Linux cp312 wheels\n(manylinux2014 + musllinux)"] C --> E["macOS wheels\n(macosx_14_0 arm64/x86_64)"] D --> F["Docker image\nddtrace-run entrypoint"] F --> G["agentex/src/utils/logging.py\nfrom ddtrace.trace import tracer\nddtrace.config.service/env/version"] style A fill:#f9f,stroke:#333 style C fill:#bbf,stroke:#333 style F fill:#bfb,stroke:#333%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD A["agentex/pyproject.toml\nddtrace >=4.8.2"] --> B["uv resolver"] B --> C["uv.lock\nddtrace 4.11.0"] C --> D["Linux cp312 wheels\n(manylinux2014 + musllinux)"] C --> E["macOS wheels\n(macosx_14_0 arm64/x86_64)"] D --> F["Docker image\nddtrace-run entrypoint"] F --> G["agentex/src/utils/logging.py\nfrom ddtrace.trace import tracer\nddtrace.config.service/env/version"] style A fill:#f9f,stroke:#333 style C fill:#bbf,stroke:#333 style F fill:#bfb,stroke:#333Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "fix(agentex): bump ddtrace to >=4.8.2 (C..." | Re-trigger Greptile