CycloneDX / CycloneDX/cyclonedx-maven-plugin

Invalid ExternalReference URLs in Generated CycloneDX SBOMs

Open
#614 1 comment 0 reactions 0 assignees View on GitHub
waiting for feedback
Dominant language
Java
Stars
385
Forks
107
Avg merge
17h 31m
Merged PRs (30d)
7

Description

Hi,

we are encountering issues with some generated CycloneDX SBOMs because they contain invalid ExternalReference URLs.

According to the official [CycloneDx JSON schema](https://github.com/CycloneDX/specification/blob/22fb0c2fe5fb0976b9ef5d1aef01cbc46c39a483/schema/bom-1.6.schema.json#L1715) the `ExternalReference.url` must be of format `iri-reference`.

However, when generating an SBOM for Maven projects, we receive ExternalReference URLs that appear as Maven SCM coordinates, which do not conform to the iri-reference format.

See an example below:

```

scm:git:git@github.com:tomitribe/http-signatures-java.git

```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Maven-project SBOM generation described in the issue and trace how the project's SCM coordinate becomes an ExternalReference URL. Compare the generated reference with the CycloneDX JSON schema's iri-reference requirement; done means the generated VCS reference uses a valid URL format.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
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.