← Back to Pull requests

Bump pyjwt to 2.15.1 and oauthlib to 4.0.0 #25706

Closed
unknown closed this pull request without merging on Oct 22, 2026 14:39 UTC
View on GitHub
unknown unknown commented on Oct 20, 2026 19:30 UTC
Author

What does this PR do?

Bumps two pins in agent_requirements.in and datadog_checks_base/pyproject.toml to fix these CVEs:

| Jira | CVE | Package | Change |
|---|---|---|---|
| VULN-101040 | CVE-2026-101918 | pyjwt | 2.14.0 → 2.15.1 |
| VULN-101268 | CVE-2026-102275 | pyjwt | 2.14.0 → 2.15.1 |
| VULN-100978 | CVE-2026-49264 | oauthlib | 3.3.1 → 4.0.0 |
| VULN-100955 | CVE-2026-49265 | oauthlib | 3.3.1 → 4.0.0 |

The .deps/resolved/*.txt lockfiles are regenerated by the resolve-build-deps workflow.

Compatibility:

  • oauthlib 4.0.0 is a major release, but its breaking changes are all on the OAuth provider side (JSONP removed from the revocation endpoint, grant validation order). The Agent only uses the client side: BackendApplicationClient through requests_oauthlib.OAuth2Session in datadog_checks_base/datadog_checks/base/utils/http.py. requests-oauthlib 2.0.0 requires oauthlib>=3.0.0 with no upper bound.

  • The pyjwt 2.15.x changes do not touch the one call site, jwt.encode(..., algorithm='RS256') in http.py.
  • Replaces the bot PRs #25501 and #25683, which each bump pyjwt in only one of the two files and fail validation.

    Motivation

    Clears four open VULN tickets for the agent-integrations queue.

    Checklist before requesting review

  • I self-reviewed the full diff, and this description matches the final change

  • Tests cover the change, or this description explains why none are needed

  • Automated review comments, including Codex review, were addressed or answered

  • I, the human author, understand this change, can explain it to reviewers, and believe it meets the repository standards
  • [VULN-101040]: https://datadoghq.atlassian.net/browse/VULN-101040?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
    [VULN-101268]: https://datadoghq.atlassian.net/browse/VULN-101268?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
    [VULN-100978]: https://datadoghq.atlassian.net/browse/VULN-100978?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
    [VULN-100955]: https://datadoghq.atlassian.net/browse/VULN-100955?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 330 lines (+247 / -83) across 4 files Reviewer: steveny91 Review duration: 2589m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 330 lines diff across 4 files
    0.65
    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.347
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.065
    Real PR Conversation Timeline
    1 comments
    "Review active on #25706"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 65.3% (HIGH) · Higher = larger blast radius
    65.3%
    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: 25.8% · Safe to merge
    25.8%