Skip to content

chore(deps): bump urllib3 to 2.8.0 and werkzeug to 3.1.9 - #45255

Merged
Antonio-RiveroMartnez merged 7 commits into
apache:masterfrom
ASolarers-Rodriguez:chore/bump-urllib3-werkzeug-security
Oct 14, 2026
Merged

Antonio-RiveroMartnez merged 7 commits into
apache:masterfrom
ASolarers-Rodriguez:chore/bump-urllib3-werkzeug-security

Conversation

@ASolarers-Rodriguez

@ASolarers-Rodriguez ASolarers-Rodriguez commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

SUMMARY

Security bump of two transitive/runtime dependencies to patched releases:

Package From To Advisories
urllib3 2.7.0 2.8.0 CVE-2026-97687 (high), CVE-2026-97689 (high), CVE-2026-97688 (medium)
werkzeug 3.1.6 3.1.9 CVE-2026-102598 (medium)

Changes:

  • requirements/base.txt / requirements/development.txt: pins updated; no other package moves and the # via annotations are unchanged.
  • requirements/base.in: the existing security floors for both packages are raised to the patched versions (same pattern as the CVE floors already in that file), so a future re-compile can't resolve back to a vulnerable release.

pyproject.toml is unchanged. Neither package is a direct dependency there: urllib3 comes in through requests (urllib3<3,>=1.26) and werkzeug through flask (werkzeug>=3.1.0), and both ranges already allow the new versions. The security floors for these two packages have always lived in requirements/base.in (see #37552 and #38447), so this PR keeps that pattern rather than adding new direct dependencies.

I checked the new pins against the repo tooling by running the non-Docker branch of scripts/uv-pip-compile.sh (RUNNING_IN_DOCKER=1, Python 3.11) for base.txt. It resolved to exactly these two versions with nothing else changing. I edited the lockfiles by hand to keep the diff limited to the pins; CI's check-python-deps job will confirm parity.

No API or behavior changes are expected. Both are patch/minor releases within the existing major versions.

TESTING INSTRUCTIONS

  • CI (check-python-deps, backend unit/integration tests) should pass unchanged.
  • Locally: pip install urllib3==2.8.0 werkzeug==3.1.9 in a Superset env, then superset run and smoke-test login, dashboards, and SQL Lab.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

🤖 Generated with Claude Code

Comment thread requirements/base.in Resolved
@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

CodeAnt PR Risk: Medium Risk

  • The PR needs attention before merging because the patched dependency floors are enforced only by the requirements files.
  • Package-metadata installs may still retain vulnerable urllib3 or Werkzeug versions; verify that supported installation paths use the pinned requirements.

Assessed commit: 4375bbf1db7b

@codecov

codecov Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.30%. Comparing base (ffee0a8) to head (4375bbf).

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #45255       +/-   ##
===========================================
+ Coverage   65.02%   83.30%   +18.28%     
===========================================
  Files        3039     3039               
  Lines      198382   198382               
  Branches    46213    46213               
===========================================
+ Hits       128992   165260    +36268     
+ Misses      66489    29898    -36591     
- Partials     2901     3224      +323     
Flag Coverage Δ
hive 34.98% <ø> (ø)
mysql 52.99% <ø> (+<0.01%) ⬆️
postgres 53.00% <ø> (+<0.01%) ⬆️
presto 36.74% <ø> (ø)
python 86.92% <ø> (+33.64%) ⬆️
sqlite 52.76% <ø> (ø)
unit 80.91% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Neither package was declared as a direct dependency, so a metadata-only
`pip install apache-superset` was bounded only by requests (urllib3<3,>=1.26)
and flask (werkzeug>=3.1.0) and could still accept vulnerable releases.
Declare both with the same floors as requirements/base.in. Superset imports
werkzeug directly in ~30 modules and urllib3.exceptions in two.

Lockfiles regenerated with scripts/uv-pip-compile.sh; the only change is the
added apache-superset source in the `# via` annotations.
@netlify

netlify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 3d2ba42
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6acf92290114cdb2037657fe
😎 Deploy Preview https://deploy-preview-45255--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread pyproject.toml Resolved
Reverts 6f2ed47. Per maintainer review, transitive dependencies are not
declared in pyproject.toml; the pinned requirements files do the patching,
and the security floors stay in requirements/base.in.

@Antonio-RiveroMartnez Antonio-RiveroMartnez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Antonio-RiveroMartnez
Antonio-RiveroMartnez merged commit 0ce9b6c into apache:master Oct 14, 2026
94 checks passed
villebro pushed a commit that referenced this pull request Oct 16, 2026
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 0ce9b6c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants