Skip to content

fix: accept CVE IDs with 4 or more sequence digits - #26

Merged
RafaelGSS merged 1 commit into
mainfrom
fix/cve-id-digits
Sep 22, 2026
Merged

RafaelGSS merged 1 commit into
mainfrom
fix/cve-id-digits

Conversation

@RafaelGSS

Copy link
Copy Markdown
Member

The CVE-ID: parser only matched sequence numbers with exactly 5 digits (CVE-\d{4}-\d{5}), so valid IDs such as CVE-2026-9358 (4 digits) or CVE-2017-1000117 (7 digits) were silently ignored and never exposed as cveId.

Per the CVE ID syntax, the sequence number has at least 4 digits with no upper bound, so the pattern is now CVE-\d{4}-\d{4,}.

Adds a test covering 4, 5 and 7 digit IDs.

@RafaelGSS
RafaelGSS merged commit 0888618 into main Sep 22, 2026
26 checks passed
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.

3 participants