Skip to content

fix(anonymizer): bump cryptography to >=50.0.0 for GHSA-g6cj-pr64-35w5 - #2231

Open
Aryan-Pardeshi wants to merge 1 commit into
data-privacy-stack:mainfrom
Aryan-Pardeshi:fix/2229-cryptography-50
Open

fix(anonymizer): bump cryptography to >=50.0.0 for GHSA-g6cj-pr64-35w5#2231
Aryan-Pardeshi wants to merge 1 commit into
data-privacy-stack:mainfrom
Aryan-Pardeshi:fix/2229-cryptography-50

Conversation

@Aryan-Pardeshi

Copy link
Copy Markdown

Change Description

presidio-anonymizer declares cryptography (>=48.0.1,<49.0.0). GHSA-g6cj-pr64-35w5 / CVE-2026-69247 affects cryptography >=44.0.0,<50.0.0 and is first patched in 50.0.0, so the <49.0.0 ceiling and the patched release are mutually exclusive — downstream projects cannot take the fix without dropping presidio-anonymizer, and Dependabot resolution fails outright rather than opening a fix PR.

Bumps the constraint to cryptography (>=50.0.0,<51.0.0), same shape as #2143#2144 which moved the floor for GHSA-537c-gmf6-5ccf.

Verified locally with cryptography==50.0.0 installed: presidio-anonymizer/tests passes 316 passed, 15 skipped, including the AES cypher suite that exercises the cryptography API surface this package actually uses.

Issue reference

Fixes #2229

Checklist

  • I have reviewed the contribution guidelines
  • I agree to follow this project's Code of Conduct
  • I confirm that I have the right to submit this contribution and that it does not knowingly contain proprietary or confidential code.
  • My code includes unit tests — dependency constraint change; covered by the existing anonymizer suite run against 50.0.0
  • All unit tests and lint checks pass locally
  • My PR contains documentation updates / additions if required — CHANGELOG entry added

GHSA-g6cj-pr64-35w5 (CVE-2026-69247) affects cryptography >=44.0.0,<50.0.0
and is first patched in 50.0.0. The <49.0.0 ceiling made presidio-anonymizer
and the patched release mutually exclusive, so downstream projects could not
take the fix without dropping presidio-anonymizer.

Same shape as data-privacy-stack#2143, resolved by data-privacy-stack#2144.

Fixes: data-privacy-stack#2229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

presidio-anonymizer 2.2.364: cryptography<49.0.0 upper bound blocks the GHSA-g6cj-pr64-35w5 fix

1 participant