Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

API returns wrong last_affected for twisted package and CVE-2026-106454

Aperta
#6,180 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, python

Direzione di ricerca

Start by tracing the /v1/query API handling for PyPI packages and how it reads the affected ranges for CVE-2026-106454. Compare the stored vulnerability data with the NVD range cited in the issue, which says versions through 25.5.0 are affected. Done means querying twisted 26.4.0 no longer reports this vulnerability, while versions at or below 25.5.0 remain affected.

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

Descrizione

Describe the bug
If one queries the API for the package "twisted" version 26.4.0 (which is the latest version) it reports that it is affected by vulnerability CVE-2026-106454. However the documentation of the of the vulnerability https://nvd.nist.gov/vuln/detail/CVE-2026-106454 clearly states that only versions <= 25.5.0 are affected

Image

To Reproduce

 curl -X POST -d \
                '{"version": "26.4.0", "package": {"name": "twisted", "ecosystem": "PyPI"}}' \
                "https://api.osv.dev/v1/query"

This returns:

...
{ ...
"aliases": [
     "CVE-2026-106454",
     "PYSEC-2026-4304"
],
"affected": [
                {
                    "package": {
                        "name": "twisted",
                        "ecosystem": "PyPI",
                        "purl": "pkg:pypi/twisted"
                    },
                    "ranges": [
                        {
                            "type": "ECOSYSTEM",
                            "events": [
                                {
                                    "introduced": "0"
                                },
                                {
                                    "last_affected": "26.4.0"
                                }
                            ]
                        }
                    ],
                   "versions": [
                                ...
                               "26.4.0",
                                ...
}
...

Expected behaviour
Last affected version should be reported as 25.5.0 and not 26.4.0.

Lingua principale
Go
Stelle
3k
Fork
382
Merge medio
1g 10h
PR unite (30g)
130

Preparare l'ambiente

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 google/osv.dev

Tutte le issue di google/osv.dev

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.