Skip to content

Commit

Permalink
Symfony: ignore bogus CVEs (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubinix authored Dec 3, 2024
1 parent 5185461 commit a624697
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit a624697

Please sign in to comment.