Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
6618b50
Bump postcss from 8.5.8 to 8.5.14
dependabot[bot] May 14, 2026
e386903
Bump fast-uri from 3.1.0 to 3.1.2
dependabot[bot] Jun 3, 2026
f6da1c0
Add expanded user map to registry org response
afoote-mitre Jun 3, 2026
d526016
Fixing lint issues
afoote-mitre Jun 3, 2026
bc01075
Add registry user expansion and update coverage
afoote-mitre Jun 4, 2026
0f5a173
Fix authenticated auth context UUID scoping
afoote-mitre Jun 10, 2026
4c84208
Fix registry org new_short_name authorization
afoote-mitre Jun 10, 2026
9dfdc49
Remove unused CVE ID org short name variable
afoote-mitre Jun 10, 2026
2822371
Refactor auth context UUID helpers
afoote-mitre Jun 10, 2026
28a590c
Allow partner_role_type arrays
afoote-mitre Jun 10, 2026
2c898c2
Mask registry org responses for PUT compatibility
afoote-mitre Jun 10, 2026
b7682e6
Fix registry user UUID logging
afoote-mitre Jun 10, 2026
7740dce
Fix registry user test lint assertions
afoote-mitre Jun 10, 2026
f05eca4
Fix user dual-write normalization
afoote-mitre Jun 10, 2026
6727449
Preserve registry org response schema fields
afoote-mitre Jun 10, 2026
7a572bd
Preserve underscore org response extension fields
afoote-mitre Jun 10, 2026
862ed5a
Merge pull request #1849 from CVEProject/af-1848
afoote-mitre Jun 11, 2026
edf63dc
Merge branch 'dev' into af-1846
afoote-mitre Jun 11, 2026
e882d9b
Merge branch 'dev' into af-1715
afoote-mitre Jun 11, 2026
f31ffda
test: use id_quota in registry org expand setup
afoote-mitre Jun 11, 2026
c1426d4
fix: limit registry org user UUID expansion
afoote-mitre Jun 11, 2026
85fafb8
Merge branch 'dev' into af-1840
afoote-mitre Jun 11, 2026
0d6ca7a
Merge branch 'dev' into af-1842
afoote-mitre Jun 11, 2026
4251800
Merge branch 'dev' into af-1845
afoote-mitre Jun 11, 2026
0087d6f
fix: normalize Secretariat conversation author names
afoote-mitre Jun 11, 2026
7122119
Merge pull request #1852 from CVEProject/af-1840
jdaigneau5 Jun 12, 2026
7ff2596
Merge branch 'dev' into af-1842
jdaigneau5 Jun 12, 2026
98d9c58
Log org update audit payload
afoote-mitre Jun 12, 2026
95aaba6
Merge branch 'dev' into af-1715
afoote-mitre Jun 12, 2026
5050ea7
Merge pull request #1851 from CVEProject/af-1842
jdaigneau5 Jun 12, 2026
14dc42c
Merge branch 'dev' into af-1715
afoote-mitre Jun 12, 2026
c315bea
Merge branch 'dev' into af-1853
afoote-mitre Jun 12, 2026
562defd
Merge branch 'dev' into af-1423
afoote-mitre Jun 12, 2026
4786e7d
Fix registry org payload UUIDs
afoote-mitre Jun 12, 2026
a8a6172
Fix registry user CRUD test syntax
afoote-mitre Jun 12, 2026
0143ef4
Return authority validation errors
afoote-mitre Jun 12, 2026
007f895
Merge pull request #1858 from CVEProject/af-1853
jdaigneau5 Jun 12, 2026
45f8668
Merge branch 'dev' into af-1856
afoote-mitre Jun 12, 2026
aa51806
Merge pull request #1859 from CVEProject/af-1856
jdaigneau5 Jun 12, 2026
d7eb46a
Merge branch 'dev' into af-1423
afoote-mitre Jun 12, 2026
6e94bf2
Merge branch 'dev' into af-1846
afoote-mitre Jun 12, 2026
4953d70
Merge branch 'dev' into af-1715
afoote-mitre Jun 12, 2026
4fe6ad2
Merge branch 'dev' into af-1845
afoote-mitre Jun 12, 2026
5a2cfad
Fix audit payload target UUIDs
afoote-mitre Jun 12, 2026
6380c3a
Fix generated test org quota fields
afoote-mitre Jun 15, 2026
a506ac0
Fix generated org advisory fields
afoote-mitre Jun 15, 2026
02adfde
Add optional Monday org migration flow
jdalphond-mitre Jun 16, 2026
e13de55
Merge pull request #1847 from CVEProject/af-1845
david-rocca Jun 16, 2026
90b7532
Adding private contacts from monday export.
jdalphond-mitre Jun 16, 2026
7c83671
Merge branch 'dev' into af-1715
david-rocca Jun 16, 2026
1a6cbd9
Merge branch 'dev' into jd_monday
david-rocca Jun 16, 2026
e3dcfec
Fixing artifactory links to npmjs
jdalphond-mitre Jun 16, 2026
14a640d
Merge pull request #1863 from CVEProject/jd_monday
david-rocca Jun 16, 2026
de960ad
Bump form-data from 4.0.5 to 4.0.6
dependabot[bot] Jun 16, 2026
617a976
Merge branch 'dev' into af-1715
david-rocca Jun 16, 2026
759302a
Merge pull request #1864 from CVEProject/dependabot/npm_and_yarn/form…
david-rocca Jun 16, 2026
c4bb94b
Merge branch 'dev' into af-1423
david-rocca Jun 16, 2026
6f894ea
Merge branch 'dev' into af-1846
david-rocca Jun 16, 2026
dd1125e
Merge branch 'dev' into dependabot/npm_and_yarn/fast-uri-3.1.2
david-rocca Jun 16, 2026
fc0a674
Merge pull request #1806 from CVEProject/dependabot/npm_and_yarn/fast…
david-rocca Jun 16, 2026
23b2b73
Merge branch 'dev' into dependabot/npm_and_yarn/postcss-8.5.13
david-rocca Jun 16, 2026
59f62b9
Bump qs and express
dependabot[bot] Jun 16, 2026
f460319
Fix registry org update auth error
afoote-mitre Jun 16, 2026
5347a83
Update OpenAPI server URL
afoote-mitre Jun 16, 2026
7240e34
Merge pull request #1796 from CVEProject/dependabot/npm_and_yarn/post…
david-rocca Jun 16, 2026
7427f0f
Merge branch 'dev' into dependabot/npm_and_yarn/multi-f792d6d6d9
david-rocca Jun 16, 2026
e2f9eef
Sanitize legacy org UUID responses
afoote-mitre Jun 16, 2026
9849b0b
Merge pull request #1825 from CVEProject/dependabot/npm_and_yarn/mult…
david-rocca Jun 16, 2026
6c5a768
Merge branch 'dev' into af-1846
david-rocca Jun 16, 2026
af7d98c
Return empty audit history for missing org
afoote-mitre Jun 16, 2026
151bee0
Merge pull request #1850 from CVEProject/af-1846
david-rocca Jun 16, 2026
95f8efc
Merge branch 'dev' into af-1862
afoote-mitre Jun 16, 2026
d69428c
Merge pull request #1865 from CVEProject/af-1862
david-rocca Jun 16, 2026
434ad25
Fixing partner_role_type to be an array during migration
jdalphond-mitre Jun 16, 2026
72351f1
Merge branch 'dev' into af-1715
afoote-mitre Jun 16, 2026
7bf82f8
Fix registry org get single auth context tests
afoote-mitre Jun 16, 2026
a6d0939
Merge pull request #1866 from CVEProject/jd_monday
david-rocca Jun 16, 2026
15c4385
Merge branch 'dev' into af-1715
david-rocca Jun 16, 2026
d371eb3
Merge pull request #1835 from CVEProject/af-1715
david-rocca Jun 16, 2026
986b1de
Merge branch 'dev' into af-1423
afoote-mitre Jun 16, 2026
ab82ed7
Fix registry org controller auth context test
afoote-mitre Jun 16, 2026
edcdd5b
Remove unsupported registry user membership fields
afoote-mitre Jun 16, 2026
e1418bc
Remove unused registry user update helper
afoote-mitre Jun 16, 2026
092a325
Merge pull request #1838 from CVEProject/af-1423
david-rocca Jun 16, 2026
b463177
Fixing a bug + adding a new version number
david-rocca Jun 17, 2026
a2b6860
Fixing failing test
david-rocca Jun 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,7 @@ commit-message.txt
# configuration) and provide an example instead
docker/.docker-env

**/export.xlsx
**/poc_admin_report.csv
**/~$*.xlsx
src/scripts/importDb.sh
28 changes: 26 additions & 2 deletions api-docs/openapi.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.2",
"info": {
"version": "2.8.0",
"version": "2.8.1",
"title": "CVE Services API",
"description": "The CVE Services API supports automation tooling for the CVE Program. Credentials are required for most service endpoints. Representatives of <a href='https://www.cve.org/ProgramOrganization/CNAs'>CVE Numbering Authorities (CNAs)</a> should use one of the methods below to obtain credentials: <ul><li>If your organization already has an Organizational Administrator (OA) account for the CVE Services, ask your admin for credentials</li> <li>Contact your Root (<a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/Google'>Google</a>, <a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/INCIBE'>INCIBE</a>, <a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/jpcert'>JPCERT/CC</a>, or <a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/redhat'>Red Hat</a>) or Top-Level Root (<a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/icscert'>CISA ICS</a> or <a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/mitre'>MITRE</a>) to request credentials </ul> <p>CVE data is to be in the JSON 5.2 CVE Record format. Details of the JSON 5.2 schema are located <a href='https://github.com/CVEProject/cve-schema/releases/tag/v5.2.0' target='_blank'>here</a>.</p> <a href='https://cveform.mitre.org/' class='link' target='_blank'>Contact the CVE Services team</a>",
"contact": {
Expand All @@ -11,7 +11,7 @@
},
"servers": [
{
"url": "urlplaceholder"
"url": "https://cveawg-dev.mitre.org/api"
}
],
"paths": {
Expand Down Expand Up @@ -2318,6 +2318,30 @@
},
"description": "The shortname or UUID of the registry organization"
},
{
"name": "expand",
"in": "query",
"description": "Optional expanded related data. Accepted value: users.",
"required": false,
"schema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"example": "string"
},
"enum": {
"type": "array",
"example": [
"users"
],
"items": {
"type": "string"
}
}
}
}
},
{
"$ref": "#/components/parameters/apiEntityHeader"
},
Expand Down
485 changes: 300 additions & 185 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cve-services",
"author": "Automation Working Group",
"version": "2.8.0",
"version": "2.8.1",
"license": "(CC0)",
"devDependencies": {
"@faker-js/faker": "^7.6.0",
Expand All @@ -23,7 +23,8 @@
"mocha": "^10.8.2",
"nyc": "^15.1.0",
"sinon": "^15.0.4",
"standard": "^16.0.3"
"standard": "^16.0.3",
"xlsx": "^0.18.5"
},
"dependencies": {
"ajv": "^8.6.2",
Expand All @@ -34,7 +35,7 @@
"cors": "^2.8.5",
"crypto-random-string": "^3.3.1",
"dotenv": "^5.0.1",
"express": "^4.22.1",
"express": "^4.22.2",
"express-jsonschema": "^1.1.6",
"express-rate-limit": "^6.5.2",
"express-validator": "^6.14.2",
Expand Down Expand Up @@ -81,6 +82,7 @@
"lint:test-utils": "node node_modules/eslint/bin/eslint.js test-utils/ --fix",
"populate:dev": "NODE_ENV=development node-dev src/scripts/populate.js",
"migrate:dev": "NODE_ENV=development MONGO_CONN_STRING=mongodb://localhost:27017 MONGO_DB_NAME=cve_dev node-dev src/scripts/migrate.js",
"migrate:dev:monday": "NODE_ENV=development MONGO_CONN_STRING=mongodb://localhost:27017 MONGO_DB_NAME=cve_dev node-dev src/scripts/MondayMigrate.js",
"migrate:test-black-box": "NODE_ENV=development MONGO_CONN_STRING=mongodb://docdb:27017 MONGO_DB_NAME=cve_dev node-dev src/scripts/migrate.js",
"migrate:test": "NODE_ENV=test MONGO_CONN_STRING=mongodb://localhost:27017 MONGO_DB_NAME=cve_test node-dev src/scripts/migrate.js",
"populate:stage": "NODE_ENV=staging node src/scripts/populate.js",
Expand Down
10 changes: 9 additions & 1 deletion schemas/registry-org/BaseOrg.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"ROOT"
]
},
"partnerRoleType": {
"partnerRoleTypeValue": {
"description": "The type of role a partner holds",
"type": "string",
"enum": [
Expand All @@ -57,6 +57,14 @@
"Researcher",
"Vendor"
]
},
"partnerRoleType": {
"description": "The types of roles a partner holds",
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/definitions/partnerRoleTypeValue"
}
}
},
"properties": {
Expand Down
30 changes: 17 additions & 13 deletions schemas/registry-org/create-registry-org-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,23 @@
"description": "Indicates if part of the CNA discussion list"
},
"partner_role_type": {
"type": "string",
"enum": [
"",
"Bug Bounty Provider",
"CERT",
"Consortium",
"Hosted Service",
"N/A",
"Open Source",
"Researcher",
"Vendor"
],
"description": "The type of role a partner holds"
"type": "array",
"items": {
"type": "string",
"enum": [
"",
"Bug Bounty Provider",
"CERT",
"Consortium",
"Hosted Service",
"N/A",
"Open Source",
"Researcher",
"Vendor"
]
},
"uniqueItems": true,
"description": "The types of roles a partner holds"
},
"partner_number": {
"type": "string",
Expand Down
50 changes: 50 additions & 0 deletions schemas/registry-org/get-registry-org-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@
},
"phone": {
"type": "string"
},
"additional_contacts": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of additional contact users"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -220,6 +227,49 @@
}
},
"description": "List of conversation messages associated with the organization"
},
"_userMap": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"username": {
"type": "string",
"description": "User's identifier or username"
},
"name": {
"type": "object",
"properties": {
"first": {
"type": "string",
"description": "User's first name"
},
"last": {
"type": "string",
"description": "User's last name"
},
"middle": {
"type": "string",
"description": "User's middle name"
},
"suffix": {
"type": "string",
"description": "User's name suffix"
}
}
},
"org": {
"type": "object",
"properties": {
"short_name": {
"type": "string",
"description": "Short name of the organization associated with the user"
}
}
}
}
},
"description": "Map of expanded user UUIDs to display metadata, included when expand=users is requested"
}
}
}
30 changes: 17 additions & 13 deletions schemas/registry-org/update-registry-org-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,23 @@
"description": "Indicates if part of the CNA discussion list"
},
"partner_role_type": {
"type": "string",
"enum": [
"",
"Bug Bounty Provider",
"CERT",
"Consortium",
"Hosted Service",
"N/A",
"Open Source",
"Researcher",
"Vendor"
],
"description": "The type of role a partner holds"
"type": "array",
"items": {
"type": "string",
"enum": [
"",
"Bug Bounty Provider",
"CERT",
"Consortium",
"Hosted Service",
"N/A",
"Open Source",
"Researcher",
"Vendor"
]
},
"uniqueItems": true,
"description": "The types of roles a partner holds"
},
"partner_number": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion schemas/registry-user/BaseUser.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@
"required": [
"username"
]
}
}
14 changes: 0 additions & 14 deletions schemas/registry-user/create-registry-user-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,6 @@
},
"required": ["first", "last"]
},
"org_affiliations": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of organizations the user is affiliated with"
},
"cve_program_org_membership": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of CVE program organizations the user is a member of"
},
"authority": {
"type": "object",
"properties": {
Expand Down
16 changes: 1 addition & 15 deletions schemas/registry-user/create-registry-user-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,6 @@
},
"required": ["first", "last"]
},
"org_affiliations": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of organizations the user is affiliated with"
},
"cve_program_org_membership": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of CVE program organizations the user is a member of"
},
"authority": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -115,4 +101,4 @@
}
}
}
}
}
16 changes: 1 addition & 15 deletions schemas/registry-user/get-registry-user-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,6 @@
"enum": ["ADMIN"],
"description": "The role of the user in the organization. Currently only 'ADMIN' is supported."
},
"org_affiliations": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of organizations the user is affiliated with"
},
"cve_program_org_membership": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of CVE program organizations the user is a member of"
},
"authority": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -127,4 +113,4 @@
"description": "Timestamp of the last update to the user data"
}
}
}
}
14 changes: 0 additions & 14 deletions schemas/registry-user/update-registry-user-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@
}
}
},
"org_affiliations": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of organizations the user is affiliated with"
},
"cve_program_org_membership": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of CVE program organizations the user is a member of"
},
"authority": {
"type": "object",
"properties": {
Expand Down
16 changes: 1 addition & 15 deletions schemas/registry-user/update-registry-user-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,6 @@
},
"required": ["first", "last"]
},
"org_affiliations": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of organizations the user is affiliated with"
},
"cve_program_org_membership": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of CVE program organizations the user is a member of"
},
"authority": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -115,4 +101,4 @@
}
}
}
}
}
Loading
Loading