Skip to content

Update PyJWT dependency to patched 2.15.1 - #16

Merged
cesaints merged 1 commit into
mainfrom
cx/security-pyjwt-2151
Oct 14, 2026
Merged

cesaints merged 1 commit into
mainfrom
cx/security-pyjwt-2151

Conversation

@cesaints

@cesaints cesaints commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Trivy reports the locked PyJWT 2.13.0 as affected by CVE-2026-102268. Raise the minimum version to 2.15.1 and regenerate only its lock entry and the matching project requirement metadata. Authentication source, extras, and every other locked package remain unchanged.

Upstream confirms that 2.14.0 fixes the critical advisory; 2.15.1 also includes subsequent security fixes and a Base64URL padding compatibility correction. The existing verifier uses one configured algorithm per call, default HS256, and requires signature verification. The critical advisory's mixed-algorithm/public-key preconditions were not found in the reviewed code. This is a vulnerable-dependency update, not evidence of exploitation or a production configuration assessment.

Validation on Python 3.12:

  • Frozen dependency sync passed; only PyJWT and the editable project's requirement metadata were refreshed.
  • Semantic lock comparison confirmed no other package changes; wheel and source hashes match the official PyPI release.
  • Four existing JWT tests and all 88 unit tests passed; coverage remains 86.87%.
  • Ruff lint/format, Mypy (94 files), independent scoped review, and git diff --check passed.

PR CI run 38653153325 passed all quality gates and SonarCloud on head ef5bedf64a5a30152213454d913aab744a287edf; the Docker job was skipped as configured for pull requests.

Post-merge verification: main push run 38653299995 passed all six jobs on a7a55c2b85aea22225efb3a000084a47d90567f3, including image build/publication and the Trivy scan. Its logs confirm PyJWT 2.15.1 installed, zero findings for that package, and no occurrence of CVE-2026-102268. Published image digest: sha256:7e1f4d229fb072bcadf17092fcee7a8cab795ef737440f165e09904c2953bf48.

The final report still contains 46 HIGH findings (44 OS and 2 Python) and zero CRITICAL findings. These remaining findings are outside this update and require their own triage. The workflow retains its existing report-only scan configuration; passing CI does not establish an image free of vulnerabilities or production readiness. No application or production database was deployed or tested.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T23:20:18.405830Z ef5bedf PR opened
🔒 Security Review ✅ Completed 2026-10-14T23:21:35.821440Z ef5bedf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cesaints
cesaints merged commit a7a55c2 into main Oct 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant