Elixir Security importer drops affected packages when an advisory lists no patched or unaffected versions
Los mantenedores suelen responder en 5 días
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
Línea de trabajo
Empieza con la ruta process_file del importador de Elixir Security y el recorrido de ida y vuelta del advisory mediante AdvisoryDataV2.from_dict. Reproduce el caso con un advisory mínimo que contenga una CVE válida y un paquete, pero ninguna lista de versiones, y compara el tratamiento con las correcciones #2392 y #2521. La tarea estará completada cuando el advisory siga registrado, se omita la entrada del paquete inutilizable y no se serialice ningún rango no válido.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
An Elixir Security advisory that lists no unaffected_versions and no patched_versions — a normal data shape, a disclosed vulnerability with no patched version yet — produces an AffectedPackageV2 whose version range serializes as 'vers:hex/'.
VersionRange.from_string('vers:hex/') raises ValueError: 'vers:hex/' specifies no version range constraints., so the importer logs Cannot create AffectedPackage with invalid or unknown range and the package is dropped when the advisory round-trips through AdvisoryDataV2.from_dict.
Reproduction: a minimal advisory YAML with a valid CVE and package but no version lists. process_file yields the advisory with affected_version_range == 'vers:hex/', and the package disappears on round-trip.
This is the same defect family as #2387 (Gentoo / apache_httpd), fixed for apache_httpd in #2392 and for Gentoo in #2521.
Fix: build the range only when constraints are non-empty; when there is no usable range, log and skip the package entry. The advisory itself is still recorded (with an empty affected_packages list).
Note: the package is not recorded as affected for that advisory. A deeper fix in AffectedPackageV2.from_dict (tolerate a None range instead of dropping the package) is a behaviour change beyond the importer — flagging for maintainer decision, not bundling it here.
- Lenguaje dominante
- Python
- Estrellas
- 722
- Forks
- 364
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aboutcode-org/vulnerablecode
-
curl importer keeps only the first fixed version (166 missing across 66 advisories)Posiblemente ocupada @Jean-Regis-M la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aboutcode-org/vulnerablecode#2546 ·
Los mantenedores suelen responder en 5 días
-
ApacheTomcatImporterPipeline truncates milestone fixed versions (e.g. 11.0.0-M6 -> 11.0.0)Posiblemente ocupada @nikolya-ctrl la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
aboutcode-org/vulnerablecode#2533 ·
Los mantenedores suelen responder en 5 días
-
`gitlab_importer_v2` pipeline failing due to malformed YAML filePosiblemente ocupada @Gowri213 la tomó hace 4 días. Abiertobug Pipeline: Failure Priority: high
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
aboutcode-org/vulnerablecode#2523 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Affected-by-advisories v2 page returns 500 for a purl with no matching packagePosiblemente ocupada @sanchit955 la tomó hace 12 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
aboutcode-org/vulnerablecode#2501 ·
Los mantenedores suelen responder en 5 días
-
OSV v3 parser shares introduced/fixed commit patches across affected packagesPosiblemente ocupada @Celestial-0 la tomó hace 25 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
aboutcode-org/vulnerablecode#2489 ·
Los mantenedores suelen responder en 5 días
Todos los issues de aboutcode-org/vulnerablecode
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
521xueweihan/HelloGitHub#4599 ·
-
Bug Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
pandas-dev/pandas#72413 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
compiler-explorer/compiler-explorer#9710 ·
Los mantenedores suelen responder en 1 día
-
bug harness
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mruangutai/harness#2687 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
modal-labs/modal-client#4158 ·