Skip to content

Commit 973c29e

Browse files
committed
Symfony: ignore bogus CVEs
1 parent 5185461 commit 973c29e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/SecurityAdvisory/GitHubSecurityAdvisoriesSource.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ class GitHubSecurityAdvisoriesSource implements SecurityAdvisorySourceInterface
2828
{
2929
public const SOURCE_NAME = 'GitHub';
3030

31+
private const IGNORE_CVES = [
32+
'CVE-2024-36611', // @see https://phpc.social/@wouterj/113588554019692959
33+
'CVE-2024-36610', // @see https://phpc.social/@wouterj/113588554019692959
34+
];
35+
3136
/**
3237
* @param list<string> $fallbackGhTokens
3338
*/
@@ -95,6 +100,10 @@ public function getAdvisories(ConsoleIO $io): ?RemoteSecurityAdvisoryCollection
95100
continue;
96101
}
97102

103+
if (in_array($cve, self::IGNORE_CVES, true)) {
104+
continue;
105+
}
106+
98107
$packageName = strtolower($node['package']['name']);
99108

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

0 commit comments

Comments
 (0)