Repository navigation
Expand file tree
/
Copy pathopenapi-v1.yaml
More file actions
934 lines (934 loc) · 34.9 KB
/
Copy pathopenapi-v1.yaml
File metadata and controls
934 lines (934 loc) · 34.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
openapi: 3.0.3
info:
title: Arch Linux Security Tracker API
version: '1'
description: Public CVE, package, AVG, published advisory and synchronization reads; scoped token writes.
JSON request bodies are limited to 65536 bytes. Public records include notes. Public GET/HEAD responses
support conditional reads; authenticated drafts and mutations are no-store. PATCH requires the exact strong
ETag from a fresh detail GET in If-Match. Tokens have one or more scopes and expire after 90 days. See api-v1.md,
api-catalog.md and api-workflow.md.
servers:
- {url: /api/v1}
security: []
paths:
/cves:
get:
operationId: listCVEs
summary: List and filter CVEs, including orphan records
description: Filters combine with AND. q searches literal substrings in identifier, description and notes.
Lexical identifier pagination is not a snapshot or synchronization checkpoint.
parameters:
- {$ref: '#/components/parameters/Limit'}
- {$ref: '#/components/parameters/CVEAfter'}
- {$ref: '#/components/parameters/PackageFilter'}
- name: orphan
in: query
schema:
type: string
enum: ['true', 'false']
- name: severity
in: query
schema: {$ref: '#/components/schemas/Severity'}
- name: q
in: query
schema: {type: string}
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/CVEPage'}
default: {$ref: '#/components/responses/Error'}
'304': {$ref: '#/components/responses/NotModified'}
post:
operationId: createCVE
summary: Create a public CVE without an AVG
description: 'Requires cves:create scope. Immediately publishes all fields including notes. Duplicate
identifier: 409 without merging.'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema: {$ref: '#/components/schemas/CVECreate'}
responses:
'201': {$ref: '#/components/responses/CVECreated'}
default: {$ref: '#/components/responses/Error'}
/cves/{name}:
parameters:
- {$ref: '#/components/parameters/CVEName'}
get:
operationId: getCVE
summary: Read one public CVE
parameters:
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/CVE'}
default: {$ref: '#/components/responses/Error'}
'304': {$ref: '#/components/responses/NotModified'}
patch:
operationId: updateCVE
summary: Update reviewed CVE fields
description: Requires cves:update scope. Advisory-linked records additionally require Security Team membership.
Refreshes linked group severity and scheduled advisory types.
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema: {$ref: '#/components/schemas/CVEPatch'}
responses:
'200': {$ref: '#/components/responses/CVE'}
default: {$ref: '#/components/responses/Error'}
'412': {$ref: '#/components/responses/Error'}
'428': {$ref: '#/components/responses/Error'}
parameters:
- {$ref: '#/components/parameters/IfMatch'}
/packages:
get:
operationId: listPackages
summary: List repository package variants
description: Exact filters except q, a literal substring in name/base/upstream URL. Database-row cursor
is not a snapshot; use /packages/snapshot for a complete ingestion catalogue.
parameters:
- {$ref: '#/components/parameters/Limit'}
- {$ref: '#/components/parameters/NumericAfter'}
- name: name
in: query
schema: {type: string}
- name: base
in: query
schema: {type: string}
- name: repository
in: query
schema: {type: string}
- name: architecture
in: query
schema: {type: string}
- name: q
in: query
schema: {type: string}
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/PackagePage'}
default: {$ref: '#/components/responses/Error'}
'304': {$ref: '#/components/responses/NotModified'}
/packages/snapshot:
get:
operationId: getPackageSnapshot
summary: Read the complete package catalogue
description: One database query returns all variants ordered by name, repository and architecture.
No cursor or query parameters. Replace ingestion caches only after receiving the complete response.
parameters:
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/PackageSnapshot'}
'304': {$ref: '#/components/responses/NotModified'}
default: {$ref: '#/components/responses/Error'}
/groups:
get:
operationId: listGroups
summary: List vulnerability groups
parameters:
- {$ref: '#/components/parameters/Limit'}
- {$ref: '#/components/parameters/NumericAfter'}
- {$ref: '#/components/parameters/PackageFilter'}
- name: cve
in: query
schema: {$ref: '#/components/schemas/CVEName'}
- name: status
in: query
schema: {$ref: '#/components/schemas/Status'}
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/GroupPage'}
default: {$ref: '#/components/responses/Error'}
'304': {$ref: '#/components/responses/NotModified'}
post:
operationId: createGroup
summary: Create a reviewed vulnerability group
description: 'Requires groups:create scope. '
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema: {$ref: '#/components/schemas/GroupCreate'}
responses:
'201': {$ref: '#/components/responses/GroupCreated'}
default: {$ref: '#/components/responses/Error'}
/groups/{name}:
parameters:
- {$ref: '#/components/parameters/GroupName'}
get:
operationId: getGroup
summary: Read one AVG and its relationships
parameters:
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/Group'}
default: {$ref: '#/components/responses/Error'}
'304': {$ref: '#/components/responses/NotModified'}
patch:
operationId: updateGroup
summary: Update AVG memberships and assessment
description: Requires groups:update scope. Advisory-linked records additionally require Security Team
membership.
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema: {$ref: '#/components/schemas/GroupPatch'}
responses:
'200': {$ref: '#/components/responses/Group'}
default: {$ref: '#/components/responses/Error'}
'412': {$ref: '#/components/responses/Error'}
'428': {$ref: '#/components/responses/Error'}
parameters:
- {$ref: '#/components/parameters/IfMatch'}
/advisories:
get:
operationId: listAdvisories
summary: List published advisories
description: Drafts are excluded even for authenticated users.
parameters:
- {$ref: '#/components/parameters/Limit'}
- {$ref: '#/components/parameters/ASAAfter'}
- {$ref: '#/components/parameters/PackageFilter'}
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/AdvisoryPage'}
default: {$ref: '#/components/responses/Error'}
'304': {$ref: '#/components/responses/NotModified'}
/advisories/{name}:
parameters:
- {$ref: '#/components/parameters/ASAName'}
get:
operationId: getAdvisory
summary: Read one published advisory
description: Scheduled or missing advisories return 404.
parameters:
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/Advisory'}
default: {$ref: '#/components/responses/Error'}
'304': {$ref: '#/components/responses/NotModified'}
/changes:
get:
operationId: listChanges
summary: Read resource invalidations from audit transactions
description: Omit after to capture a current checkpoint before enumerating resources; items is empty.
after=0 replays retained history. next_cursor is always a checkpoint, never null. limit bounds scanned
transactions, not items. Follow has_more even on an empty page. Refetch named current resources; remove
deleted items or detail routes returning 404. Apply the page before saving its checkpoint. Includes
relationship changes and previously published advisory tombstones; never reveals unpublished draft
identifiers. Requires retained Continuum history and SQLite serialized writes; direct SQL and unversioned
package refreshes are outside this feed. Rebuild caches after database restoration or replacement.
parameters:
- {$ref: '#/components/parameters/Limit'}
- {$ref: '#/components/parameters/NumericAfter'}
- {$ref: '#/components/parameters/IfNoneMatch'}
responses:
'200': {$ref: '#/components/responses/Changes'}
default: {$ref: '#/components/responses/Error'}
'304': {$ref: '#/components/responses/NotModified'}
/intake:
post:
operationId: createIntake
summary: Submit a private disclosure for review
description: Requires intake:create scope. Account-scoped keys deduplicate normalized content across
token rotation. Trims title/source and deduplicates references. Identical retries return the current
receipt; changed content under the same key returns 409. No automatic publication. Responses are no-store.
security:
- bearerAuth: []
parameters:
- {$ref: '#/components/parameters/IdempotencyKey'}
requestBody:
required: true
content:
application/json:
schema: {$ref: '#/components/schemas/IntakeCreate'}
responses:
'201': {$ref: '#/components/responses/IntakeReceipt'}
'200': {$ref: '#/components/responses/IntakeReceipt'}
default: {$ref: '#/components/responses/Error'}
/groups/{name}/advisory-drafts:
parameters:
- {$ref: '#/components/parameters/GroupName'}
get:
operationId: listAdvisoryDrafts
summary: Recover a group's scheduled drafts
description: Requires advisories:write scope and Security Team membership. Returns items ordered by
package, excluding published advisories. Empty for groups without drafts; 404 for unknown groups.
Responses are no-store.
security:
- bearerAuth: []
responses:
'200': {$ref: '#/components/responses/DraftBatch'}
default: {$ref: '#/components/responses/Error'}
post:
operationId: createAdvisoryDrafts
summary: Generate one private draft per AVG package
description: Requires advisories:write scope. Security Team role required. Group must have fixed status,
a fixed version, CVEs and packages, and no existing advisory. Empty object selects a derived type.
Does not publish or send mail.
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema: {$ref: '#/components/schemas/DraftCreate'}
responses:
'201': {$ref: '#/components/responses/DraftBatch'}
default: {$ref: '#/components/responses/Error'}
/advisory-drafts/{name}:
parameters:
- {$ref: '#/components/parameters/ASAName'}
get:
operationId: readAdvisoryDraft
summary: Read a private generated draft and its ETag
description: 'Requires advisories:write and Security Team role. Cache-Control: no-store. Published records
return 409.'
parameters: []
responses:
'200': {$ref: '#/components/responses/Draft'}
default: {$ref: '#/components/responses/Error'}
security:
- bearerAuth: []
patch:
operationId: updateAdvisoryDraft
summary: Edit a private draft
description: Requires advisories:write scope. Security Team role required. Only type, workaround and
impact are writable. Publication remains a separate browser action.
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema: {$ref: '#/components/schemas/DraftPatch'}
responses:
'200': {$ref: '#/components/responses/Draft'}
default: {$ref: '#/components/responses/Error'}
'412': {$ref: '#/components/responses/Error'}
'428': {$ref: '#/components/responses/Error'}
parameters:
- {$ref: '#/components/parameters/IfMatch'}
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Personal token created through the CSRF-protected /tokens browser page. Select one or more scopes:
cves:create, cves:update, groups:create, groups:update, intake:create, or advisories:write. Expires after 90 days;
owner activity and role are checked on every request. Reporter or higher is required; advisories:write
requires Security Team or administrator. Browser cookies do not authorize API operations.'
responses:
Error:
description: 'JSON error. 400 bad_request/invalid_json/invalid_idempotency_key; 401 unauthorized (Bearer challenge); 403 forbidden;
404 not_found; 405 method_not_allowed; 409 already_exists/already_grouped/advisory_exists/already_published/group_not_fixed/concurrent_creation/idempotency_conflict;
412 precondition_failed; 413 payload_too_large; 415 unsupported_media_type; 422 validation_error; 428
precondition_required; 500 internal_error. All errors use Cache-Control: no-store. fields is present
when individual field errors are available.'
content:
application/json:
schema: {$ref: '#/components/schemas/Error'}
NotModified:
description: Unchanged public representation. No response body.
headers:
ETag: {$ref: '#/components/headers/ETag'}
CVE:
description: CVE representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/CVE'}
CVEPage:
description: CVEPage representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/CVEPage'}
PackageSnapshot:
description: Complete package catalogue.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/PackageSnapshot'}
PackagePage:
description: PackagePage representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/PackagePage'}
Group:
description: Group representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/Group'}
GroupPage:
description: GroupPage representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/GroupPage'}
Advisory:
description: Advisory representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/Advisory'}
AdvisoryPage:
description: AdvisoryPage representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/AdvisoryPage'}
Changes:
description: Changes representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/Changes'}
Draft:
description: Draft representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/Draft'}
DraftBatch:
description: DraftBatch representation.
headers:
ETag: {$ref: '#/components/headers/ETag'}
content:
application/json:
schema: {$ref: '#/components/schemas/DraftBatch'}
IntakeReceipt:
description: Private receipt; created on 201, current state on an identical retry (200).
headers:
Location: {$ref: '#/components/headers/Location'}
content:
application/json:
schema: {$ref: '#/components/schemas/IntakeReceipt'}
CVECreated:
description: CVE created.
headers:
Location: {$ref: '#/components/headers/Location'}
content:
application/json:
schema: {$ref: '#/components/schemas/CVE'}
GroupCreated:
description: Group created.
headers:
Location: {$ref: '#/components/headers/Location'}
content:
application/json:
schema: {$ref: '#/components/schemas/Group'}
schemas:
CVEName:
type: string
pattern: ^CVE-[0-9]{4}-[0-9]{4,}$
maxLength: 64
description: Syntax validation only; does not establish CVE assignment.
CVE:
type: object
required: [name, type, severity, vector, description, notes, references, groups, packages, created, updated,
cvss]
properties:
name: {type: string}
type: {type: string}
severity: {$ref: '#/components/schemas/Severity'}
vector: {$ref: '#/components/schemas/Vector'}
description: {type: string}
notes: {type: string, description: Public notes.}
references:
type: array
items: {type: string}
groups:
type: array
uniqueItems: true
items: {type: string}
description: Sorted AVG identifiers; empty for orphan CVEs.
packages:
type: array
uniqueItems: true
items: {type: string}
description: Sorted package names linked through AVGs.
created: {type: string, format: date-time}
updated:
type: string
format: date-time
description: Stored UTC modification timestamp. Use /changes, not timestamps, for synchronization.
cvss: {$ref: '#/components/schemas/CVSS'}
Severity:
type: string
default: unknown
enum: [unknown, critical, high, medium, low]
Vector:
type: string
default: unknown
enum: [unknown, remote, local]
Error:
type: object
required: [error]
properties:
error:
type: object
required: [code, message]
properties:
code: {type: string}
message: {type: string}
fields:
type: object
additionalProperties:
type: array
items: {type: string}
IssueType:
type: string
enum:
- unknown
- access restriction bypass
- arbitrary code execution
- arbitrary command execution
- arbitrary file overwrite
- arbitrary filesystem access
- arbitrary file upload
- authentication bypass
- certificate verification bypass
- content spoofing
- cross-site request forgery
- cross-site scripting
- denial of service
- directory traversal
- incorrect calculation
- information disclosure
- insufficient validation
- man-in-the-middle
- open redirect
- private key recovery
- privilege escalation
- proxy injection
- same-origin policy bypass
- sandbox escape
- session hijacking
- signature forgery
- silent downgrade
- sql injection
- time alteration
- url request injection
- xml external entity injection
References:
type: array
default: []
description: HTTP(S) URLs without whitespace or control characters. Deduplicated in first-occurrence
order. Newline-joined total after deduplication must not exceed 4096 characters. URLs are not fetched.
items: {type: string, format: uri, pattern: '^[Hh][Tt][Tt][Pp][Ss]?://', maxLength: 4096}
Text: {type: string, maxLength: 4096, description: Valid Unicode scalar values.}
CVSS:
type: object
nullable: true
additionalProperties: false
required: [version, score, vector, source]
description: Source assessment, independent of Arch severity. Null clears it. Vector syntax and prefix
are checked; score is not recalculated.
properties:
version:
type: string
enum: ['3.0', '3.1', '4.0']
score: {type: number, minimum: 0, maximum: 10, multipleOf: 0.1}
vector: {type: string, maxLength: 256, pattern: '^CVSS:(3\.0|3\.1|4\.0)(/[A-Z][A-Z0-9]*:[A-Za-z0-9]+)+$'}
source: {type: string, format: uri, maxLength: 2048, description: HTTP(S) source URL without whitespace/control
characters.}
CVECreate:
type: object
additionalProperties: false
required: [name]
description: Omitted type/severity/vector default to unknown, text to empty, references to [], CVSS to
null. Null is accepted only for cvss.
properties:
name: {$ref: '#/components/schemas/CVEName'}
type: {$ref: '#/components/schemas/IssueType'}
severity: {$ref: '#/components/schemas/Severity'}
vector: {$ref: '#/components/schemas/Vector'}
description: {$ref: '#/components/schemas/Text'}
notes: {$ref: '#/components/schemas/Text'}
references: {$ref: '#/components/schemas/References'}
cvss: {$ref: '#/components/schemas/CVSS'}
CVEPatch:
type: object
additionalProperties: false
minProperties: 1
description: Only supplied fields change. Identifier cannot be renamed. Null is accepted only for cvss.
properties:
type: {$ref: '#/components/schemas/IssueType'}
severity: {$ref: '#/components/schemas/Severity'}
vector: {$ref: '#/components/schemas/Vector'}
description: {$ref: '#/components/schemas/Text'}
notes: {$ref: '#/components/schemas/Text'}
references: {$ref: '#/components/schemas/References'}
cvss: {$ref: '#/components/schemas/CVSS'}
GroupName: {type: string, pattern: '^AVG-[0-9]{1,18}$'}
ASAName: {type: string, pattern: '^ASA-[0-9]{6}-[0-9]{1,8}$'}
Status:
type: string
enum: [unknown, vulnerable, testing, fixed, not_affected]
Assessment:
type: string
enum: [unknown, affected, not_affected]
default: unknown
Version: {type: string, maxLength: 32, description: 'Arch package version with pkgrel, optionally epoch;
compared using libalpm.'}
BugTicket:
type: string
maxLength: 512
default: ''
description: Empty or an HTTPS Arch packaging-project GitLab issue URL.
example: https://gitlab.archlinux.org/archlinux/packaging/packages/example/-/issues/73
Package:
type: object
required: [name, base, version, repository, architecture, description, upstream_url]
properties:
name: {type: string}
base: {type: string}
version: {type: string}
repository: {type: string}
architecture: {type: string}
description: {type: string}
upstream_url: {type: string, nullable: true}
GroupCreate:
type: object
additionalProperties: false
required: [cves, packages, affected]
description: Packages must exist and share a base; missing CVEs are created as unknown. Existing package/CVE
overlaps return 409. Status/severity are derived, not writable.
properties:
cves:
type: array
minItems: 1
items: {$ref: '#/components/schemas/CVEName'}
packages:
type: array
minItems: 1
items: {type: string, maxLength: 64}
affected: {$ref: '#/components/schemas/Version'}
fixed: {type: string, maxLength: 32, nullable: true, description: Null or empty means unknown; otherwise
newer than affected.}
assessment: {$ref: '#/components/schemas/Assessment'}
bug_ticket: {$ref: '#/components/schemas/BugTicket'}
references: {$ref: '#/components/schemas/References'}
notes: {$ref: '#/components/schemas/Text'}
advisory_qualified: {type: boolean, default: true}
GroupPatch:
type: object
additionalProperties: false
minProperties: 1
description: Only supplied fields change. Arrays replace memberships. Existing removed-from-repository
package names may be retained. Existing associations survive package-base changes or historical overlaps;
new associations undergo package and duplicate checks. Advisory-linked packages cannot be removed. Omitting bug_ticket
preserves the stored reference. Submitted values must be GitLab URLs or empty; numeric IDs are rejected.
properties:
cves:
type: array
minItems: 1
items: {$ref: '#/components/schemas/CVEName'}
packages:
type: array
minItems: 1
items: {type: string, maxLength: 64}
affected: {$ref: '#/components/schemas/Version'}
fixed: {type: string, maxLength: 32, nullable: true, description: Null or empty means unknown; otherwise
newer than affected.}
assessment: {$ref: '#/components/schemas/Assessment'}
bug_ticket: {$ref: '#/components/schemas/BugTicket'}
references: {$ref: '#/components/schemas/References'}
notes: {$ref: '#/components/schemas/Text'}
advisory_qualified: {type: boolean, default: true}
Group:
type: object
required:
- name
- cves
- packages
- affected
- fixed
- status
- assessment
- severity
- references
- notes
- bug_ticket
- advisory_qualified
- created
- updated
properties:
name: {$ref: '#/components/schemas/GroupName'}
cves:
type: array
items: {$ref: '#/components/schemas/CVEName'}
packages:
type: array
items: {type: string}
affected: {type: string}
fixed: {type: string, nullable: true}
status: {$ref: '#/components/schemas/Status'}
assessment: {$ref: '#/components/schemas/Assessment'}
severity: {$ref: '#/components/schemas/Severity'}
references:
type: array
items: {type: string}
notes: {type: string}
bug_ticket: {type: string}
advisory_qualified: {type: boolean}
created: {type: string, format: date-time}
updated: {type: string, format: date-time}
Advisory:
type: object
required: [name, type, package, group, cves, affected, fixed, severity, workaround, impact, content,
references, created, updated]
properties:
name: {$ref: '#/components/schemas/ASAName'}
type: {type: string}
package: {type: string}
group: {$ref: '#/components/schemas/GroupName'}
cves:
type: array
items: {$ref: '#/components/schemas/CVEName'}
affected: {type: string}
fixed: {type: string, nullable: true}
severity: {$ref: '#/components/schemas/Severity'}
workaround: {type: string}
impact: {type: string}
content: {type: string}
references:
type: array
items: {type: string}
created: {type: string, format: date-time}
updated: {type: string, format: date-time}
description: Published advisory only. Group metadata is current; content is the stored publication text.
AdvisoryType:
type: string
enum:
- multiple issues
- access restriction bypass
- arbitrary code execution
- arbitrary command execution
- arbitrary file overwrite
- arbitrary filesystem access
- arbitrary file upload
- authentication bypass
- certificate verification bypass
- content spoofing
- cross-site request forgery
- cross-site scripting
- denial of service
- directory traversal
- incorrect calculation
- information disclosure
- insufficient validation
- man-in-the-middle
- open redirect
- private key recovery
- privilege escalation
- proxy injection
- same-origin policy bypass
- sandbox escape
- session hijacking
- signature forgery
- silent downgrade
- sql injection
- time alteration
- url request injection
- xml external entity injection
IntakeCreate:
type: object
additionalProperties: false
required: [title, source]
description: Nonblank title/source; optional text defaults to empty, references to [], CVE to null.
Source identifies a message or archive; it need not be a URL. The total request limit is 65536 bytes.
properties:
title: {type: string, minLength: 1, maxLength: 255}
source: {type: string, minLength: 1, maxLength: 2048}
cve_name: {type: string, nullable: true, maxLength: 64, pattern: '^CVE-[0-9]{4}-[0-9]{4,}$'}
evidence: {type: string, maxLength: 65536, description: Private evidence; never copied to a public CVE.}
description: {$ref: '#/components/schemas/Text'}
references: {$ref: '#/components/schemas/References'}
IntakeReceipt:
type: object
required: [id, state, revision, cve_name, promoted_cve, review_url, created]
properties:
id: {type: integer}
state: {type: string, enum: [pending, approved, rejected]}
revision: {type: integer}
cve_name: {type: string, nullable: true}
promoted_cve: {type: string, nullable: true}
review_url: {type: string, description: Relative browser URL; reporter login required.}
created: {type: string, format: date-time}
DraftCreate:
type: object
additionalProperties: false
properties:
type: {$ref: '#/components/schemas/AdvisoryType'}
DraftPatch:
type: object
additionalProperties: false
minProperties: 1
properties:
type: {$ref: '#/components/schemas/AdvisoryType'}
workaround: {$ref: '#/components/schemas/Text'}
impact: {$ref: '#/components/schemas/Text'}
Draft:
type: object
required: [name, type, package, group, workaround, impact, content, updated, publication]
properties:
name: {$ref: '#/components/schemas/ASAName'}
type: {type: string}
package: {type: string}
group: {$ref: '#/components/schemas/GroupName'}
workaround: {type: string}
impact: {type: string}
content: {type: string}
updated: {type: string, format: date-time}
publication:
type: string
enum: [scheduled]
description: Private generated preview; content is derived from current CVE/AVG data, not directly writable.
DraftBatch:
type: object
required: [items]
properties:
items:
type: array
items: {$ref: '#/components/schemas/Draft'}
Change:
type: object
required: [resource, name, deleted]
properties:
resource:
type: string
enum: [cves, groups, advisories]
name: {type: string}
deleted: {type: boolean}
Changes:
type: object
required: [items, next_cursor, has_more]
properties:
items:
type: array
items: {$ref: '#/components/schemas/Change'}
next_cursor: {type: string, pattern: '^[0-9]+$'}
has_more: {type: boolean}
CVEPage:
type: object
required: [items, next_cursor]
properties:
items:
type: array
items: {$ref: '#/components/schemas/CVE'}
next_cursor: {type: string, nullable: true}
PackageSnapshot:
type: object
required: [items]
properties:
items:
type: array
items: {$ref: '#/components/schemas/Package'}
PackagePage:
type: object
required: [items, next_cursor]
properties:
items:
type: array
items: {$ref: '#/components/schemas/Package'}
next_cursor: {type: string, nullable: true}
GroupPage:
type: object
required: [items, next_cursor]
properties:
items:
type: array
items: {$ref: '#/components/schemas/Group'}
next_cursor: {type: string, nullable: true}
AdvisoryPage:
type: object
required: [items, next_cursor]
properties:
items:
type: array
items: {$ref: '#/components/schemas/Advisory'}
next_cursor: {type: string, nullable: true}
parameters:
IdempotencyKey:
name: Idempotency-Key
in: header
required: true
schema: {type: string, minLength: 1, maxLength: 128, pattern: '^[A-Za-z0-9._:-]{1,128}$'}
Limit:
name: limit
in: query
schema: {type: integer, minimum: 1, maximum: 100, default: 50}
NumericAfter:
name: after
in: query
schema: {type: string, pattern: '^[0-9]{1,18}$'}
description: Opaque decimal cursor returned by the previous page; use the same filters.
CVEAfter:
name: after
in: query
schema: {$ref: '#/components/schemas/CVEName'}
description: Exclusive lexical CVE identifier cursor.
ASAAfter:
name: after
in: query
schema: {$ref: '#/components/schemas/ASAName'}
description: Exclusive lexical ASA identifier cursor.
CVEName:
name: name
in: path
required: true
schema: {$ref: '#/components/schemas/CVEName'}
GroupName:
name: name
in: path
required: true
schema: {$ref: '#/components/schemas/GroupName'}
ASAName:
name: name
in: path
required: true
schema: {$ref: '#/components/schemas/ASAName'}
PackageFilter:
name: package
in: query
schema: {type: string}
IfNoneMatch:
name: If-None-Match
in: header
schema: {type: string}
description: ETag from an earlier response; a matching representation returns 304.
IfMatch:
name: If-Match
in: header
required: true
schema: {type: string}
description: 'Exact quoted strong ETag from a fresh GET. Missing: 428; stale or wildcard: 412.'
headers:
ETag:
description: Strong SHA-256 validator of the complete JSON representation.
schema: {type: string}
Location:
description: Relative detail URL of the new record.
schema: {type: string}