anchore / anchore/syft

CPE generation for PHP packages are not correct

Open
#778 0 comments 0 reactions 0 assignees View on GitHub
bug ecosystem:php
Dominant language
Go
Stars
9.6k
Forks
954
Avg merge
1d 5h
Merged PRs (30d)
42

Description

**What happened**:
CPEs for the `symfony/translation` package result in:
```json
"cpes": [
"cpe:2.3:a:symfony\\/translation:symfony\\/translation:v4.4.2:*:*:*:*:*:*:*"
],
```

**What you expected to happen**:
Should have resulted in something closer to:
```json
"cpes": [
"cpe:2.3:a:symfony:translation:v4.4.2:*:*:*:*:*:*:*"
],
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported CPE for the PHP package symfony/translation and trace where its package name is split into vendor and product fields. Done means the generated CPE uses symfony:translation rather than the escaped symfony\/translation value, with coverage for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, php
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.