Skip to content

Commit edd1491

Browse files
authored
fix(fp): Fix more common false positives for popular PHP/composer frameworks with generic names (#7994)
Signed-off-by: Chad Wilson <[email protected]>
1 parent ae97b08 commit edd1491

File tree

1 file changed

+40
-4
lines changed

1 file changed

+40
-4
lines changed

core/src/main/resources/dependencycheck-base-suppression.xml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,18 +369,54 @@
369369
</suppress>
370370
<suppress base="true">
371371
<notes><![CDATA[
372-
FP per #7542
372+
FP per #7542 and #7984 (prefixed symfony vendor packages which are not part of core symfony product)
373373
]]></notes>
374-
<packageUrl regex="true">^pkg:composer/symfony/polyfill-.*$</packageUrl>
374+
<packageUrl regex="true">^pkg:composer/symfony/(polyfill-|ux-|panther|webpack-encore-bundle|mercure@|mercure-bundle|monolog-bundle).*$</packageUrl>
375375
<cpe>cpe:/a:sensiolabs:symfony</cpe>
376376
</suppress>
377377
<suppress base="true">
378378
<notes><![CDATA[
379-
FP per #7545
379+
FP per #7545 and #7984 (suffixed symfony vendor packages which are not part of core symfony product)
380380
]]></notes>
381-
<packageUrl regex="true">^pkg:composer/symfony/.*-contracts@.*$</packageUrl>
381+
<packageUrl regex="true">^pkg:composer/symfony/.*(contracts|-pack)@.*$</packageUrl>
382382
<cpe>cpe:/a:sensiolabs:symfony</cpe>
383383
</suppress>
384+
<suppress base="true">
385+
<notes><![CDATA[
386+
FP per #7984 - only the pimcore/pimcore package reflects the actual pimcore product
387+
]]></notes>
388+
<packageUrl regex="true">^pkg:composer/(?!pimcore/pimcore@).*$</packageUrl>
389+
<cpe>cpe:/a:pimcore:pimcore</cpe>
390+
</suppress>
391+
<suppress base="true">
392+
<notes><![CDATA[
393+
FP per #7984 - only the pear/pear-core-minimal packages reflect the actual pear product
394+
]]></notes>
395+
<packageUrl regex="true">^pkg:composer/(?!pear/pear@|pear/pear-core-minimal@).*$</packageUrl>
396+
<cpe>cpe:/a:pear:pear</cpe>
397+
</suppress>
398+
<suppress base="true">
399+
<notes><![CDATA[
400+
FP per #7984 - only the laravel/framework packages reflect the actual laravel products (each have their own CPE)
401+
]]></notes>
402+
<packageUrl regex="true">^pkg:composer/(?!laravel/framework@|laravel/laravel@).*$</packageUrl>
403+
<cpe>cpe:/a:laravel:laravel</cpe>
404+
<cpe>cpe:/a:laravel:framework</cpe>
405+
</suppress>
406+
<suppress base="true">
407+
<notes><![CDATA[
408+
FP per #7984 - only the drupal/services package represents the drupal services project
409+
]]></notes>
410+
<packageUrl regex="true">^pkg:composer/(?!drupal/services@).*$</packageUrl>
411+
<cpe>cpe:/a:services_project:services</cpe>
412+
</suppress>
413+
<suppress base="true">
414+
<notes><![CDATA[
415+
FP per #7984 - only the doctrine/orm package represents the core doctrine project
416+
]]></notes>
417+
<packageUrl regex="true">^pkg:composer/(?!doctrine/orm@).*$</packageUrl>
418+
<cpe>cpe:/a:doctrine-project:doctrine</cpe>
419+
</suppress>
384420
<suppress base="true">
385421
<notes><![CDATA[
386422
FP per #2957

0 commit comments

Comments
 (0)