Repository navigation
Description
New data source: Gradle Build Tool
Organization: Gradle, the maintainers of Gradle Build Tool (gradle/gradle)
What it is: OSV records for the security advisories we publish for Gradle itself, under the Maven coordinates Gradle is published with. We are the upstream maintainers of the affected package.
Repository: https://github.com/gradle/advisory-database
Why
We publish our advisories as GitHub repository advisories on gradle/gradle: 28 so far, 10 of them awaiting a CVE. Most are not reviewed records in the GitHub Advisory Database, so OSV.dev has little Maven data for Gradle:
- Of our 29 records, 4 have a GHSA counterpart in OSV.dev today. The other 25 do not, including all 10 without a CVE.
POST /v1/queryforMaven/org.gradle:gradle-coreat version8.3returns two vulnerabilities. Our records list 14 for that version, including CVE-2023-42445 and CVE-2023-44387.- The converted
CVE-*records carryGITranges only.
Scanners can identify an installed Gradle as pkg:maven/org.gradle/gradle-core:
org.gradle:gradle-coreis on Maven Central for every public Gradle release, byte-identical to the jar in the distribution.- Since Gradle 9.8.0 the jar embeds
META-INF/maven/org.gradle/gradle-core/pom.properties. gradle/actions/dependency-submissionreports the Gradle version running a build asorg.gradle:gradle-core:<version>.
What is missing is complete vulnerability data under that package, from its maintainers.
Source summary
| Field | Value |
|---|---|
| ID prefix | GRADLE-, to be reserved in ossf/osv-schema (pull request to follow) |
| Ecosystem | Maven (existing) |
| Package | org.gradle:gradle-core |
| Method | Public Git repository (type 0) |
| Repository | https://github.com/gradle/advisory-database |
| Records path | advisories/<year>/<id>.json |
| License | Apache 2.0 |
| Schema version | 1.9.2 |
| Records | 29, from 2019 to date |
Each record:
- aliases the CVE, where there is one, and the GHSA ID of the repository advisory;
- has one
ECOSYSTEMrange per affected release line, and noGITrange; - lists only versions that exist on Maven Central;
- is validated on every change against the JSON schema and with
osv-linter.
Proposed source.yaml entry
- name: 'gradle'
type: 0
repo_url: 'https://github.com/gradle/advisory-database.git'
db_prefix: ['GRADLE-']
accepted_ecosystems: ['Maven']
directory_path: 'advisories'
extension: '.json'
ignore_git: True
strict_validation: True
human_link: 'https://github.com/gradle/advisory-database/blob/main/advisories/{{ .ID | field "-" 1 }}/{{ .ID }}.json'
link: 'https://github.com/gradle/advisory-database/blob/main/'Sample record
GRADLE-2023-0004, for CVE-2023-44387, with details shortened here:
{
"schema_version": "1.9.2",
"id": "GRADLE-2023-0004",
"published": "2023-10-04T21:58:52Z",
"modified": "2026-11-20T09:19:49Z",
"aliases": ["CVE-2023-44387", "GHSA-43r3-pqhv-f7h9"],
"summary": "Incorrect permission assignment for symlinked files used in copy or archiving operations",
"details": "...",
"severity": [
{ "type": "CVSS_V3", "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N" }
],
"affected": [
{
"package": {
"ecosystem": "Maven",
"name": "org.gradle:gradle-core",
"purl": "pkg:maven/org.gradle/gradle-core"
},
"ranges": [
{ "type": "ECOSYSTEM", "events": [{ "introduced": "0" }, { "fixed": "7.6.3" }] },
{ "type": "ECOSYSTEM", "events": [{ "introduced": "8.0" }, { "fixed": "8.4" }] }
]
}
],
"references": [
{ "type": "ADVISORY", "url": "https://github.com/gradle/gradle/security/advisories/GHSA-43r3-pqhv-f7h9" },
{ "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-44387" }
],
"credits": [
{ "name": "MartinHolland", "contact": ["https://github.com/MartinHolland"], "type": "FINDER" }
],
"database_specific": { "cwe_ids": ["CWE-732"], "severity": "LOW" }
}Questions
- Is an upstream feed for a package in the
Mavenecosystem fine alongside GHSA? Drupal publishesdrupal/corerecords underPackagistthe same way. - We put the GHSA ID of each repository advisory in
aliases. Four of them are reviewed records in the GitHub Advisory Database today, and more may follow. Is that the right field, so that OSV.dev groups our record with the GHSA one when both exist?
Checklist status
-
Prepare your data - refer to the OSV Schema documentation for information on how to properly format the data so it can be accepted.
-
Create a PR to reserve an ID prefix and define a new ecosystem (example). We review the records you start publishing for OSV Schema correctness and quality as part of reviewing and merging this PR.
-
Prepare and publish your records via a Git repository (example). If this method isn’t ideal, we also support publishing records from REST API endpoints or through a GCS bucket (example). Ensure your data is published under a clearly documented, permissive license (such as CC-BY 4.0, CC0 1.0, Apache 2.0, or MIT).
-
To support API querying, if you are contributing a new ecosystem, please create a PR to add PURL mappings in go/purl and register the ecosystem version logic in go/osv/ecosystem (see ecosystem factories). You can refer to existing examples for Semver and non-Semver (e.g. Debian) ecosystems.
Note: Many of our ecosystems rely on osv-scalibr's semantic module, which osv-scanner also uses to perform offline scanning. Consider adding it there if you wish to have the ecosystem fully supported in osv-scanner. -
Create a PR to start importing the records you are publishing into our test instance of OSV.dev and validate everything is working as intended there.
-
Create a PR to start importing the records you are publishing into our production environment and document your data source and its license in docs/data.md.
Activity
ljacomet commentedon Nov 27, 2026
OSV Schema PR:
Add GRADLE prefix for the Gradle Advisory Database (#680)
jess-lowe commentedon Nov 29, 2026
Thanks @ljacomet!
ossf/osv-schema#680is merged now. We'll follow this up with a schema release shortly.On your two questions:
Mavenalongside GHSA is totally fine here since you're the upstream maintainers and all versions in your ranges exist on Maven Central (similar todrupalinPackagist).GHSA-*ID (andCVE-*when assigned) inaliasesis the right approach. Both IDs describe the same underlying vulnerability, and OSV.dev computes transitive alias groups fromaliasessoGRADLE-*,GHSA-*, andCVE-*records will link together automatically.Since
Mavenis already supported, you can skip the PURL/ecosystem step and open a PR addinggradletosource_test.yamlwhenever you're ready (just include the usual defaults from the other git entries likeversions_from_repo: False,detect_cherrypicks: False,ignore_patterns: [], andeditable: False). Also,human_linkis optional if you don't have a separate rendered advisory webpage perGRADLE-ID, sincelinkalready points to the JSON file on GitHub.Once that imports cleanly on test, we can follow up with
source.yamland the docs!ljacomet commentedon Nov 30, 2026
Thanks @jess-lowe for the quick follow up.
PR now open:
feat(sources-test): Add Gradle Advisory Database data source (test im…