Skip to content

Fix date parsing issues and remove duplicate utility functions#2

Open
fire8cker wants to merge 2 commits intohijack1r:mainfrom
fire8cker:fix-date-parsing
Open

Fix date parsing issues and remove duplicate utility functions#2
fire8cker wants to merge 2 commits intohijack1r:mainfrom
fire8cker:fix-date-parsing

Conversation

@fire8cker
Copy link
Copy Markdown

This PR addresses several issues identified in the project, including:

Incorrect date parsing: Fixes the is_recent function to properly handle all NVD 2.0 date formats, ensuring recent high-severity vulnerabilities are not silently skipped due to incorrect date parsing (e.g., handling dates with/without microseconds and with timezone suffixes).
Duplicate function definition: Removes the duplicate load_template function in CVE_GhListener.py, relying on the existing implementation in pkg/utils.py, which reduces code duplication and avoids local name shadowing.

Make is_recent robust against NVD dates with/without microseconds and with timezone suffixes, preventing silent skipping of recent high-severity vulnerabilities.
Summary: Remove the duplicate load_template from CVE_GhListener.py and rely on the existing implementation in pkg/utils.py, reducing duplication and avoiding local name shadowing.
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.

1 participant