Pin pygments>=2.20.0 to fix CVE-2026-4539 (ReDoS)#37
Closed
tylerlam-warp wants to merge 1 commit into
Closed
Conversation
pygments is a dev/test-only transitive dependency (via pytest + rich). Versions <2.20.0 have a ReDoS in the archetype AdlLexer GUID regex (CVE-2026-4539 / GHSA-5239-wwwm-4pmq). Add a uv constraint pin alongside the existing idna pin and re-lock. Co-Authored-By: Oz <oz-agent@warp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pins
pygments>=2.20.0to resolve CVE-2026-4539 (GHSA-5239-wwwm-4pmq), a ReDoS (catastrophic backtracking) in the archetypeAdlLexerGUID regex affecting all versions< 2.20.0. The lockfile previously resolved2.19.2.pygmentsis a dev/test-only transitive dependency (viapytest+rich); it is not a runtime dependency of the publishedoz-agent-sdk, so end users are unaffected. This clears the scanner alert for local/CI environments.Changes
pygments>=2.20.0to[tool.uv] constraint-dependencies(alongside the existingidnapin), consolidated into a concise comment.uv.locknow resolvespygmentsto2.20.0.requirements-dev.lockviauv export -o requirements-dev.lock --no-hashes.Notes
Conversation: https://staging.warp.dev/conversation/410ce270-787a-4290-81f8-376499efc97b
Co-Authored-By: Oz oz-agent@warp.dev