Vulnerable packages: high/critical advisories shown as warnings on line 1, no severity mapping and no update fix

Aperta
#578 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, fsharp, typescript
Ambito
devtools, security

Direzione di ricerca

Start with docs/specs/PACKAGE-MAINTENANCE-SPEC.md sections [PKG-VULN], [CONFIG-RESOLUTION-LIVE], and [FIXALL-RULES-TABLE], then read docs/plans/PACKAGE-VULNERABILITY-PLAN.md. The issue calls for an F# diagnostic across package references and shared props, configurable severity and build enforcement, bounded update fixes, and fix-all support; done means those behaviors work together, including transitive packages and major-version confirmation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Bug

A vulnerable NuGet package only shows through the build task's $msCompile problem matcher, as a yellow warning on line 1 of the project file, with no fix:

MyDockerProject.csproj 1:1  NU1902  Package 'MessagePack' 3.1.7 has a known moderate severity vulnerability, GHSA-qhrr-8q5h-9q3h   (severity: Warning)

NuGet emits every advisory level (NU1901 low … NU1904 critical) as a warning, so high/critical advisories are never red.

Expected
  1. SharpLsp-owned diagnostic on the <PackageReference>/<PackageVersion> element (incl. CPM / shared props, transitive path shown) — F# first.
  2. Configurable severity mapping, high/critical red by default:
    [nuget.vulnerabilities]
    critical = "error"
    high = "error"
    moderate = "warning"
    low = "information"
    enforce_in_build = false   # true => WarningsAsErrors for error-mapped codes
    
  3. Auto fix: Update MessagePack to <lowest version outside every advisory range> — bounded update, major-crossing requires confirmation, transitive packages pinned; fix-all for project/solution and fix and enforce (ties into #577).
Spec / plan
  • Spec: docs/specs/PACKAGE-MAINTENANCE-SPEC.md [PKG-VULN] (+ [CONFIG-RESOLUTION-LIVE], [FIXALL-RULES-TABLE] row)
  • Plan: docs/plans/PACKAGE-VULNERABILITY-PLAN.md
Lingua principale
TypeScript
Stelle
185
Fork
12
Merge medio
7h 33m
PR unite (30g)
63

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Nimblesite/SharpLsp

Tutte le issue di Nimblesite/SharpLsp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.