Skip to content

Upgrade Pygments to >=2.20.0 to fix ReDoS vulnerability#1791

Merged
MaxHalford merged 1 commit intomainfrom
fix/upgrade-pygments-2.20
Apr 3, 2026
Merged

Upgrade Pygments to >=2.20.0 to fix ReDoS vulnerability#1791
MaxHalford merged 1 commit intomainfrom
fix/upgrade-pygments-2.20

Conversation

@MaxHalford
Copy link
Copy Markdown
Member

Summary

  • Removes the <2.20 upper pin on Pygments in pyproject.toml, replacing it with >=2.20
  • Updates uv.lock from Pygments 2.19.2 to 2.20.0
  • Fixes Dependabot alert AUC metric #84 (CVE-2026-4539 — ReDoS via inefficient regex in AdlLexer)

Test plan

  • Verified make doc builds successfully with no errors or warnings
  • CI passes

🤖 Generated with Claude Code

Remove the <2.20 upper pin on Pygments — the docs build works fine with 2.20.0.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MaxHalford MaxHalford requested a review from smastelini as a code owner April 3, 2026 09:40
@MaxHalford
Copy link
Copy Markdown
Member Author

Alright let's see if this renders the docs correctly

@MaxHalford MaxHalford merged commit a598c85 into main Apr 3, 2026
1 check passed
@MaxHalford MaxHalford deleted the fix/upgrade-pygments-2.20 branch April 3, 2026 09:42
@MaxHalford MaxHalford restored the fix/upgrade-pygments-2.20 branch April 3, 2026 11:50
@MaxHalford
Copy link
Copy Markdown
Member Author

Nope, doesn't work. Let's revert and wait for a new bump.

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