Skip to content

chore: add lower-bound pins for pygments and cryptography#76

Merged
lipikaramaswamy merged 2 commits into
mainfrom
lipikaramaswamy/chore/bump-security-deps
Mar 30, 2026
Merged

chore: add lower-bound pins for pygments and cryptography#76
lipikaramaswamy merged 2 commits into
mainfrom
lipikaramaswamy/chore/bump-security-deps

Conversation

@lipikaramaswamy
Copy link
Copy Markdown
Collaborator

@lipikaramaswamy lipikaramaswamy commented Mar 30, 2026

Summary

Follow-up to #75. The previous PR bumped versions in uv.lock, but that only protects uv sync installs. This adds explicit lower bounds in pyproject.toml so that pip install anonymizer also resolves to the patched versions:

  • pygments>=2.20.0 -- CVE-2026-4539 (ReDoS in AdlLexer)
  • cryptography>=46.0.6 -- CVE-2026-34073 (X.509 wildcard SAN name constraint bypass)

Test plan

  • uv lock resolves cleanly
  • uv sync --all-extras installs cleanly
  • CI passes

Upgrade transitive deps to remediate:
- CVE-2026-4539: pygments 2.19.2 -> 2.20.0 (ReDoS in AdlLexer)
- CVE-2026-34073: cryptography 46.0.5 -> 46.0.6 (X.509 wildcard name constraint bypass)

Made-with: Cursor
Explicit lower bounds in pyproject.toml ensure pip-installed wheels
also get the patched versions, not just uv-locked dev installs.

Made-with: Cursor
@lipikaramaswamy lipikaramaswamy requested a review from a team as a code owner March 30, 2026 20:48
@lipikaramaswamy lipikaramaswamy merged commit 5a98cf2 into main Mar 30, 2026
8 checks passed
@lipikaramaswamy lipikaramaswamy deleted the lipikaramaswamy/chore/bump-security-deps branch March 30, 2026 23:09
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.

2 participants