Submit Vulnerability data
Changed onUpdate / Insert Vulnerability data.
Vulnerabilities are identified by their ID, any existing Vulnerability data with the same ID will be replaced if it exists and the updateSequenceNumber of the existing data is less than the incoming data.
Submissions are performed asynchronously. Most updates are available within a short period of time but may take some time during peak load and/or maintenance times. The GET vulnerability endpoint can be used to confirm that data has been stored successfully (if needed).
In the case of multiple Vulnerabilities being submitted in one request, each is validated individually prior to submission. Details of Vulnerabilities that failed submission (if any) are available in the response object.
A maximum of 1000 vulnerabilities can be submitted in one request.
Request
- Base URLhttps://your-domain.atlassian.net
- URLhttps://your-domain.atlassian.net/rest/security/1.0/bulk
- AuthOAuth 2Authorization code: https://auth.atlassian.com/authorizeToken URL: https://auth.atlassian.com/oauth/token scopes: write:security:jira
Request body
Example request
{
"operationType": "SCAN",
"properties": {
"accountId": "account-234",
"projectId": "project-123"
},
"vulnerabilities": [
{
"schemaVersion": "1.0",
"id": "111-222-333",
"updateSequenceNumber": 1523494301448,
"containerId": "111-222-333",
"displayName": "curl/libcurl3 - Buffer Override",
"description": "## Overview\n\n\nAffected versions of this package are vulnerable to MeltLeak",
"url": "https://example.com/project/CWE-123/summary",
"type": "sca",
"introducedDate": "2018-01-20T23:27:25.000Z",
"lastUpdated": "2018-01-20T23:27:25.000Z",
"severity": {
"level": "critical"
},
"identifiers": [
{
"displayName": "CWE-123",
"url": "https://cwe.mitre.org/data/definitions/123.html"
}
],
"status": "open",
"additionalInfo": {
"content": "More information on the vulnerability, as a string",
"url": "https://example.com/project/CWE-123/additionalInfo"
},
"addAssociations": [
{
"associationType": "issueIdOrKeys",
"values": [
"PROJ-1234"
]
}
],
"removeAssociations": [
{
"associationType": "issueIdOrKeys",
"values": [
"PROJ-1234"
]
}
],
"associationsLastUpdated": "2018-01-20T23:27:25.000Z",
"associationsUpdateSequenceNumber": 1523494301448
}
],
"providerMetadata": {
"product": "Atlassian Security Platform 2.1.0"
}
}Response
Submission accepted. Each Vulnerability submitted in a valid format will eventually be available in Jira.
Details of any Vulnerabilities that were submitted but failed submission (due to data format problems, etc.) are available in the response object.
Example response
{
"acceptedVulnerabilities": [
"111-222-333",
"444-555-666"
],
"unknownAssociations": [
{
"associationType": "issueIdOrKeys",
"values": [
"PROJ-1234"
]
}
]
}Changes
- info
the endpoint scheme security
OAuth2was added to the API - info
added
subschema #1: IssueIdOrKeysAssociationto the/response propertyanyOflist for the response status - info
removed
subschema #1: ServiceIdOrKeysAssociationfrom the/response propertyanyOflist for the response status
- info
- breaking
added the pattern
[a-zA-Z0-9\-_.~@:{}=]+(/[a-zA-Z0-9\-_.~@:{}=]+)*to the request property// - warning
removed the request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new
SCANenum value to the request property
- breaking