← Back to Pull requests

[Backport 7.84.x] Bump urllib3 to 2.8.0 #25514

Closed
unknown closed this pull request without merging on Oct 06, 2026 11:28 UTC
View on GitHub
unknown unknown commented on Oct 05, 2026 15:44 UTC
Author

What does this PR do?


Bumps urllib3 from 2.7.0 to 2.8.0 on the 7.84.x release branch, in agent_requirements.in, datadog_checks_base/pyproject.toml, and the five resolved lockfiles under .deps/resolved/.

This backports only the urllib3 change from #25284, not that whole PR. The lockfile lines match master exactly: same wheel URL, same SHA256. Master and 7.85.x already ship urllib3 2.8.0 with the same http.py.

Behavior change to review: urllib3 2.8.0 no longer applies the destination TLS settings to the handshake with an HTTPS proxy. That change is the fix for CVE-2026-97687. _SSLContextAdapter in datadog_checks_base/datadog_checks/base/utils/http.py passes a single ssl_context, so for a proxy URL with the https:// scheme:

  • tls_ca_cert no longer applies to verifying the proxy's certificate.

  • tls_verify: false no longer disables verification of the proxy.
  • Proxy TLS now uses urllib3's default context, which verifies against the system CAs. Plain http:// proxies (CONNECT tunnels), SOCKS proxies, and direct connections are unaffected. Master already behaves this way.

    Local check: the datadog_checks_base HTTP tests pass against 2.8.0 (215 passed). The Kerberos and SOCKS5 integration tests could not start their Docker environments locally, so they are left to CI.

    Motivation


    Fixes two High-severity urllib3 CVEs (due 2026-10-31) for the 7.84.x release line:
  • VULN-101010: CVE-2026-97687, HTTPS proxy TLS settings ignored or overridden.

  • VULN-101076: CVE-2026-97689, chunk-size line held in memory with no length limit.
  • QA is required because of the HTTPS-proxy behavior change above.

    Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)

  • Add qa/required if this PR needs QA validation, or qa/skip-qa if it does not. Exactly one of the two is required.

  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged
  • [VULN-101010]: https://datadoghq.atlassian.net/browse/VULN-101010?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 293 lines (+219 / -74) across 3 files Reviewer: steveny91 Review duration: 1183m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 293 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.340
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #25514"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.9% (MEDIUM) · Higher = larger blast radius
    39.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.8% · Safe to merge
    15.8%