dependency-check / dependency-check/DependencyCheck

Missing Sonatype OSS issues for PHP/composer packages

Open
#5,400 6 comments 0 reactions 0 assignees View on GitHub
enhancement ossindex
Dominant language
Java
Stars
7.7k
Forks
1.4k
Avg merge
9d 22h
Merged PRs (30d)
13

Description

Given a PHP `composer.lock` file, pointing to a package that is listed as vulnerable on Sonatype OSS Index. Running latest dependency-check-cli (8.0.2) by serving Sonatype login credentials results in an empty report. Apparently, known vulnerabilities of PHP packages aren't reported at all.

**Reproduction guide**
I've attached a [ZIP file](https://github.com/jeremylong/DependencyCheck/files/10538224/composer.zip), containing a minimum `composer.json` (and resulting `composer.lock`) file. It requires PHP package `symfony/http-kernel@v5.1.4` which is [listed as vulnerable on OSS Index](https://ossindex.sonatype.org/component/pkg:composer/symfony/http-kernel@v5.1.4):
1. Place `composer.lock` file onto current working directory
2. Scan working directory using `dependency-check-cli`, providing the `--enableExperimental` option
3. Check generated report file(s) -> no vulnerabilities are reported

Let me know if you need further information to investigate.

Thank you in advance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.