Skip to content

fix: upgrade Pygments to 2.20.0#216

Merged
williajm merged 1 commit into
mainfrom
fix/pygments-security-update
Mar 31, 2026
Merged

fix: upgrade Pygments to 2.20.0#216
williajm merged 1 commit into
mainfrom
fix/pygments-security-update

Conversation

@williajm
Copy link
Copy Markdown
Owner

Summary

  • Upgrades Pygments from 2.19.2 to 2.20.0 in .github/requirements/bandit.txt
  • Resolves CVE-2026-4539 (Low)
  • Addresses Dependabot security alert

Test plan

  • Verified Pygments 2.20.0 with correct hash in bandit.txt
  • CI tests pass

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown

🧪 Test Results for 9f015d0

Summary

All tests passed!

Test Suite Status Passed Failed Skipped Duration
Unit Tests - Python 3.11 966 0 0 14s
Unit Tests - Python 3.14 966 0 0 15s
Unit Tests - Python 3.13 966 0 0 14s
Unit Tests - Python 3.12 966 0 0 14s
Integration 5 0 0 0s
E2E 29 0 0 40s

| Total | ✅ | 3898 | 0 | 0 | - |

📊 Coverage

Coverage reports are available in the workflow artifacts.

📦 Download Reports

📊 View Full Report |
📝 All Checks

@williajm williajm merged commit f0bf518 into main Mar 31, 2026
28 checks passed
@williajm williajm deleted the fix/pygments-security-update branch March 31, 2026 15:18
williajm added a commit that referenced this pull request May 20, 2026
…ow-unneeded ignore

The prior fix (commit f0bf518, PR #216) only upgraded pygments in
.github/requirements/bandit.txt — the project's own uv.lock was left
at 2.19.2, meaning the runtime dependency was still vulnerable and
the --ignore-vuln CVE-2026-4539 in pip-audit was masking it.

Bumps pygments in uv.lock to 2.20.0 (the published fix) and removes
the now-superfluous ignore and its TODO from the pip-audit step.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
williajm added a commit that referenced this pull request May 20, 2026
…026-45409) (#222)

* security: Bump authlib 1.7.0 → 1.7.2 and idna 3.11 → 3.15 for Dependabot alerts

- authlib: CVE-2026-44681 (moderate)
- idna: CVE-2026-45409 (moderate)

Updates uv.lock (resolved versions) and .clusterfuzzlite/requirements.txt
(hash-pinned). Lock regenerated with --exclude-newer 2026-05-17 per the
3-day supply-chain buffer documented in CLAUDE.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix: tighten authlib floor to >=1.7.1 and remove exclude-newer marker

CI failed on the prior commit because `uv lock` (with UV_EXCLUDE_NEWER=7d
in my local env) stamped `exclude-newer` into uv.lock's manifest. CI runs
`uv sync --locked` without that env var and refused the lockfile
("Resolving despite existing lockfile due to removal of global exclude
newer"). The 3-day buffer is incompatible with --locked installs (per
mcp_kafka/CLAUDE.md guidance, applies equally here) — it is only useful
during lock generation, not in CI.

Regenerated uv.lock with UV_EXCLUDE_NEWER unset so the resulting lockfile
matches what CI will produce. Result is byte-identical to the previous
commit minus the exclude-newer manifest line.

Also bumps the authlib floor in pyproject.toml from >=1.6.11 to >=1.7.1
to prevent regression on CVE-2026-44681.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* ci: ignore disputed pyjwt PYSEC-2025-183 in pip-audit

Adds --ignore-vuln PYSEC-2025-183 to the pip-audit step, matching the
existing pattern for pygments CVE-2026-4539. The advisory is disputed
by the supplier (key length is the consumer's responsibility, not the
library's), and pyjwt 2.12.1 is the latest published version — no fix
is available to upgrade to.

This is a pre-existing issue surfaced by the OSV database; it affects
main too and was blocking the authlib/idna PR from going green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* security: Upgrade pygments 2.19.2 → 2.20.0 (CVE-2026-4539) and drop now-unneeded ignore

The prior fix (commit f0bf518, PR #216) only upgraded pygments in
.github/requirements/bandit.txt — the project's own uv.lock was left
at 2.19.2, meaning the runtime dependency was still vulnerable and
the --ignore-vuln CVE-2026-4539 in pip-audit was masking it.

Bumps pygments in uv.lock to 2.20.0 (the published fix) and removes
the now-superfluous ignore and its TODO from the pip-audit step.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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