@ktpartners/dgs-platform 3.0.4 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +115 -0
- package/README.md +8 -1
- package/agents/dgs-executor.md +124 -3
- package/agents/dgs-idea-researcher.md +447 -0
- package/agents/dgs-plan-checker.md +32 -0
- package/agents/dgs-planner.md +41 -8
- package/bin/install.js +44 -0
- package/commands/dgs/audit-milestone.md +2 -1
- package/commands/dgs/diff-report.md +124 -0
- package/commands/dgs/new-project.md +8 -21
- package/commands/dgs/package-scan.md +43 -0
- package/commands/dgs/research-idea.md +1 -0
- package/commands/dgs/switch-project.md +13 -0
- package/deliver-great-systems/bin/dgs-tools.cjs +120 -5
- package/deliver-great-systems/bin/lib/audit-tolerance.cjs +77 -0
- package/deliver-great-systems/bin/lib/audit-tolerance.test.cjs +101 -0
- package/deliver-great-systems/bin/lib/commands.cjs +311 -16
- package/deliver-great-systems/bin/lib/commands.test.cjs +115 -0
- package/deliver-great-systems/bin/lib/commit-verify.test.cjs +236 -0
- package/deliver-great-systems/bin/lib/config.cjs +41 -0
- package/deliver-great-systems/bin/lib/config.test.cjs +309 -0
- package/deliver-great-systems/bin/lib/core.cjs +7 -3
- package/deliver-great-systems/bin/lib/core.test.cjs +79 -1
- package/deliver-great-systems/bin/lib/fast-routing.cjs +199 -0
- package/deliver-great-systems/bin/lib/fast-routing.test.cjs +108 -0
- package/deliver-great-systems/bin/lib/final-commit-precondition.test.cjs +87 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/bundler-audit-gemfile.json +21 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/gate-parity-expected.md +186 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/gate-parity-runresult.json +235 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/govulncheck-import.json +3 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/npm-audit-v10.json +37 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/osv-clean.json +3 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/osv-vulns.json +77 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/pip-audit-requirements.json +28 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/snyk-lodash.json +30 -0
- package/deliver-great-systems/bin/lib/fixtures/package-scan/snyk-workspaces.json +55 -0
- package/deliver-great-systems/bin/lib/frontmatter.cjs +1 -1
- package/deliver-great-systems/bin/lib/governance.cjs +211 -0
- package/deliver-great-systems/bin/lib/governance.test.cjs +339 -0
- package/deliver-great-systems/bin/lib/health-untracked-phase.test.cjs +269 -0
- package/deliver-great-systems/bin/lib/init.cjs +56 -27
- package/deliver-great-systems/bin/lib/init.test.cjs +212 -5
- package/deliver-great-systems/bin/lib/jobs.cjs +7 -4
- package/deliver-great-systems/bin/lib/milestone.cjs +101 -3
- package/deliver-great-systems/bin/lib/milestone.test.cjs +203 -0
- package/deliver-great-systems/bin/lib/package-adapters.cjs +530 -0
- package/deliver-great-systems/bin/lib/package-adapters.test.cjs +618 -0
- package/deliver-great-systems/bin/lib/package-ecosystems.cjs +350 -0
- package/deliver-great-systems/bin/lib/package-ecosystems.test.cjs +348 -0
- package/deliver-great-systems/bin/lib/package-runner.cjs +199 -0
- package/deliver-great-systems/bin/lib/package-runner.test.cjs +198 -0
- package/deliver-great-systems/bin/lib/package-scan-provenance.cjs +56 -0
- package/deliver-great-systems/bin/lib/package-scan-provenance.test.cjs +103 -0
- package/deliver-great-systems/bin/lib/package-scan-report.cjs +1140 -0
- package/deliver-great-systems/bin/lib/package-scan-report.test.cjs +1963 -0
- package/deliver-great-systems/bin/lib/package-scan-skill.cjs +96 -0
- package/deliver-great-systems/bin/lib/package-scan-skill.test.cjs +136 -0
- package/deliver-great-systems/bin/lib/package-scan.cjs +919 -0
- package/deliver-great-systems/bin/lib/package-scan.test.cjs +2147 -0
- package/deliver-great-systems/bin/lib/phase.cjs +18 -1
- package/deliver-great-systems/bin/lib/plan-number-validity.test.cjs +48 -0
- package/deliver-great-systems/bin/lib/projects.cjs +38 -3
- package/deliver-great-systems/bin/lib/projects.test.cjs +112 -2
- package/deliver-great-systems/bin/lib/quick.cjs +178 -23
- package/deliver-great-systems/bin/lib/quick.test.cjs +138 -4
- package/deliver-great-systems/bin/lib/repos.cjs +12 -12
- package/deliver-great-systems/bin/lib/review.cjs +1821 -0
- package/deliver-great-systems/bin/lib/state.cjs +7 -3
- package/deliver-great-systems/bin/lib/summary-frontmatter.cjs +54 -0
- package/deliver-great-systems/bin/lib/summary-frontmatter.test.cjs +78 -0
- package/deliver-great-systems/bin/lib/sweep-scope.test.cjs +263 -0
- package/deliver-great-systems/bin/lib/verify.cjs +118 -6
- package/deliver-great-systems/bin/lib/verify.test.cjs +82 -0
- package/deliver-great-systems/bin/lib/wave-0-template-rename.test.cjs +40 -0
- package/deliver-great-systems/bin/lib/worktrees.cjs +27 -1
- package/deliver-great-systems/bin/lib/worktrees.test.cjs +76 -0
- package/deliver-great-systems/references/agent-step-reliability.md +60 -0
- package/deliver-great-systems/references/conflict-resolution.md +4 -0
- package/deliver-great-systems/references/context-tiers.md +4 -0
- package/deliver-great-systems/references/package-scan-config.md +151 -0
- package/deliver-great-systems/references/questioning.md +0 -30
- package/deliver-great-systems/references/spec-review-loop.md +1 -2
- package/deliver-great-systems/references/workflow-conventions.md +29 -0
- package/deliver-great-systems/skills/dgs-tests/package-scan.md +44 -0
- package/deliver-great-systems/templates/REVIEW.md +35 -0
- package/deliver-great-systems/templates/VALIDATION.md +1 -1
- package/deliver-great-systems/templates/claude-md.md +11 -0
- package/deliver-great-systems/templates/package-scan-report.md +108 -0
- package/deliver-great-systems/templates/project.md +6 -170
- package/deliver-great-systems/templates/summary.md +3 -1
- package/deliver-great-systems/workflows/add-phase.md +5 -0
- package/deliver-great-systems/workflows/audit-milestone.md +66 -10
- package/deliver-great-systems/workflows/cancel-job.md +1 -1
- package/deliver-great-systems/workflows/codereview.md +103 -9
- package/deliver-great-systems/workflows/complete-milestone.md +26 -7
- package/deliver-great-systems/workflows/complete-quick.md +40 -2
- package/deliver-great-systems/workflows/discuss-phase.md +3 -2
- package/deliver-great-systems/workflows/execute-phase.md +89 -2
- package/deliver-great-systems/workflows/execute-plan.md +10 -1
- package/deliver-great-systems/workflows/help.md +51 -18
- package/deliver-great-systems/workflows/import-spec.md +65 -7
- package/deliver-great-systems/workflows/init-product.md +46 -152
- package/deliver-great-systems/workflows/new-milestone.md +115 -14
- package/deliver-great-systems/workflows/new-project.md +60 -331
- package/deliver-great-systems/workflows/package-scan.md +59 -0
- package/deliver-great-systems/workflows/plan-phase.md +79 -1
- package/deliver-great-systems/workflows/quick-complete.md +40 -2
- package/deliver-great-systems/workflows/quick.md +183 -10
- package/deliver-great-systems/workflows/research-idea.md +80 -142
- package/deliver-great-systems/workflows/run-job.md +21 -35
- package/deliver-great-systems/workflows/settings.md +13 -77
- package/deliver-great-systems/workflows/write-spec.md +9 -11
- package/hooks/dist/dgs-enforce-discipline.js +196 -0
- package/package.json +1 -1
- package/scripts/build-hooks.js +1 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: "package-scan"
|
|
3
|
+
date: "2026-04-18"
|
|
4
|
+
tool: "mixed"
|
|
5
|
+
snyk_org: null
|
|
6
|
+
repos_scanned: 3
|
|
7
|
+
critical: 1
|
|
8
|
+
high: 1
|
|
9
|
+
medium: 2
|
|
10
|
+
low: 0
|
|
11
|
+
duration: 5
|
|
12
|
+
findings:
|
|
13
|
+
- id: "pkg-001"
|
|
14
|
+
test_source: "package-scan"
|
|
15
|
+
gap_type: "dependency-security"
|
|
16
|
+
severity: "high"
|
|
17
|
+
resource_id: "lodash@4.17.15"
|
|
18
|
+
repo: "api"
|
|
19
|
+
manifest_path: "packages/api/package.json"
|
|
20
|
+
title: "Command Injection in lodash"
|
|
21
|
+
description: "Versions of lodash prior to 4.17.21 are vulnerable to Command Injection."
|
|
22
|
+
remediation: "upgrade to lodash@4.17.21"
|
|
23
|
+
reference: "https://snyk.io/vuln/SNYK-JS-LODASH-1040724"
|
|
24
|
+
cve: "CVE-2021-23337"
|
|
25
|
+
cvss: 7.2
|
|
26
|
+
dependency_chain:
|
|
27
|
+
- "api@1.0.0"
|
|
28
|
+
- "lodash@4.17.15"
|
|
29
|
+
chain_available: true
|
|
30
|
+
direct_or_transitive: "direct"
|
|
31
|
+
tool: "snyk"
|
|
32
|
+
introduced_in_commit: null
|
|
33
|
+
introduced_in_plan: null
|
|
34
|
+
- id: "pkg-002"
|
|
35
|
+
test_source: "package-scan"
|
|
36
|
+
gap_type: "dependency-security"
|
|
37
|
+
severity: "medium"
|
|
38
|
+
resource_id: "gpl-licensed-dep@2.0.0"
|
|
39
|
+
repo: "api"
|
|
40
|
+
manifest_path: "packages/api/package.json"
|
|
41
|
+
title: "Prototype Pollution in gpl-licensed-dep"
|
|
42
|
+
description: |-
|
|
43
|
+
Multi-line
|
|
44
|
+
description with
|
|
45
|
+
embedded newlines.
|
|
46
|
+
remediation: null
|
|
47
|
+
reference: "https://example.com/advisory"
|
|
48
|
+
cve: null
|
|
49
|
+
cvss: null
|
|
50
|
+
dependency_chain: null
|
|
51
|
+
chain_available: false
|
|
52
|
+
direct_or_transitive: "transitive"
|
|
53
|
+
tool: "snyk"
|
|
54
|
+
introduced_in_commit: null
|
|
55
|
+
introduced_in_plan: null
|
|
56
|
+
- id: "pkg-002-lic"
|
|
57
|
+
test_source: "package-scan"
|
|
58
|
+
gap_type: "dependency-licence"
|
|
59
|
+
severity: "high"
|
|
60
|
+
resource_id: "gpl-licensed-dep@2.0.0"
|
|
61
|
+
repo: "api"
|
|
62
|
+
manifest_path: "packages/api/package.json"
|
|
63
|
+
title: "Restrictive licence: GPL-3.0"
|
|
64
|
+
description: "Package gpl-licensed-dep@2.0.0 is licensed under GPL-3.0. Using this dependency may impose copyleft obligations on your project."
|
|
65
|
+
remediation: "Review licence compatibility or replace with a permissive-licensed alternative."
|
|
66
|
+
reference: null
|
|
67
|
+
cve: null
|
|
68
|
+
cvss: null
|
|
69
|
+
dependency_chain: null
|
|
70
|
+
chain_available: false
|
|
71
|
+
direct_or_transitive: "transitive"
|
|
72
|
+
tool: "snyk"
|
|
73
|
+
introduced_in_commit: null
|
|
74
|
+
introduced_in_plan: null
|
|
75
|
+
- id: "pkg-003"
|
|
76
|
+
test_source: "package-scan"
|
|
77
|
+
gap_type: "dependency-security"
|
|
78
|
+
severity: "medium"
|
|
79
|
+
resource_id: "requests@2.25.0"
|
|
80
|
+
repo: "worker"
|
|
81
|
+
manifest_path: null
|
|
82
|
+
title: "Unintended leak of Proxy-Authorization header"
|
|
83
|
+
description: "Requests is a HTTP library."
|
|
84
|
+
remediation: "pip install requests==2.31.0"
|
|
85
|
+
reference: null
|
|
86
|
+
cve: "CVE-2023-32681"
|
|
87
|
+
cvss: null
|
|
88
|
+
dependency_chain: null
|
|
89
|
+
chain_available: false
|
|
90
|
+
direct_or_transitive: null
|
|
91
|
+
tool: "pip-audit"
|
|
92
|
+
introduced_in_commit: null
|
|
93
|
+
introduced_in_plan: null
|
|
94
|
+
- id: "pkg-004"
|
|
95
|
+
test_source: "package-scan"
|
|
96
|
+
gap_type: "dependency-security"
|
|
97
|
+
severity: "critical"
|
|
98
|
+
resource_id: "express"
|
|
99
|
+
repo: "_product_root"
|
|
100
|
+
manifest_path: null
|
|
101
|
+
title: "express Critical vulnerability"
|
|
102
|
+
description: null
|
|
103
|
+
remediation: null
|
|
104
|
+
reference: "https://github.com/advisories/GHSA-xxxx"
|
|
105
|
+
cve: null
|
|
106
|
+
cvss: 9.8
|
|
107
|
+
dependency_chain: null
|
|
108
|
+
chain_available: false
|
|
109
|
+
direct_or_transitive: "direct"
|
|
110
|
+
tool: "npm-audit"
|
|
111
|
+
introduced_in_commit: null
|
|
112
|
+
introduced_in_plan: null
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
# Package Scan Report
|
|
116
|
+
|
|
117
|
+
## Summary
|
|
118
|
+
|
|
119
|
+
| Repo | Ecosystem | Tool | .snyk policy | Critical | High | Medium | Low | Status |
|
|
120
|
+
|------|-----------|------|--------------|----------|------|--------|-----|--------|
|
|
121
|
+
| api | node | snyk | — | 0 | 1 | 1 | 0 | ok |
|
|
122
|
+
| worker | python | pip-audit | — | 0 | 0 | 1 | 0 | ok |
|
|
123
|
+
| _product_root | node | npm-audit | — | 1 | 0 | 0 | 0 | ok |
|
|
124
|
+
|
|
125
|
+
## Licence Compliance
|
|
126
|
+
|
|
127
|
+
> Licence scan incomplete -- use Snyk for full coverage.
|
|
128
|
+
|
|
129
|
+
## Critical
|
|
130
|
+
|
|
131
|
+
### _product_root: express — express Critical vulnerability
|
|
132
|
+
- **CVE:** unavailable
|
|
133
|
+
- **CVSS:** 9.8
|
|
134
|
+
- **Tool:** npm-audit
|
|
135
|
+
- **Manifest:** repo root
|
|
136
|
+
- **Direct/Transitive:** direct
|
|
137
|
+
- **Dependency chain:** unavailable (chain_available: false — recommend Snyk for full chain analysis)
|
|
138
|
+
- **Fix:** no upgrade path available — manual review required
|
|
139
|
+
- **Reference:** https://github.com/advisories/GHSA-xxxx
|
|
140
|
+
- **Introduced in:** unknown
|
|
141
|
+
|
|
142
|
+
## High
|
|
143
|
+
|
|
144
|
+
### api: lodash@4.17.15 — Command Injection in lodash
|
|
145
|
+
- **CVE:** CVE-2021-23337
|
|
146
|
+
- **CVSS:** 7.2
|
|
147
|
+
- **Tool:** snyk
|
|
148
|
+
- **Manifest:** `packages/api/package.json`
|
|
149
|
+
- **Direct/Transitive:** direct
|
|
150
|
+
- **Dependency chain:** api@1.0.0 → lodash@4.17.15
|
|
151
|
+
- **Fix:** upgrade to lodash@4.17.21
|
|
152
|
+
- **Reference:** https://snyk.io/vuln/SNYK-JS-LODASH-1040724
|
|
153
|
+
- **Introduced in:** unknown
|
|
154
|
+
|
|
155
|
+
> Versions of lodash prior to 4.17.21 are vulnerable to Command Injection.
|
|
156
|
+
|
|
157
|
+
## Medium
|
|
158
|
+
|
|
159
|
+
### api: gpl-licensed-dep@2.0.0 — Prototype Pollution in gpl-licensed-dep
|
|
160
|
+
- **CVE:** unavailable
|
|
161
|
+
- **CVSS:** unavailable
|
|
162
|
+
- **Tool:** snyk
|
|
163
|
+
- **Manifest:** `packages/api/package.json`
|
|
164
|
+
- **Direct/Transitive:** transitive
|
|
165
|
+
- **Dependency chain:** unavailable (chain_available: false — recommend Snyk for full chain analysis)
|
|
166
|
+
- **Fix:** no upgrade path available — manual review required
|
|
167
|
+
- **Reference:** https://example.com/advisory
|
|
168
|
+
- **Introduced in:** unknown
|
|
169
|
+
|
|
170
|
+
> Multi-line
|
|
171
|
+
> description with
|
|
172
|
+
> embedded newlines.
|
|
173
|
+
|
|
174
|
+
### worker: requests@2.25.0 — Unintended leak of Proxy-Authorization header
|
|
175
|
+
- **CVE:** CVE-2023-32681
|
|
176
|
+
- **CVSS:** unavailable
|
|
177
|
+
- **Tool:** pip-audit
|
|
178
|
+
- **Manifest:** repo root
|
|
179
|
+
- **Direct/Transitive:** unknown
|
|
180
|
+
- **Dependency chain:** unavailable (chain_available: false — recommend Snyk for full chain analysis)
|
|
181
|
+
- **Fix:** pip install requests==2.31.0
|
|
182
|
+
- **Reference:** unavailable
|
|
183
|
+
- **Introduced in:** unknown
|
|
184
|
+
|
|
185
|
+
> Requests is a HTTP library.
|
|
186
|
+
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
{
|
|
2
|
+
"exit_code": 0,
|
|
3
|
+
"tool_per_target": {
|
|
4
|
+
"api": "snyk",
|
|
5
|
+
"worker": "pip-audit",
|
|
6
|
+
"_product_root": "npm-audit"
|
|
7
|
+
},
|
|
8
|
+
"repo_results": [
|
|
9
|
+
{
|
|
10
|
+
"repo": "api",
|
|
11
|
+
"ecosystem": "node",
|
|
12
|
+
"tool_used": "snyk",
|
|
13
|
+
"outcome": "ok",
|
|
14
|
+
"durationMs": 2400,
|
|
15
|
+
"findings": [
|
|
16
|
+
{
|
|
17
|
+
"id": "pkg-001",
|
|
18
|
+
"tool": "snyk",
|
|
19
|
+
"ecosystem": "node",
|
|
20
|
+
"repo": "api",
|
|
21
|
+
"manifest_path": "packages/api/package.json",
|
|
22
|
+
"package_name": "lodash",
|
|
23
|
+
"installed_version": "4.17.15",
|
|
24
|
+
"vulnerability": {
|
|
25
|
+
"cve": "CVE-2021-23337",
|
|
26
|
+
"title": "Command Injection in lodash",
|
|
27
|
+
"description": "Versions of lodash prior to 4.17.21 are vulnerable to Command Injection.",
|
|
28
|
+
"reference_url": "https://snyk.io/vuln/SNYK-JS-LODASH-1040724"
|
|
29
|
+
},
|
|
30
|
+
"severity": "high",
|
|
31
|
+
"cvss_score": 7.2,
|
|
32
|
+
"cvss_vector": null,
|
|
33
|
+
"direct_or_transitive": "direct",
|
|
34
|
+
"dependency_chain": [
|
|
35
|
+
{ "name": "api", "version": "1.0.0" },
|
|
36
|
+
{ "name": "lodash", "version": "4.17.15" }
|
|
37
|
+
],
|
|
38
|
+
"chain_available": true,
|
|
39
|
+
"fix_version": "4.17.21",
|
|
40
|
+
"remediation": "upgrade to lodash@4.17.21",
|
|
41
|
+
"licence": null
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "pkg-002",
|
|
45
|
+
"tool": "snyk",
|
|
46
|
+
"ecosystem": "node",
|
|
47
|
+
"repo": "api",
|
|
48
|
+
"manifest_path": "packages/api/package.json",
|
|
49
|
+
"package_name": "gpl-licensed-dep",
|
|
50
|
+
"installed_version": "2.0.0",
|
|
51
|
+
"vulnerability": {
|
|
52
|
+
"cve": null,
|
|
53
|
+
"title": "Prototype Pollution in gpl-licensed-dep",
|
|
54
|
+
"description": "Multi-line\ndescription with\nembedded newlines.",
|
|
55
|
+
"reference_url": "https://example.com/advisory"
|
|
56
|
+
},
|
|
57
|
+
"severity": "moderate",
|
|
58
|
+
"cvss_score": null,
|
|
59
|
+
"cvss_vector": null,
|
|
60
|
+
"direct_or_transitive": "transitive",
|
|
61
|
+
"dependency_chain": null,
|
|
62
|
+
"chain_available": false,
|
|
63
|
+
"fix_version": null,
|
|
64
|
+
"remediation": null,
|
|
65
|
+
"licence": "GPL-3.0"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"repo": "worker",
|
|
71
|
+
"ecosystem": "python",
|
|
72
|
+
"tool_used": "pip-audit",
|
|
73
|
+
"outcome": "ok",
|
|
74
|
+
"durationMs": 1800,
|
|
75
|
+
"findings": [
|
|
76
|
+
{
|
|
77
|
+
"id": "pkg-003",
|
|
78
|
+
"tool": "pip-audit",
|
|
79
|
+
"ecosystem": "python",
|
|
80
|
+
"repo": "worker",
|
|
81
|
+
"manifest_path": null,
|
|
82
|
+
"package_name": "requests",
|
|
83
|
+
"installed_version": "2.25.0",
|
|
84
|
+
"vulnerability": {
|
|
85
|
+
"cve": "CVE-2023-32681",
|
|
86
|
+
"title": "Unintended leak of Proxy-Authorization header",
|
|
87
|
+
"description": "Requests is a HTTP library.",
|
|
88
|
+
"reference_url": null
|
|
89
|
+
},
|
|
90
|
+
"severity": null,
|
|
91
|
+
"cvss_score": null,
|
|
92
|
+
"cvss_vector": null,
|
|
93
|
+
"direct_or_transitive": null,
|
|
94
|
+
"dependency_chain": null,
|
|
95
|
+
"chain_available": false,
|
|
96
|
+
"fix_version": "2.31.0",
|
|
97
|
+
"remediation": "pip install requests==2.31.0"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"repo": "_product_root",
|
|
103
|
+
"ecosystem": "node",
|
|
104
|
+
"tool_used": "npm-audit",
|
|
105
|
+
"outcome": "ok",
|
|
106
|
+
"durationMs": 900,
|
|
107
|
+
"findings": [
|
|
108
|
+
{
|
|
109
|
+
"id": "pkg-004",
|
|
110
|
+
"tool": "npm-audit",
|
|
111
|
+
"ecosystem": "node",
|
|
112
|
+
"repo": "_product_root",
|
|
113
|
+
"manifest_path": null,
|
|
114
|
+
"package_name": "express",
|
|
115
|
+
"installed_version": "",
|
|
116
|
+
"vulnerability": {
|
|
117
|
+
"cve": null,
|
|
118
|
+
"title": "express Critical vulnerability",
|
|
119
|
+
"description": null,
|
|
120
|
+
"reference_url": "https://github.com/advisories/GHSA-xxxx"
|
|
121
|
+
},
|
|
122
|
+
"severity": "critical",
|
|
123
|
+
"cvss_score": 9.8,
|
|
124
|
+
"cvss_vector": null,
|
|
125
|
+
"direct_or_transitive": "direct",
|
|
126
|
+
"dependency_chain": null,
|
|
127
|
+
"chain_available": false,
|
|
128
|
+
"fix_version": null,
|
|
129
|
+
"remediation": null
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"findings": [
|
|
135
|
+
{
|
|
136
|
+
"id": "pkg-001",
|
|
137
|
+
"tool": "snyk",
|
|
138
|
+
"ecosystem": "node",
|
|
139
|
+
"repo": "api",
|
|
140
|
+
"manifest_path": "packages/api/package.json",
|
|
141
|
+
"package_name": "lodash",
|
|
142
|
+
"installed_version": "4.17.15",
|
|
143
|
+
"vulnerability": {
|
|
144
|
+
"cve": "CVE-2021-23337",
|
|
145
|
+
"title": "Command Injection in lodash",
|
|
146
|
+
"description": "Versions of lodash prior to 4.17.21 are vulnerable to Command Injection.",
|
|
147
|
+
"reference_url": "https://snyk.io/vuln/SNYK-JS-LODASH-1040724"
|
|
148
|
+
},
|
|
149
|
+
"severity": "high",
|
|
150
|
+
"cvss_score": 7.2,
|
|
151
|
+
"cvss_vector": null,
|
|
152
|
+
"direct_or_transitive": "direct",
|
|
153
|
+
"dependency_chain": [
|
|
154
|
+
{ "name": "api", "version": "1.0.0" },
|
|
155
|
+
{ "name": "lodash", "version": "4.17.15" }
|
|
156
|
+
],
|
|
157
|
+
"chain_available": true,
|
|
158
|
+
"fix_version": "4.17.21",
|
|
159
|
+
"remediation": "upgrade to lodash@4.17.21",
|
|
160
|
+
"licence": null
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "pkg-002",
|
|
164
|
+
"tool": "snyk",
|
|
165
|
+
"ecosystem": "node",
|
|
166
|
+
"repo": "api",
|
|
167
|
+
"manifest_path": "packages/api/package.json",
|
|
168
|
+
"package_name": "gpl-licensed-dep",
|
|
169
|
+
"installed_version": "2.0.0",
|
|
170
|
+
"vulnerability": {
|
|
171
|
+
"cve": null,
|
|
172
|
+
"title": "Prototype Pollution in gpl-licensed-dep",
|
|
173
|
+
"description": "Multi-line\ndescription with\nembedded newlines.",
|
|
174
|
+
"reference_url": "https://example.com/advisory"
|
|
175
|
+
},
|
|
176
|
+
"severity": "moderate",
|
|
177
|
+
"cvss_score": null,
|
|
178
|
+
"cvss_vector": null,
|
|
179
|
+
"direct_or_transitive": "transitive",
|
|
180
|
+
"dependency_chain": null,
|
|
181
|
+
"chain_available": false,
|
|
182
|
+
"fix_version": null,
|
|
183
|
+
"remediation": null,
|
|
184
|
+
"licence": "GPL-3.0"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": "pkg-003",
|
|
188
|
+
"tool": "pip-audit",
|
|
189
|
+
"ecosystem": "python",
|
|
190
|
+
"repo": "worker",
|
|
191
|
+
"manifest_path": null,
|
|
192
|
+
"package_name": "requests",
|
|
193
|
+
"installed_version": "2.25.0",
|
|
194
|
+
"vulnerability": {
|
|
195
|
+
"cve": "CVE-2023-32681",
|
|
196
|
+
"title": "Unintended leak of Proxy-Authorization header",
|
|
197
|
+
"description": "Requests is a HTTP library.",
|
|
198
|
+
"reference_url": null
|
|
199
|
+
},
|
|
200
|
+
"severity": null,
|
|
201
|
+
"cvss_score": null,
|
|
202
|
+
"cvss_vector": null,
|
|
203
|
+
"direct_or_transitive": null,
|
|
204
|
+
"dependency_chain": null,
|
|
205
|
+
"chain_available": false,
|
|
206
|
+
"fix_version": "2.31.0",
|
|
207
|
+
"remediation": "pip install requests==2.31.0"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "pkg-004",
|
|
211
|
+
"tool": "npm-audit",
|
|
212
|
+
"ecosystem": "node",
|
|
213
|
+
"repo": "_product_root",
|
|
214
|
+
"manifest_path": null,
|
|
215
|
+
"package_name": "express",
|
|
216
|
+
"installed_version": "",
|
|
217
|
+
"vulnerability": {
|
|
218
|
+
"cve": null,
|
|
219
|
+
"title": "express Critical vulnerability",
|
|
220
|
+
"description": null,
|
|
221
|
+
"reference_url": "https://github.com/advisories/GHSA-xxxx"
|
|
222
|
+
},
|
|
223
|
+
"severity": "critical",
|
|
224
|
+
"cvss_score": 9.8,
|
|
225
|
+
"cvss_vector": null,
|
|
226
|
+
"direct_or_transitive": "direct",
|
|
227
|
+
"dependency_chain": null,
|
|
228
|
+
"chain_available": false,
|
|
229
|
+
"fix_version": null,
|
|
230
|
+
"remediation": null
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"skipped": [],
|
|
234
|
+
"diagnostics": []
|
|
235
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"message":{"type":"osv","osv":{"id":"GO-2023-1878","summary":"Improper input validation in golang.org/x/net","details":"Uncontrolled recursion in golang.org/x/net/html can cause a denial of service.","aliases":["CVE-2023-3978"],"references":[{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2023-1878"},{"type":"FIX","url":"https://go.dev/cl/514896"}]}}}
|
|
2
|
+
{"message":{"type":"finding","finding":{"osv":"GO-2023-1878","fixed_version":"v0.13.0","trace":[{"module":"example.com/myapp","version":"v0.1.0"},{"module":"golang.org/x/net","version":"v0.12.0","function":"html.Parse"}]}}}
|
|
3
|
+
{"message":{"type":"finding","finding":{"osv":"GO-2023-1878","fixed_version":"v0.13.0","trace":[{"module":"golang.org/x/net","version":"v0.12.0","function":"html.Tokenize"}]}}}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"auditReportVersion": 2,
|
|
3
|
+
"vulnerabilities": {
|
|
4
|
+
"lodash": {
|
|
5
|
+
"name": "lodash",
|
|
6
|
+
"severity": "high",
|
|
7
|
+
"isDirect": false,
|
|
8
|
+
"via": [
|
|
9
|
+
{
|
|
10
|
+
"source": 1523,
|
|
11
|
+
"name": "lodash",
|
|
12
|
+
"dependency": "lodash",
|
|
13
|
+
"title": "Prototype Pollution in lodash",
|
|
14
|
+
"url": "https://github.com/advisories/GHSA-p6mc-m468-83gw",
|
|
15
|
+
"severity": "high",
|
|
16
|
+
"cwe": ["CWE-1321"],
|
|
17
|
+
"cvss": {
|
|
18
|
+
"score": 7.4,
|
|
19
|
+
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
|
|
20
|
+
},
|
|
21
|
+
"range": "<4.17.21"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"effects": [],
|
|
25
|
+
"range": "<4.17.21",
|
|
26
|
+
"nodes": ["node_modules/lodash"],
|
|
27
|
+
"fixAvailable": {
|
|
28
|
+
"name": "lodash",
|
|
29
|
+
"version": "4.17.21",
|
|
30
|
+
"isSemVerMajor": false
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"metadata": {
|
|
35
|
+
"vulnerabilities": { "info": 0, "low": 0, "moderate": 0, "high": 1, "critical": 0, "total": 1 }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"results": [
|
|
3
|
+
{
|
|
4
|
+
"source": {
|
|
5
|
+
"path": "packages/api/package-lock.json",
|
|
6
|
+
"type": "lockfile"
|
|
7
|
+
},
|
|
8
|
+
"packages": [
|
|
9
|
+
{
|
|
10
|
+
"package": {
|
|
11
|
+
"name": "lodash",
|
|
12
|
+
"version": "4.17.20",
|
|
13
|
+
"ecosystem": "npm"
|
|
14
|
+
},
|
|
15
|
+
"vulnerabilities": [
|
|
16
|
+
{
|
|
17
|
+
"id": "GHSA-p6mc-m468-83gw",
|
|
18
|
+
"summary": "Prototype Pollution in lodash",
|
|
19
|
+
"details": "Versions of lodash prior to 4.17.21 are vulnerable to prototype pollution.",
|
|
20
|
+
"aliases": ["CVE-2020-8203"],
|
|
21
|
+
"severity": [
|
|
22
|
+
{ "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }
|
|
23
|
+
],
|
|
24
|
+
"references": [
|
|
25
|
+
{ "type": "WEB", "url": "https://github.com/advisories/GHSA-p6mc-m468-83gw" }
|
|
26
|
+
],
|
|
27
|
+
"affected": [
|
|
28
|
+
{
|
|
29
|
+
"package": { "name": "lodash", "ecosystem": "npm" },
|
|
30
|
+
"ranges": [
|
|
31
|
+
{
|
|
32
|
+
"type": "SEMVER",
|
|
33
|
+
"events": [
|
|
34
|
+
{ "introduced": "0" },
|
|
35
|
+
{ "fixed": "4.17.21" }
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"versions": ["4.17.20"]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"package": {
|
|
47
|
+
"name": "minimist",
|
|
48
|
+
"version": "1.2.0",
|
|
49
|
+
"ecosystem": "npm"
|
|
50
|
+
},
|
|
51
|
+
"vulnerabilities": [
|
|
52
|
+
{
|
|
53
|
+
"id": "GHSA-vh95-rmgr-6w4m",
|
|
54
|
+
"summary": "Prototype Pollution in minimist",
|
|
55
|
+
"details": "minimist before 1.2.3 is vulnerable.",
|
|
56
|
+
"aliases": ["CVE-2020-7598"],
|
|
57
|
+
"severity": [
|
|
58
|
+
{ "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L" }
|
|
59
|
+
],
|
|
60
|
+
"references": [
|
|
61
|
+
{ "type": "WEB", "url": "https://github.com/advisories/GHSA-vh95-rmgr-6w4m" }
|
|
62
|
+
],
|
|
63
|
+
"affected": [
|
|
64
|
+
{
|
|
65
|
+
"package": { "name": "minimist", "ecosystem": "npm" },
|
|
66
|
+
"ranges": [
|
|
67
|
+
{ "type": "SEMVER", "events": [{ "introduced": "0" }, { "fixed": "1.2.3" }] }
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dependencies": [
|
|
3
|
+
{
|
|
4
|
+
"name": "requests",
|
|
5
|
+
"version": "2.20.0",
|
|
6
|
+
"vulns": [
|
|
7
|
+
{
|
|
8
|
+
"id": "GHSA-x84v-xcm2-53pg",
|
|
9
|
+
"fix_versions": ["2.20.1", "2.21.0"],
|
|
10
|
+
"description": "Requests before 2.20.0 sends an HTTP Authorization header to an http URI upon redirect.",
|
|
11
|
+
"aliases": ["CVE-2018-18074"]
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "urllib3",
|
|
17
|
+
"version": "1.24.1",
|
|
18
|
+
"vulns": [
|
|
19
|
+
{
|
|
20
|
+
"id": "PYSEC-2019-132",
|
|
21
|
+
"fix_versions": ["1.24.2"],
|
|
22
|
+
"description": "urllib3 before 1.24.2 does not remove the Authorization header on cross-origin redirects.",
|
|
23
|
+
"aliases": ["CVE-2019-11324"]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ok": false,
|
|
3
|
+
"targetFile": "package.json",
|
|
4
|
+
"projectName": "your-app",
|
|
5
|
+
"displayTargetFile": "package.json",
|
|
6
|
+
"foundProjectCount": 1,
|
|
7
|
+
"vulnerabilities": [
|
|
8
|
+
{
|
|
9
|
+
"id": "SNYK-JS-LODASH-590103",
|
|
10
|
+
"title": "Prototype Pollution",
|
|
11
|
+
"description": "lodash is vulnerable to prototype pollution via zipObjectDeep.",
|
|
12
|
+
"packageName": "lodash",
|
|
13
|
+
"version": "4.17.20",
|
|
14
|
+
"severity": "critical",
|
|
15
|
+
"cvssScore": 9.8,
|
|
16
|
+
"CVSSv3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
|
|
17
|
+
"identifiers": {
|
|
18
|
+
"CVE": ["CVE-2020-8203"],
|
|
19
|
+
"CWE": ["CWE-1321"]
|
|
20
|
+
},
|
|
21
|
+
"from": ["your-app@1.0.0", "auth-lib@2.3.1", "lodash@4.17.20"],
|
|
22
|
+
"upgradePath": [false, "auth-lib@2.3.2", "lodash@4.17.21"],
|
|
23
|
+
"fixedIn": ["4.17.21"],
|
|
24
|
+
"isUpgradable": true,
|
|
25
|
+
"isPatchable": false,
|
|
26
|
+
"url": "https://snyk.io/vuln/SNYK-JS-LODASH-590103",
|
|
27
|
+
"license": "MIT"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ok": false,
|
|
3
|
+
"projects": [
|
|
4
|
+
{
|
|
5
|
+
"targetFile": "packages/api/package.json",
|
|
6
|
+
"projectName": "api",
|
|
7
|
+
"vulnerabilities": [
|
|
8
|
+
{
|
|
9
|
+
"id": "SNYK-JS-LODASH-590103",
|
|
10
|
+
"title": "Prototype Pollution",
|
|
11
|
+
"packageName": "lodash",
|
|
12
|
+
"version": "4.17.20",
|
|
13
|
+
"severity": "critical",
|
|
14
|
+
"cvssScore": 9.8,
|
|
15
|
+
"CVSSv3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
|
|
16
|
+
"identifiers": { "CVE": ["CVE-2020-8203"] },
|
|
17
|
+
"from": ["api@1.0.0", "lodash@4.17.20"],
|
|
18
|
+
"upgradePath": [false, "lodash@4.17.21"],
|
|
19
|
+
"fixedIn": ["4.17.21"],
|
|
20
|
+
"isUpgradable": true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "SNYK-JS-MINIMIST-559764",
|
|
24
|
+
"title": "Prototype Pollution",
|
|
25
|
+
"packageName": "minimist",
|
|
26
|
+
"version": "1.2.0",
|
|
27
|
+
"severity": "medium",
|
|
28
|
+
"cvssScore": 5.6,
|
|
29
|
+
"identifiers": { "CVE": ["CVE-2020-7598"] },
|
|
30
|
+
"from": ["api@1.0.0", "mkdirp@0.5.1", "minimist@1.2.0"],
|
|
31
|
+
"fixedIn": ["1.2.3"],
|
|
32
|
+
"isUpgradable": true
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"targetFile": "packages/web/package.json",
|
|
38
|
+
"projectName": "web",
|
|
39
|
+
"vulnerabilities": [
|
|
40
|
+
{
|
|
41
|
+
"id": "SNYK-JS-AXIOS-1038255",
|
|
42
|
+
"title": "Server-Side Request Forgery",
|
|
43
|
+
"packageName": "axios",
|
|
44
|
+
"version": "0.21.0",
|
|
45
|
+
"severity": "high",
|
|
46
|
+
"cvssScore": 7.5,
|
|
47
|
+
"identifiers": { "CVE": ["CVE-2020-28168"] },
|
|
48
|
+
"from": ["web@1.0.0", "axios@0.21.0"],
|
|
49
|
+
"fixedIn": ["0.21.1"],
|
|
50
|
+
"isUpgradable": true
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
@@ -251,7 +251,7 @@ function parseMustHavesBlock(content, blockName) {
|
|
|
251
251
|
|
|
252
252
|
const FRONTMATTER_SCHEMAS = {
|
|
253
253
|
plan: { required: ['phase', 'plan', 'type', 'wave', 'depends_on', 'files_modified', 'autonomous', 'must_haves'] },
|
|
254
|
-
summary: { required: ['phase', 'plan', 'subsystem', 'tags', 'duration', 'completed', '
|
|
254
|
+
summary: { required: ['phase', 'plan', 'subsystem', 'tags', 'duration', 'completed', 'requirements_completed'] },
|
|
255
255
|
verification: { required: ['phase', 'verified', 'status', 'score'] },
|
|
256
256
|
};
|
|
257
257
|
|