Support OpenJS Foundation CNA as CVE source#1093
Draft
UlisesGascon wants to merge 1 commit into
Draft
Conversation
HackerOne acts as Node.js' CNA today via /cve_requests. The OpenJS Foundation runs its own CNA and exposes an API at https://cna.openjsf.org/api.html that can issue CVEs through that channel without leaving NCU. Add an opt-in path that routes reservation and publication through the OpenJS CNA, keeping HackerOne as the source of truth for the bug-bounty workflow. Setting \`cve_source: 'openjs-cna'\` in \`.ncurc\` switches the source. The default (\`hackerone\`) preserves the existing behaviour. The CVE id is pushed back to the HackerOne report either way so the report still carries it. * \`cna\` lazy auth accessor reading \`openjs_cna_token\` and \`openjs_cna_worker_url\` from \`.ncurc\`. Both treated as encrypted secrets (\`-x\`). * Five Request methods (\`cnaDispatch\`, \`cnaPoll\`, \`cnaWaitForCompletion\`, \`cnaReserveCve\`, \`cnaPublishCve\`). * New \`git node security --publish-cve\` subcommand, scoped to the OpenJS CNA path, that POSTs a v5.2 CNA Container per reserved CVE to MITRE. Run after the release ships on nodejs.org. * \`vulnerabilities.json\` -> v5.2 CNA Container mapper. The reference URL is derived from \`releaseDate\` so the MITRE record points at the same blog-post slug \`SecurityBlog#getSlug\` produces. * Prerequisites section in \`docs/git-node.md\`. * Unit tests for transport, slug helper, and mapper. Signed-off-by: Ulises Gascon <ulisesgascongonzalez@gmail.com>
This was referenced Jun 13, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1093 +/- ##
==========================================
- Coverage 64.93% 62.27% -2.67%
==========================================
Files 45 46 +1
Lines 6938 7620 +682
==========================================
+ Hits 4505 4745 +240
- Misses 2433 2875 +442 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial (WIP) implementation proposal for supporting the future CNA API.
Related: