Skip to content

[Snyk] Security upgrade pygments from 2.17.2 to 2.20.0#16

Open
noom-snyk-bot wants to merge 1 commit into
masterfrom
snyk-fix-8b65e26476711abb092970bdce0a63ee
Open

[Snyk] Security upgrade pygments from 2.17.2 to 2.20.0#16
noom-snyk-bot wants to merge 1 commit into
masterfrom
snyk-fix-8b65e26476711abb092970bdce0a63ee

Conversation

@noom-snyk-bot
Copy link
Copy Markdown

@noom-snyk-bot noom-snyk-bot commented Mar 31, 2026

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • python/docs/requirements.txt
⚠️ Warning
Sphinx 2.3.1 requires Pygments, which is not installed.

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

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: only adjusts documentation build dependencies by adding a minimum pygments version to remediate a vulnerability.

Overview
Updates python/docs/requirements.txt to explicitly require pygments>=2.20.0 (previously only indirectly needed via Sphinx) to satisfy Snyk’s security advisory and ensure doc builds pull a non-vulnerable Pygments version.

Written by Cursor Bugbot for commit 4a3c849. This will update automatically on new commits. Configure here.

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-PYGMENTS-15746419
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

sphinx==2.3.1
sphinx_rtd_theme==0.4.3
sphinxcontrib-napoleon==0.7
pygments>=2.20.0 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pygments 2.20.0 incompatible with project's Python 3.7 environment

Medium Severity

pygments>=2.20.0 requires Python ≥3.9, but the sibling environment.yml specifies python=3.7.6 for the docs build environment, and setup.py declares python_requires='>=3.7'. Installing this requirement under the project's documented Python 3.7 docs environment will fail, breaking documentation builds.

Fix in Cursor Fix in Web

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