Skip to content

feat: Add CVE extraction utility and standardize YAML handling in vulntotal - #2242

Closed
ogubuikeAlex wants to merge 2 commits into
aboutcode-org:mainfrom
ogubuikeAlex:main
Closed

feat: Add CVE extraction utility and standardize YAML handling in vulntotal#2242
ogubuikeAlex wants to merge 2 commits into
aboutcode-org:mainfrom
ogubuikeAlex:main

Conversation

@ogubuikeAlex

@ogubuikeAlex ogubuikeAlex commented Mar 28, 2026

Copy link
Copy Markdown

As part of my GSoC 2026 proposal to process unstructured data sources for vulnerability discovery, I've started contributing to VulnerableCode to familiarize myself with the codebase and lay groundwork for the project.

I began with a small housekeeping fix which replaces the standard yaml library with saneyaml in the vulntotal CLI to align it with the rest of the codebase. The output stays identical, but the codebase is now more consistent.

Also, I added an utility function (extract_cve_ids) that pulls CVE identifiers out of raw unstructured text. It handles CVEs buried in URLs, mixed casing, duplicates, trailing punctuation, and returns a clean, sorted list. This is a small but necessary piece of the larger extraction pipeline I'm proposing, which will eventually parse not just CVE IDs but also package PURLs, version ranges, and fix commit hashes from mailing lists, changelogs, and git logs to feed into VulnerableCode's AdvisoryDataV2 ingestion flow.

(Related to RFC Issue #2241)

@ogubuikeAlex ogubuikeAlex changed the title refactor: replace yaml with saneyaml in vulntotal CLI feat: Add CVE extraction utility and standardize YAML handling in vulntotal Mar 30, 2026
@pombredanne

Copy link
Copy Markdown
Member

Is this AI-generated code? This PR contains completely unrelated changes, no tests and does not pass basic checks.
I appreciate your effort if you are not a bot, but then do not use AI. I am better at using AI than you are, and using AI is NOT indicative of any skills of yours. So please come back with something genuine.

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