Skip to content

chore(deps): bump semgrep and drop osv-scanner ignores #2

Backlog

Description

@dan-petty

Problem

python/semgrep.txt locks semgrep 1.179.0. osv-scanner finds 6 advisories in two of its dependencies:

Advisory Package Locked Fixed
GHSA-5h93-6whr-6q8j mcp 1.29.0 1.30.0
GHSA-84m7-p3x7-pcfv mcp 1.29.0 1.30.0
GHSA-rwrf-2pqf-9j8j mcp 1.29.0 1.30.0
GHSA-w4fh-qvv9-3v23 mcp 1.29.0 1.30.0
GHSA-mf5v-w3w3-f6cg opentelemetry-api 1.37.0 1.45.2
GHSA-xcq7-p3pf-p88h opentelemetry-api 1.37.0 1.45.1

No released semgrep holds the fixes. Read on 2026-11-19 from PyPI: the newest semgrep is 1.186.0 (2026-11-18), and it requires mcp==1.29.0 and opentelemetry-api~=1.37.0. So uv finds no lock with the fixes.

Change

python/osv-scanner.toml ignores the 6 advisories until 2026-11-22, by the rule "A Finding with No Fix" of devops-cli SECURITY.md (3 days, renewed at most to 14 days in all). Trivy rates the 6 findings MEDIUM, so the HIGH/CRITICAL gate of the image does not see them.

When a semgrep release takes mcp>=1.30.0 and opentelemetry-api>=1.45.2: update python/semgrep.in, compile python/semgrep.txt again, and delete the ignores and the two hold rules of .github/renovate.json.

Done when

python/osv-scanner.toml holds no ignore for semgrep, and osv-scanner passes on python/semgrep.txt.

Alternatives check of 2026-11-19: not-applicable.
Class: chore, no search.
Tool: none found.

Proposed design

Problem statement

python/semgrep.txt locks semgrep 1.186.0, which requires mcp 1.29.0, opentelemetry-api 1.37.0 and wcmatch 8.5.2. osv-scanner reports seven advisories in mcp and opentelemetry-api and one in wcmatch (GHSA-53pm-wgxf-c6qf). No released semgrep requires the fixed versions, so the lock cannot drop the dated ignores. A semgrep release with mcp>=1.30.0, opentelemetry-api>=1.45.2 and wcmatch>=11.2 unblocks the bump, the lock recompile, and the removal of the ignores and Renovate hold rules.

Acceptance criteria

Requirement: Semgrep pin requires fixed dependencies

python/semgrep.in SHALL pin a semgrep release whose metadata requires mcp>=1.30.0, opentelemetry-api>=1.45.2 and wcmatch>=11.2.

Scenario: Lock compiles fixed versions

  • WHEN uv pip compile --universal --generate-hashes --python-version=3.14 semgrep.in --output-file=semgrep.txt runs in python/
  • THEN the command exits 0 and python/semgrep.txt locks mcp 1.30.0 or later, opentelemetry-api 1.45.2 or later and wcmatch 11.2 or later

Requirement: Semgrep lock carries fixed dependencies

python/semgrep.txt SHALL lock mcp 1.30.0 or later, opentelemetry-api 1.45.2 or later and wcmatch 11.2 or later.

Scenario: osv-scanner passes on the semgrep lock

  • WHEN the osv-scanner check of .github/workflows/image.yml runs on python/semgrep.txt
  • THEN the check exits 0 and reports no finding for mcp, opentelemetry-api or wcmatch

Requirement: Dated semgrep ignores removed

python/osv-scanner.toml MUST NOT hold an ignore for semgrep, mcp, opentelemetry-api or wcmatch.

Scenario: osv-scanner passes with no semgrep ignore

  • WHEN the osv-scanner check of .github/workflows/image.yml runs on python/semgrep.txt after the semgrep ignores are deleted from python/osv-scanner.toml
  • THEN the check exits 0 and reports no finding for mcp, opentelemetry-api or wcmatch

Requirement: Renovate hold rules removed

.github/renovate.json MUST NOT hold a hold rule for semgrep, mcp or opentelemetry-api.

Scenario: Renovate config validates

  • WHEN npx --yes renovate-config-validator .github/renovate.json runs after the semgrep hold rules are deleted
  • THEN the command exits 0 and reports no error for .github/renovate.json

Existing Tool Considered

The alternatives check of 2026-11-19 in the issue body records not-applicable (class chore, no search; Tool: none found). The item concerns semgrep, the open, maintained scanner. semgrep 1.186.0 lacks a release that requires mcp>=1.30.0, opentelemetry-api>=1.45.2 and wcmatch>=11.2; its develop branch still pins mcp==1.29.0, opentelemetry-api~=1.37.0 and wcmatch~=8.3 (owner reply of 2026-11-21). The project builds no code; the dated osv-scanner ignores cover the gap.

Key questions

  • Which versions of semgrep, mcp, opentelemetry-api and wcmatch does the lock hold?: python/semgrep.in pins semgrep 1.186.0. python/semgrep.txt locks semgrep 1.186.0, mcp 1.29.0, opentelemetry-api 1.37.0 and wcmatch 8.5.2. The issue body's semgrep 1.179.0 is stale. [sources: python/semgrep.in, python/semgrep.txt]
  • Does a released semgrep require mcp>=1.30.0, opentelemetry-api>=1.45.2 and wcmatch>=11.2?: No. semgrep 1.186.0, the newest release of 2026-11-18, and the develop branch require mcp==1.29.0, opentelemetry-api~=1.37.0 and wcmatch~=8.3. Upstream PR semgrep/semgrep#12057 is open and sets mcp==1.30.0 and opentelemetry-api~=1.45.1; no semgrep issue covers wcmatch. [sources: python/semgrep.txt]
  • How should the project handle the advisories until semgrep carries the fixes?: Keep the dated ignores in python/osv-scanner.toml under the 'A Finding with No Fix' rule: a reason, a tracking issue and an end date of 3 days, renewed at most to 14 days in all. The wcmatch ignore ends 2026-11-24 and the mcp and opentelemetry-api ignores end 2026-11-25. After the 14-day limit ends 2026-12-03, the owner decides. Do not override semgrep's pins or vendor mcp. (best practice) [sources: python/osv-scanner.toml]
    • Chosen: Dated osv-scanner ignore. The project rule permits a 3-day ignore renewed to 14 days in all; the osv-scanner lock-file gate would fail without it.
    • Rejected: uv override-dependencies. semgrep pins mcp==1.29.0 exactly; an override runs semgrep against versions it does not declare and can break it.
    • Rejected: Vendor or patch mcp. This adds code that the project must keep and fix, with no upstream support.
  • What triggers the semgrep bump and the removal of the ignores and Renovate hold rules?: A semgrep release whose metadata requires mcp>=1.30.0, opentelemetry-api>=1.45.2 and wcmatch>=11.2. The current semgrep 1.186.0 pins mcp==1.29.0, opentelemetry-api~=1.37.0 and wcmatch~=8.3. The dated ignores expire on 2026-11-24 and 2026-11-25; renew them within the 14-day limit if the release is later. (best practice) [sources: python/semgrep.in, python/osv-scanner.toml, .github/renovate.json]
    • Chosen: Wait for an upstream release. The lock cannot hold the fixed versions while semgrep pins the vulnerable ones.
    • Rejected: Drop the ignores now. osv-scanner would fail on python/semgrep.txt and the lock-file gate would block.

Fit

Fits in one pull request.

Suspected block

A semgrep release that requires mcp>=1.30.0, opentelemetry-api>=1.45.2 and wcmatch>=11.2. The dated ignores end 2026-11-24 (wcmatch) and 2026-11-25 (mcp and opentelemetry-api); the 14-day limit ends 2026-12-03, and then the owner decides.

Dependencies

None.

Activity

  1. added
    type/chore
    scope/deps
    status/new
    value/medium
    effort/low
    on Nov 19, 2026
  2. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
  3. added
    priority/p0-critical
    on Nov 19, 2026
  4. added
    owner/agent
    on Nov 19, 2026
  5. changed the title [-]chore(deps): bump semgrep and drop the osv-scanner ignores of mcp and opentelemetry-api[/-] [+]chore(deps): bump semgrep and drop osv-scanner ignores[/+] on Nov 19, 2026
  6. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service

    The job shortened the title of this item. The summary had 74 characters, and the limit is 60. The type and the scope stay.

    • Before: chore(deps): bump semgrep and drop the osv-scanner ignores of mcp and opentelemetry-api
    • After: chore(deps): bump semgrep and drop osv-scanner ignores
    • Source of the summary: the background model
  7. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  8. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  9. added a commit that references this issue on Nov 20, 2026
  10. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  11. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service

    Owner question: See Suspected block and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  12. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    Premise check of 2026-11-20: this item stays blocked. Nothing to build yet.

    The dated ignores in python/osv-scanner.toml expire 2026-11-22. On that date, check again and renew them for 3 days with new proof, by the rule "A Finding with No Fix". The 14-day limit ends 2026-12-03; after that, the owner decides.

  13. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    2026-11-21: one more advisory, and a renewal. PR #31.

    Advisory Package Locked Fixed Ignore until
    GHSA-53pm-wgxf-c6qf (published 2026-11-20) wcmatch 8.5.2 11.2 2026-11-24
    the 7 advisories of mcp and opentelemetry-api above 2026-11-25 (renewed)

    Proof (read 2026-11-21): semgrep 1.186.0 is still the newest release. It and the develop branch (cli/pyproject.toml:66-67,84) require mcp==1.29.0, opentelemetry-api~=1.37.0 and wcmatch~=8.3. wcmatch 8.5.2 is the newest 8.x release. semgrep/semgrep#12057 (mcp and OTel) is still open; no semgrep issue covers wcmatch.

    The 14-day limit of the first ignores ends 2026-12-03. After that, the owner decides.

  14. added a commit that references this issue on Nov 21, 2026
  15. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  16. removed
    status/new
    owner/agent
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p0-criticalscope/depstype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions