Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony: ignore bogus CVEs #1493

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/SecurityAdvisory/GitHubSecurityAdvisoriesSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class GitHubSecurityAdvisoriesSource implements SecurityAdvisorySourceInterface
{
public const SOURCE_NAME = 'GitHub';

private const IGNORE_CVES = [
'CVE-2024-36611', // @see https://phpc.social/@wouterj/113588554019692959
'CVE-2024-36610', // @see https://phpc.social/@wouterj/113588554019692959
];

/**
* @param list<string> $fallbackGhTokens
*/
Expand Down Expand Up @@ -95,6 +100,10 @@ public function getAdvisories(ConsoleIO $io): ?RemoteSecurityAdvisoryCollection
continue;
}

if (in_array($cve, self::IGNORE_CVES, true)) {
continue;
}

$packageName = strtolower($node['package']['name']);

// GitHub adds spaces everywhere e.g. > 1.0, adjust to be able to match other advisories
Expand Down
Loading