Skip to content

Commit e4fe53e

Browse files
authored
Merge pull request #409 from alilleybrinker/alilleybrinker/affected-purls
Add `packageURL` field to product in `affected` array.
2 parents f9b3097 + f198d29 commit e4fe53e

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

schema/CVE_Record_Format.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,28 @@
363363
},
364364
"additionalProperties": false
365365
}
366+
},
367+
"packageURL": {
368+
"description": "A Package URL, a unified URL specification for identifying packages hosted by known package hosts. The Package URL MUST NOT include a version.",
369+
"$ref": "#/definitions/uriType",
370+
"examples": [
371+
"pkg:bitbucket/birkenfeld/pygments-main",
372+
"pkg:deb/debian/curl?arch=i386&distro=jessie",
373+
"pkg:docker/cassandra",
374+
"pkg:docker/customer/dockerimage?repository_url=gcr.io",
375+
"pkg:gem/jruby-launcher?platform=java",
376+
"pkg:gem/ruby-advisory-db-check",
377+
"pkg:github/package-url/purl-spec",
378+
"pkg:golang/google.golang.org/genproto#googleapis/api/annotations",
379+
"pkg:maven/org.apache.xmlgraphics/batik-anim?packaging=sources",
380+
"pkg:maven/org.apache.xmlgraphics/batik-anim?repository_url=repo.spring.io/release",
381+
"pkg:npm/%40angular/animation",
382+
"pkg:npm/foobar",
383+
"pkg:nuget/EnterpriseLibrary.Common",
384+
"pkg:pypi/django",
385+
"pkg:rpm/fedora/curl?arch=i386&distro=fedora-25",
386+
"pkg:rpm/opensuse/curl?arch=i386&distro=opensuse-tumbleweed"
387+
]
366388
}
367389
}
368390
},

schema/docs/cnaContainer-advanced-example.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
"MacOS",
3838
"XT-4500"
3939
],
40-
"collectionURL": "https://example.org/packages",
41-
"packageName": "example_enterprise",
40+
"collectionURL": "https://npmjs.com",
41+
"packageName": "example",
42+
"packageURL": "pkg:npm/example",
4243
"repo": "git://example.org/source/example_enterprise",
4344
"modules": [
4445
"Web-Management-Interface"

schema/docs/full-record-advanced-example.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@
5050
"MacOS",
5151
"XT-4500"
5252
],
53-
"collectionURL": "https://example.org/packages",
54-
"packageName": "example_enterprise",
53+
"collectionURL": "https://npmjs.com",
54+
"packageName": "example",
55+
"packageURL": "pkg:npm/example",
5556
"repo": "git://example.org/source/example_enterprise",
5657
"modules": [
5758
"Web-Management-Interface"
@@ -162,7 +163,7 @@
162163
"value": "OS-komand-injekta vundebleco <tt>parseFilename</tt> funkcio de <tt>example.php</tt> en la Web Administrado-Interfaco de Example.org Example Enterprise ĉe Windows, macOS kaj XT-4500 permesas al malproksimaj neaŭtentikigitaj atakantoj eskaladi privilegiojn.<br><br> Ĉi tiu afero efikas:<br><ul><li>1.0-versioj antaŭ 1.0.6</li><li>2.1-versioj de 2.1.6 ĝis 2.1.9.</li></ul>"
163164
}
164165
]
165-
}
166+
}
166167
],
167168
"metrics": [
168169
{

0 commit comments

Comments
 (0)