@portll/cobolwork 0.0.1 → 0.2.75

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.
Files changed (79) hide show
  1. package/LICENSE +661 -0
  2. package/LICENSING.md +93 -0
  3. package/NOTICE +9 -0
  4. package/README.md +323 -3
  5. package/THIRD-PARTY-NOTICES.md +118 -0
  6. package/bin/cobolwork.mjs +354 -0
  7. package/lib/advisories.mjs +133 -0
  8. package/lib/baseline.mjs +154 -0
  9. package/lib/bms.mjs +453 -0
  10. package/lib/build.mjs +402 -0
  11. package/lib/capabilities.mjs +79 -0
  12. package/lib/cics-commands.mjs +281 -0
  13. package/lib/compliance.mjs +81 -0
  14. package/lib/consequence.mjs +139 -0
  15. package/lib/control.mjs +1515 -0
  16. package/lib/csd.mjs +77 -0
  17. package/lib/dataflow.mjs +1506 -0
  18. package/lib/diff.mjs +344 -0
  19. package/lib/explain.mjs +145 -0
  20. package/lib/gate.mjs +383 -0
  21. package/lib/index.mjs +6 -0
  22. package/lib/inventory.mjs +79 -0
  23. package/lib/jcl.mjs +478 -0
  24. package/lib/kernel/findings.mjs +94 -0
  25. package/lib/kernel/identity.mjs +216 -0
  26. package/lib/kernel/memory.mjs +217 -0
  27. package/lib/kernel/printable.mjs +6 -0
  28. package/lib/kernel/registry.mjs +79 -0
  29. package/lib/kernel/ruleset.mjs +72 -0
  30. package/lib/kernel/source-tree.mjs +159 -0
  31. package/lib/kev.mjs +27 -0
  32. package/lib/options.mjs +512 -0
  33. package/lib/packs.mjs +148 -0
  34. package/lib/parser.mjs +2055 -0
  35. package/lib/policy.mjs +163 -0
  36. package/lib/precompile-cics.mjs +169 -0
  37. package/lib/precompile.mjs +544 -0
  38. package/lib/reach.mjs +122 -0
  39. package/lib/revision.json +1 -0
  40. package/lib/revision.mjs +89 -0
  41. package/lib/sarif.mjs +222 -0
  42. package/lib/scan.mjs +272 -0
  43. package/lib/sets/build.mjs +234 -0
  44. package/lib/sets/cics.mjs +306 -0
  45. package/lib/sets/compile.mjs +187 -0
  46. package/lib/sets/copybook.mjs +174 -0
  47. package/lib/sets/flow.mjs +487 -0
  48. package/lib/sets/hidden.mjs +216 -0
  49. package/lib/sets/jcl.mjs +440 -0
  50. package/lib/sets/log.mjs +406 -0
  51. package/lib/sets/opaque.mjs +102 -0
  52. package/lib/sets/priv.mjs +322 -0
  53. package/lib/sets/recon.mjs +267 -0
  54. package/lib/sets/vendor.mjs +117 -0
  55. package/lib/sets/web.mjs +327 -0
  56. package/lib/site.mjs +164 -0
  57. package/lib/sources.mjs +156 -0
  58. package/lib/tui/app.mjs +325 -0
  59. package/lib/tui/keys.mjs +39 -0
  60. package/lib/tui/model.mjs +96 -0
  61. package/lib/tui/run.mjs +38 -0
  62. package/lib/tui/screen.mjs +59 -0
  63. package/lib/tui/terminal.mjs +46 -0
  64. package/lib/utilities.mjs +296 -0
  65. package/lib/version.mjs +15 -0
  66. package/lib/words.mjs +318 -0
  67. package/package.json +45 -6
  68. package/rules/advisories.json +264 -0
  69. package/rules/compliance-dora.json +2151 -0
  70. package/rules/compliance-ffiec.json +2134 -0
  71. package/rules/compliance-nist80053.json +2134 -0
  72. package/rules/gitleaks-mainframe.toml +57 -0
  73. package/rules/kev-ids.json +1729 -0
  74. package/rules/packs/broadcom.json +124 -0
  75. package/rules/packs/connectdirect.json +116 -0
  76. package/rules/packs/controlm.json +114 -0
  77. package/rules/system-layouts.json +28 -0
  78. package/schema/cobolwork-coverage.schema.json +65 -0
  79. package/schema/cobolwork.policy.schema.json +54 -0
@@ -0,0 +1,264 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "retrieved": "2026-09-23",
4
+ "source": "NVD API 2.0 by CPE, and OSV for packages NVD carries no CPE for; swept by diag/sweep-advisories.mjs over feed/worklists/components.json",
5
+ "coverage": {
6
+ "gnucobol": "complete at the retrieval date: 6 of 6 results NVD returned for the keyword",
7
+ "ibm-enterprise-cobol": "none found. No CVE in NVD and no IBM security bulletin names the compiler itself as of 2026-09-20. An absence of published advisories is not an absence of defects",
8
+ "opentext-cobol": "searched 2026-09-20 via NVD CPE microfocus:visual_cobol. 2 advisories, both against the Enterprise Server family (Visual COBOL, COBOL Server, Enterprise Developer, Enterprise Server, Enterprise Test Server) which share a version line. Vendor advisories behind an OpenText support account were not read, so this is NVD's view rather than OpenText's",
9
+ "cics-ts": "searched 2026-09-20 via NVD CPE ibm:cics_transaction_server. 1 advisory, from 2014. A single result for a product this size is more likely to mean IBM reports through its own bulletins than that the product has one defect",
10
+ "db2-zos": "searched 2026-09-20. No CVE names the Db2 for z/OS engine itself. The five results mentioning z/OS name adjacent products - DB2 Content Manager, Guardium S-TAP, DB2 Tools - and one names Db2 for Linux, UNIX and Windows. Absence of a published advisory is not absence of a defect",
11
+ "cics-transaction-gateway": "searched 2026-09-23 via NVD CPE ibm:cics_transaction_gateway. 4 advisories, all loaded. The gateway runs off the mainframe, so unlike CICS TS its defects are published",
12
+ "zowe": "searched 2026-09-23 via OSV for @zowe/cli, @zowe/imperative and @zowe/zos-files-for-zowe-sdk, because Zowe CVEs carry no CPE data and an NVD CPE sweep finds none of them. 2 advisories, both loaded from their NVD records; source.foundVia names the package that found each. An OSV row with no CVE identifier cannot be loaded, because the gate resolves every row against NVD",
13
+ "db2-connect": "searched 2026-09-23 via NVD CPE ibm:db2_connect. 17 advisories found and none loaded: they are matched to the Db2 Connect product family, and NVD does not say whether one reaches the JDBC driver a repository actually pins. diag/sweep-advisories.mjs prints them for an estate that knows what it runs",
14
+ "ibm-mq": "searched 2026-09-23 via NVD CPE ibm:mq. 48 advisories found and none loaded, for the same reason as db2-connect: the client jar carries the queue manager version, and the record does not separate them",
15
+ "che4z": "searched 2026-09-23 via OSV for @broadcom/cobol-language-support. None found"
16
+ },
17
+ "advisories": [
18
+ {
19
+ "kind": "advisory",
20
+ "product": "gnucobol",
21
+ "id": "CVE-2019-14468",
22
+ "affected": "2.2",
23
+ "fixedIn": null,
24
+ "severity": "high",
25
+ "cvss": 7.8,
26
+ "summary": "GnuCOBOL 2.2 has a buffer overflow in cb_push_op in cobc/field.c via crafted COBOL source code.",
27
+ "source": {
28
+ "doc": "nvd-gnucobol",
29
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-14468",
30
+ "retrieved": "2026-09-20",
31
+ "quote": "GnuCOBOL 2.2 has a buffer overflow in cb_push_op in cobc/field.c via crafted COBOL source code."
32
+ }
33
+ },
34
+ {
35
+ "kind": "advisory",
36
+ "product": "gnucobol",
37
+ "id": "CVE-2019-14486",
38
+ "affected": "2.2",
39
+ "fixedIn": null,
40
+ "severity": "high",
41
+ "cvss": 7.8,
42
+ "summary": "GnuCOBOL 2.2 has a buffer overflow in cb_evaluate_expr in cobc/field.c via crafted COBOL source code.",
43
+ "source": {
44
+ "doc": "nvd-gnucobol",
45
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-14486",
46
+ "retrieved": "2026-09-20",
47
+ "quote": "GnuCOBOL 2.2 has a buffer overflow in cb_evaluate_expr in cobc/field.c via crafted COBOL source code."
48
+ }
49
+ },
50
+ {
51
+ "kind": "advisory",
52
+ "product": "gnucobol",
53
+ "id": "CVE-2019-14528",
54
+ "affected": "2.2",
55
+ "fixedIn": null,
56
+ "severity": "high",
57
+ "cvss": 7.8,
58
+ "summary": "GnuCOBOL 2.2 has a heap-based buffer overflow in read_literal in cobc/scanner.l via crafted COBOL source code.",
59
+ "source": {
60
+ "doc": "nvd-gnucobol",
61
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-14528",
62
+ "retrieved": "2026-09-20",
63
+ "quote": "GnuCOBOL 2.2 has a heap-based buffer overflow in read_literal in cobc/scanner.l via crafted COBOL source code."
64
+ }
65
+ },
66
+ {
67
+ "kind": "advisory",
68
+ "product": "gnucobol",
69
+ "id": "CVE-2019-14541",
70
+ "affected": "2.2",
71
+ "fixedIn": null,
72
+ "severity": "high",
73
+ "cvss": 7.8,
74
+ "summary": "GnuCOBOL 2.2 has a stack-based buffer overflow in cb_encode_program_id in cobc/typeck.c via crafted COBOL source code.",
75
+ "source": {
76
+ "doc": "nvd-gnucobol",
77
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-14541",
78
+ "retrieved": "2026-09-20",
79
+ "quote": "GnuCOBOL 2.2 has a stack-based buffer overflow in cb_encode_program_id in cobc/typeck.c via crafted COBOL source code."
80
+ }
81
+ },
82
+ {
83
+ "kind": "advisory",
84
+ "product": "gnucobol",
85
+ "id": "CVE-2019-16395",
86
+ "affected": "2.2",
87
+ "fixedIn": null,
88
+ "severity": "high",
89
+ "cvss": 7.8,
90
+ "summary": "GnuCOBOL 2.2 has a stack-based buffer overflow in the cb_name() function in cobc/tree.c via crafted COBOL source code.",
91
+ "source": {
92
+ "doc": "nvd-gnucobol",
93
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-16395",
94
+ "retrieved": "2026-09-20",
95
+ "quote": "GnuCOBOL 2.2 has a stack-based buffer overflow in the cb_name() function in cobc/tree.c via crafted COBOL source code."
96
+ }
97
+ },
98
+ {
99
+ "kind": "advisory",
100
+ "product": "gnucobol",
101
+ "id": "CVE-2019-16396",
102
+ "affected": "2.2",
103
+ "fixedIn": null,
104
+ "severity": "high",
105
+ "cvss": 7.8,
106
+ "summary": "GnuCOBOL 2.2 has a use-after-free in the end_scope_of_program_name() function in cobc/parser.y via crafted COBOL source code.",
107
+ "source": {
108
+ "doc": "nvd-gnucobol",
109
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-16396",
110
+ "retrieved": "2026-09-20",
111
+ "quote": "GnuCOBOL 2.2 has a use-after-free in the end_scope_of_program_name() function in cobc/parser.y via crafted COBOL source code."
112
+ }
113
+ },
114
+ {
115
+ "kind": "advisory",
116
+ "product": "cics-ts",
117
+ "id": "CVE-2014-3042",
118
+ "affected": "3.1||3.2||4.1||5.1",
119
+ "fixedIn": null,
120
+ "severity": "med",
121
+ "cvss": 4,
122
+ "discrepancy": "The description names 3.1, 3.2, 4.1, 4.2 and 5.1; NVD's CPE list omits 4.2. This row follows the CPE list. Treat 4.2 as probably affected.",
123
+ "summary": "IBM CICS Transaction Server 3.1, 3.2, 4.1, 4.2, and 5.1 on z/OS does not properly implement CEMT transactions, which allows remote authenticated users to cause a denial of service (storage overlay) by using a 3270 emulator to send an invalid 3270 data stream.",
124
+ "source": {
125
+ "doc": "nvd-cics",
126
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2014-3042",
127
+ "retrieved": "2026-09-20",
128
+ "quote": "IBM CICS Transaction Server 3.1, 3.2, 4.1, 4.2, and 5.1 on z/OS does not properly implement CEMT transactions, which allows remote authenticated users to cause a denial of service (storage overlay) by using a 3270 emulator to send an invalid 3270 data stream."
129
+ }
130
+ },
131
+ {
132
+ "kind": "advisory",
133
+ "product": "opentext-cobol",
134
+ "id": "CVE-2023-32265",
135
+ "affected": "6.0||7.0||8.0",
136
+ "fixedIn": null,
137
+ "severity": "high",
138
+ "cvss": 7.1,
139
+ "summary": "A potential security vulnerability has been identified in the Enterprise Server Common Web Administration (ESCWA) component used in Enterprise Server, Enterprise Test Server, Enterprise Developer, Visual COBOL, and COBOL Server.\nAn attacker would need to be authenticated into ESCWA to attempt to exploit this vulnerability. As described in the hardening guide in the product documentation, other mitigations including restricting network access to ESCWA and restricting users’ permissions in the Micro Focus Directory Server also reduce the exposure to this issue.\n\nGiven the right conditions this vulnerability could be exploited to expose a service account password. The account corresponding to the exposed credentials usually has limited privileges and, in many cases would only be useful for extracting details of other user accounts and similar information.",
140
+ "source": {
141
+ "doc": "nvd-opentext",
142
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-32265",
143
+ "retrieved": "2026-09-20",
144
+ "quote": "A potential security vulnerability has been identified in the Enterprise Server Common Web Administration (ESCWA) component used in Enterprise Server, Enterprise Test Server, Enterprise Developer, Visual COBOL, and COBOL Server.\nAn attacker would need to be authenticated into ESCWA to attempt to exploit this vulnerability. As described in the hardening guide in the product documentation, other mitigations including restricting network access to ESCWA and restricting users’ permissions in the Micro Focus Directory Server also reduce the exposure to this issue.\n\nGiven the right conditions this vulnerability could be exploited to expose a service account password. The account corresponding to the exposed credentials usually has limited privileges and, in many cases would only be useful for extracting details of other user accounts and similar information."
145
+ }
146
+ },
147
+ {
148
+ "kind": "advisory",
149
+ "product": "opentext-cobol",
150
+ "id": "CVE-2023-4501",
151
+ "affected": "7.0||8.0||9.0",
152
+ "fixedIn": null,
153
+ "severity": "crit",
154
+ "cvss": 9.8,
155
+ "summary": "User authentication with username and password credentials is ineffective in OpenText (Micro Focus) Visual COBOL, COBOL Server, Enterprise Developer, and Enterprise Server (including product variants such as Enterprise Test Server), versions 7.0 patch updates 19 and 20, 8.0 patch updates 8 and 9, and 9.0 patch update 1, when LDAP-based authentication is used with certain configurations. When the vulnerability is active, authentication succeeds with any valid username, regardless of whether the password is correct; it may also succeed with an invalid username (and any password). This allows an attacker with access to the product to impersonate any user.\n\nMitigations: The issue is corrected in the upcoming patch update for each affected product. Product overlays and workaround instructions are available through OpenText Support. The vulnerable configurations are believed to be uncommon.\n\nAdministrators can test for the vulnerability in their installations by attempting to sign on to a Visual COBOL or Enterprise Server component such as ESCWA using a valid username and incorrect password.",
156
+ "source": {
157
+ "doc": "nvd-opentext",
158
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-4501",
159
+ "retrieved": "2026-09-20",
160
+ "quote": "User authentication with username and password credentials is ineffective in OpenText (Micro Focus) Visual COBOL, COBOL Server, Enterprise Developer, and Enterprise Server (including product variants such as Enterprise Test Server), versions 7.0 patch updates 19 and 20, 8.0 patch updates 8 and 9, and 9.0 patch update 1, when LDAP-based authentication is used with certain configurations. When the vulnerability is active, authentication succeeds with any valid username, regardless of whether the password is correct; it may also succeed with an invalid username (and any password). This allows an attacker with access to the product to impersonate any user.\n\nMitigations: The issue is corrected in the upcoming patch update for each affected product. Product overlays and workaround instructions are available through OpenText Support. The vulnerable configurations are believed to be uncommon.\n\nAdministrators can test for the vulnerability in their installations by attempting to sign on to a Visual COBOL or Enterprise Server component such as ESCWA using a valid username and incorrect password."
161
+ }
162
+ },
163
+ {
164
+ "kind": "advisory",
165
+ "product": "cics-transaction-gateway",
166
+ "id": "CVE-2023-47140",
167
+ "affected": "9.3",
168
+ "fixedIn": null,
169
+ "severity": "med",
170
+ "cvss": 4,
171
+ "summary": "IBM CICS Transaction Gateway 9.3 could allow a user to transfer or view files due to improper access controls.",
172
+ "source": {
173
+ "doc": "nvd-cics-transaction-gateway",
174
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-47140",
175
+ "retrieved": "2026-09-23",
176
+ "quote": "IBM CICS Transaction Gateway 9.3 could allow a user to transfer or view files due to improper access controls."
177
+ }
178
+ },
179
+ {
180
+ "kind": "advisory",
181
+ "product": "cics-transaction-gateway",
182
+ "id": "CVE-2023-50311",
183
+ "affected": "9.2||9.3",
184
+ "fixedIn": null,
185
+ "severity": "low",
186
+ "cvss": 3.1,
187
+ "summary": "IBM CICS Transaction Gateway for Multiplatforms 9.2 and 9.3 could disclose sensitive path information to an attacker that could reveal through debugging or error messages.",
188
+ "source": {
189
+ "doc": "nvd-cics-transaction-gateway",
190
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-50311",
191
+ "retrieved": "2026-09-23",
192
+ "quote": "IBM CICS Transaction Gateway for Multiplatforms 9.2 and 9.3 could disclose sensitive path information to an attacker that could reveal through debugging or error messages."
193
+ }
194
+ },
195
+ {
196
+ "kind": "advisory",
197
+ "product": "cics-transaction-gateway",
198
+ "id": "CVE-2023-50310",
199
+ "affected": "9.2||9.3",
200
+ "fixedIn": null,
201
+ "severity": "med",
202
+ "cvss": 4.9,
203
+ "summary": "IBM CICS Transaction Gateway for Multiplatforms 9.2 and 9.3 transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.",
204
+ "source": {
205
+ "doc": "nvd-cics-transaction-gateway",
206
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-50310",
207
+ "retrieved": "2026-09-23",
208
+ "quote": "IBM CICS Transaction Gateway for Multiplatforms 9.2 and 9.3 transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval."
209
+ }
210
+ },
211
+ {
212
+ "kind": "advisory",
213
+ "product": "cics-transaction-gateway",
214
+ "id": "CVE-2026-0977",
215
+ "affected": "9.3||10.1",
216
+ "fixedIn": null,
217
+ "severity": "med",
218
+ "cvss": 5.1,
219
+ "summary": "IBM CICS Transaction Gateway for Multiplatforms 9.3 and 10.1 could allow a user to transfer or view files due to improper access controls.",
220
+ "source": {
221
+ "doc": "nvd-cics-transaction-gateway",
222
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-0977",
223
+ "retrieved": "2026-09-23",
224
+ "quote": "IBM CICS Transaction Gateway for Multiplatforms 9.3 and 10.1 could allow a user to transfer or view files due to improper access controls."
225
+ }
226
+ },
227
+ {
228
+ "kind": "advisory",
229
+ "product": "zowe",
230
+ "id": "CVE-2024-6833",
231
+ "affected": "[7.18.0,7.23.5)",
232
+ "fixedIn": null,
233
+ "severity": "med",
234
+ "cvss": 5.9,
235
+ "summary": "A vulnerability in Zowe CLI allows local, privileged actors to store previously entered secure credentials in a plaintext file as part of an auto-init operation.",
236
+ "source": {
237
+ "doc": "nvd-zowe",
238
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-6833",
239
+ "retrieved": "2026-09-23",
240
+ "quote": "A vulnerability in Zowe CLI allows local, privileged actors to store previously entered secure credentials in a plaintext file as part of an auto-init operation.",
241
+ "foundVia": "osv-npm-@zowe/cli"
242
+ },
243
+ "pinnedAs": "npm:@zowe/cli"
244
+ },
245
+ {
246
+ "kind": "advisory",
247
+ "product": "zowe",
248
+ "id": "CVE-2021-4326",
249
+ "affected": "[5.0.0,5.7.1)||<4.18.10",
250
+ "fixedIn": null,
251
+ "severity": "low",
252
+ "cvss": 3.3,
253
+ "summary": "A vulnerability in Imperative framework which allows already-privileged local actors to execute arbitrary shell commands via plugin install/update commands, or maliciously formed environment variables. Impacts Zowe CLI.",
254
+ "source": {
255
+ "doc": "nvd-zowe",
256
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4326",
257
+ "retrieved": "2026-09-23",
258
+ "quote": "A vulnerability in Imperative framework which allows already-privileged local actors to execute arbitrary shell commands via plugin install/update commands, or maliciously formed environment variables. Impacts Zowe CLI.",
259
+ "foundVia": "osv-npm-@zowe/imperative"
260
+ },
261
+ "pinnedAs": "npm:@zowe/imperative"
262
+ }
263
+ ]
264
+ }