Skip to content

fix(security): handle unfixable pygments CVE-2026-4539 in CI scans#359

Closed
JacobPEvans wants to merge 2 commits intomainfrom
fix/ignore-unfixable-cves
Closed

fix(security): handle unfixable pygments CVE-2026-4539 in CI scans#359
JacobPEvans wants to merge 2 commits intomainfrom
fix/ignore-unfixable-cves

Conversation

@JacobPEvans
Copy link
Copy Markdown
Owner

Summary

Dependencies

Test plan

Generated with Claude Code

Add .osv-scanner.toml to acknowledge GHSA-5239-wwwm-4pmq (pygments
ReDoS in AdlLexer) which has no upstream fix. Pass ignore-vulns to
pip-audit reusable workflow for the same CVE.

Depends on: JacobPEvans/.github#139

(claude)
Copilot AI review requested due to automatic review settings March 26, 2026 15:00
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces an .osv-scanner.toml configuration file to ignore a specific ReDoS vulnerability in the pygments library (GHSA-5239-wwwm-4pmq) for which no upstream fix is currently available. I have no feedback to provide.

Reference _python-security.yml from fix/pip-audit-ignore-vulns branch
which accepts the ignore-vulns input. Revert to @main after
JacobPEvans/.github#139 merges.

(claude)
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts repository security scanning configuration to accommodate an upstream-unfixed Pygments vulnerability so CI/dependency update PRs can proceed.

Changes:

  • Add an OSV Scanner ignore entry for GHSA-5239-wwwm-4pmq / CVE-2026-4539 via .osv-scanner.toml.
  • Pass ignore-vulns: 'CVE-2026-4539' into the reusable pip-audit/Python security workflow in CI.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.osv-scanner.toml Introduces an OSV Scanner ignore for the unfixed Pygments GHSA/CVE with a documented reason.
.github/workflows/ci-gate.yml Adds an ignore-vulns input so Python security scanning can ignore CVE-2026-4539 in CI.

Comment thread .osv-scanner.toml
Comment on lines +3 to +7
# Only list CVEs with NO fix version available. Remove entries once upstream releases a fix.
# See: https://google.github.io/osv-scanner/configuration/

[[IgnoredVulns]]
id = "GHSA-5239-wwwm-4pmq"
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

The header comment says to only list CVEs, but this entry is identified by a GHSA ID ("GHSA-5239-wwwm-4pmq"). Update the comment to reflect that the id field may be a GHSA/OSV identifier (or, if OSV Scanner supports it here, switch the id to the CVE so the guidance matches the config).

Copilot uses AI. Check for mistakes.
@JacobPEvans
Copy link
Copy Markdown
Owner Author

Superseded — combining CI fixes with dependabot PR #346 instead to avoid bootstrapping problem.

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