[Snyk] Security upgrade pygments from 2.17.2 to 2.20.0#66
Open
[Snyk] Security upgrade pygments from 2.17.2 to 2.20.0#66
Conversation
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-PYGMENTS-15746419
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Pygments 2.20.0 incompatible with supported Python 3.7/3.8
- I made the docs requirement conditional so Python 3.9+ uses
pygments>=2.20.0while Python 3.7/3.8 installspygments>=2.17.2,<2.20.0, preventing install failures in supported environments.
- I made the docs requirement conditional so Python 3.9+ uses
Or push these changes by commenting:
@cursor push 16e1b5eec3
Preview (16e1b5eec3)
diff --git a/requirements/docs.txt b/requirements/docs.txt
--- a/requirements/docs.txt
+++ b/requirements/docs.txt
@@ -7,4 +7,5 @@
-r deps/mock.txt
-r extras/auth.txt
-r extras/sphinxautobuild.txt
-pygments>=2.20.0 # not directly required, pinned by Snyk to avoid a vulnerability
+pygments>=2.20.0; python_version >= "3.9" # not directly required, pinned by Snyk to avoid a vulnerability
+pygments>=2.17.2,<2.20.0; python_version < "3.9" # Python 3.7/3.8 compatibilityThis Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
| -r deps/mock.txt | ||
| -r extras/auth.txt | ||
| -r extras/sphinxautobuild.txt | ||
| pygments>=2.20.0 # not directly required, pinned by Snyk to avoid a vulnerability |
There was a problem hiding this comment.
Pygments 2.20.0 incompatible with supported Python 3.7/3.8
High Severity
The pygments>=2.20.0 pin is incompatible with this project's supported Python versions. Pygments 2.20.0 requires Python >=3.9, but this project declares python_requires=">=3.7" in setup.py and its tox.ini test matrix includes Python 3.7 and 3.8, both of which pull in requirements/docs.txt. This will cause installation failures in those environments.
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.



Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
requirements/docs.txtImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)
Note
Low Risk
Low risk dependency constraint change limited to documentation dependencies; main risk is potential compatibility issues in the docs build environment.
Overview
Updates
requirements/docs.txtto explicitly requirepygments>=2.20.0(Snyk security pin) to avoid a known vulnerability during documentation builds.Written by Cursor Bugbot for commit 934c9ee. This will update automatically on new commits. Configure here.