bailinghub 0.9.0 → 0.9.1

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 (89) hide show
  1. package/.dockerignore +6 -0
  2. package/.npmignore +6 -0
  3. package/CONTRIBUTING.md +4 -0
  4. package/GOVERNANCE.md +9 -0
  5. package/README.en.md +7 -6
  6. package/README.md +7 -6
  7. package/SECURITY.md +8 -2
  8. package/THIRD_PARTY_NOTICES.md +17 -17
  9. package/docker-compose.images.yml +2 -2
  10. package/docs/CHANGELOG.en.md +11 -1
  11. package/docs/CHANGELOG.md +11 -1
  12. package/docs/COMPATIBILITY.en.md +4 -0
  13. package/docs/IMPLEMENTATION_STATUS.en.md +73 -0
  14. package/docs/IMPLEMENTATION_STATUS.md +73 -0
  15. package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
  16. package/docs/INDEPENDENT_VALIDATION.md +4 -4
  17. package/docs/KERNEL_HOST_API.en.md +18 -0
  18. package/docs/KERNEL_HOST_API.md +18 -0
  19. package/docs/README.en.md +3 -0
  20. package/docs/README.md +3 -0
  21. package/docs/RELEASE_NOTES_NEXT.en.md +3 -3
  22. package/docs/RELEASE_NOTES_NEXT.md +3 -3
  23. package/docs/RELEASE_NOTES_v0.9.1.en.md +38 -0
  24. package/docs/RELEASE_NOTES_v0.9.1.md +38 -0
  25. package/docs/UPGRADE_v0.9.1.en.md +39 -0
  26. package/docs/UPGRADE_v0.9.1.md +39 -0
  27. package/docs//345/205/274/345/256/271/346/200/247/344/270/216/345/215/207/347/272/247.md +4 -0
  28. package/package.json +5 -4
  29. package/scripts/check-doc-links.mjs +2 -0
  30. package/scripts/check-image-tags.sh +1 -1
  31. package/scripts/check-release-consistency.test.mjs +2 -2
  32. package/scripts/dependency-audit.mjs +134 -0
  33. package/scripts/dependency-audit.test.mjs +125 -0
  34. package/scripts/install.sh +1 -1
  35. package/scripts/osps-results.py +114 -0
  36. package/scripts/publish-images.sh +1 -1
  37. package/scripts/release-audit.mjs +1 -0
  38. package/scripts/verify-github-repo.mjs +1 -0
  39. package/security/dependency-audit-exceptions.json +192 -0
  40. package/src/app/kernel-usage-lifecycle.mysql.test.ts +325 -0
  41. package/src/app/kernel.ts +10 -0
  42. package/src/modules/usage/background-work.test.ts +144 -0
  43. package/src/modules/usage/background-work.ts +50 -0
  44. package/src/modules/usage/billing-repository.ts +6 -4
  45. package/src/modules/usage/model-gateway.ts +10 -3
  46. package/src/modules/usage/model-tool-gateway.mysql.test.ts +1 -1
  47. package/src/modules/usage/pricing.ts +3 -2
  48. package/src/modules/usage/repository.ts +2 -0
  49. package/src/modules/usage/test-harness.ts +2 -1
  50. package/web/console/assets/{Accounts-DnddhY6t.js → Accounts-DKhw_QLr.js} +1 -1
  51. package/web/console/assets/{AgentClients-VInbD7JS.js → AgentClients-CM4_5HaA.js} +1 -1
  52. package/web/console/assets/{AgentTasks-B-1XklBg.js → AgentTasks-CkQgZTU5.js} +1 -1
  53. package/web/console/assets/{Approvals-34qUPHf0.js → Approvals-B9O9TkbO.js} +1 -1
  54. package/web/console/assets/{Audit-BbVgkSm2.js → Audit-2vDC1SPu.js} +1 -1
  55. package/web/console/assets/{BrandLockup-DgscF28e.js → BrandLockup-BgASiRSE.js} +1 -1
  56. package/web/console/assets/{Channels-Bp-yuk8d.js → Channels-A-GvkNBt.js} +1 -1
  57. package/web/console/assets/{ChatEntries-C9Ft60TS.js → ChatEntries-BLxymI67.js} +1 -1
  58. package/web/console/assets/{Clients-NPldD-DD.js → Clients-DeNlmvS6.js} +1 -1
  59. package/web/console/assets/{Cost-DZcuB-EB.js → Cost-CBq_L4Kz.js} +1 -1
  60. package/web/console/assets/{Credentials-RTT7N6zl.js → Credentials-DmtbctNj.js} +1 -1
  61. package/web/console/assets/{Diagnostics-_LeK8cce.js → Diagnostics-BbcRDiA-.js} +1 -1
  62. package/web/console/assets/{Executors-Bi7H8rIm.js → Executors-gGgmQrDt.js} +1 -1
  63. package/web/console/assets/{HelpTip-BfyWrxCE.js → HelpTip-Dtdt2tKR.js} +1 -1
  64. package/web/console/assets/{Kb-BHamz8NP.js → Kb-lgY6OXUz.js} +2 -2
  65. package/web/console/assets/{Login-C1rJR-6w.js → Login-DA6BASZd.js} +1 -1
  66. package/web/console/assets/{Projects-BRA4a48v.js → Projects-DEbmB_sT.js} +1 -1
  67. package/web/console/assets/{Routes-CTC7U-fQ.js → Routes-qS6LLoyS.js} +1 -1
  68. package/web/console/assets/{Runs-B_fa_BlD.js → Runs-DG-VLRSc.js} +1 -1
  69. package/web/console/assets/{Setup-C1_d0mFy.js → Setup-DEpVF5uw.js} +1 -1
  70. package/web/console/assets/{Shell-CHEV6RGC.js → Shell-DgoPgK1E.js} +1 -1
  71. package/web/console/assets/{StorageBuckets-DlG3ojhA.js → StorageBuckets-DJtNN769.js} +1 -1
  72. package/web/console/assets/{SystemSettings-DYo2gg6d.js → SystemSettings-0DEUgeTR.js} +1 -1
  73. package/web/console/assets/{SystemStatus-DKCoUZlq.js → SystemStatus-CR1phiPE.js} +1 -1
  74. package/web/console/assets/{Targets-CdkG6BPR.js → Targets-D65l-IMB.js} +1 -1
  75. package/web/console/assets/{Tools-DVpCt0ox.js → Tools-DqtrINrN.js} +1 -1
  76. package/web/console/assets/{Usage-DWCpLugC.js → Usage-B5njXNjx.js} +1 -1
  77. package/web/console/assets/{UsageAccess-B_Xq7ARW.js → UsageAccess-ChnB4pjb.js} +1 -1
  78. package/web/console/assets/{UsageHelp-t5ZG_f-e.js → UsageHelp-BBKIvbQ5.js} +1 -1
  79. package/web/console/assets/{index-C6W4LWVV.js → index-65JiiUr4.js} +1 -1
  80. package/web/console/assets/{index-H1kfa0Mj.js → index-sLKrJd_p.js} +2 -2
  81. package/web/console/assets/{request-DLsP1_ot.js → request-BpaimqEb.js} +1 -1
  82. package/web/console/assets/{schema-BLOHvAJQ.js → schema-D0Z4kFCZ.js} +1 -1
  83. package/web/console/assets/{util-CGVh2Jvr.js → util-DZYfJ5Zo.js} +1 -1
  84. package/web/console/assets/{vendor-element-BD089KxE.js → vendor-element-8cVcdt5T.js} +1 -1
  85. package/web/console/assets/{vendor-mammoth-Bv-CZhmH.js → vendor-mammoth-CnDA23N0.js} +1 -1
  86. package/web/console/assets/vendor-vue-Co7x2FW6.js +29 -0
  87. package/web/console/index.html +3 -3
  88. package/web-admin/package-lock.json +83 -85
  89. package/web/console/assets/vendor-vue-B2uhHUfE.js +0 -29
@@ -0,0 +1,125 @@
1
+ import test from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { readFileSync, mkdtempSync, mkdirSync, writeFileSync, rmSync } from 'node:fs';
4
+ import { join } from 'node:path';
5
+ import { tmpdir } from 'node:os';
6
+ import { evaluateScope, collectUsage } from './dependency-audit.mjs';
7
+
8
+ const load = name => JSON.parse(readFileSync(new URL(name, import.meta.url), 'utf8'));
9
+ const policy = load('../security/dependency-audit-exceptions.json');
10
+ const now = new Date('2026-10-10T03:00:00Z');
11
+ function fixture(scope = 'core') {
12
+ const audit = { auditReportVersion: 2, vulnerabilities: structuredClone(policy.scopes[scope].knownAuditRows), metadata: { vulnerabilities: { info: 0, low: 0, moderate: 3, high: 0, critical: 0, total: 3 } } };
13
+ const lock = load(scope === 'core' ? '../package-lock.json' : '../web-admin/package-lock.json');
14
+ return { scope, audit, lock, usage: structuredClone(policy.scopes[scope].reviewedUsageFiles), policy: structuredClone(policy), now };
15
+ }
16
+ for (const scope of ['core', 'web-admin']) {
17
+ test(`${scope}: reviewed advisory passes while preserving all three moderate findings`, () => {
18
+ const result = evaluateScope(fixture(scope));
19
+ assert.equal(result.pass, true);
20
+ assert.equal(result.rawCounts.moderate, 3);
21
+ assert.equal(result.rawCounts.total, 3);
22
+ assert.equal(result.exceptedRows, 3);
23
+ assert.equal(result.unexceptedRows, 0);
24
+ });
25
+ }
26
+ test('exception expires at the exact boundary', () => {
27
+ const input = fixture(); input.now = new Date(policy.expiresAt);
28
+ assert.equal(evaluateScope(input).pass, false);
29
+ });
30
+ test('exception cannot begin before the approval period or exceed 30 days', () => {
31
+ const input = fixture(); input.now = new Date('2026-10-09T23:59:59Z');
32
+ assert.equal(evaluateScope(input).pass, false);
33
+ input.now = now; input.policy.expiresAt = '2026-11-10T00:00:00Z';
34
+ assert.equal(evaluateScope(input).pass, false);
35
+ });
36
+ test('a new moderate finding is blocked rather than globally ignored', () => {
37
+ const input = fixture();
38
+ input.audit.vulnerabilities.newPackage = { name: 'newPackage', severity: 'moderate', via: [{ url: 'https://github.com/advisories/GHSA-new' }], nodes: ['node_modules/newPackage'] };
39
+ input.audit.metadata.vulnerabilities.moderate++;
40
+ input.audit.metadata.vulnerabilities.total++;
41
+ const result = evaluateScope(input);
42
+ assert.equal(result.pass, false); assert.equal(result.rawCounts.moderate, 4); assert.equal(result.unexceptedRows, 1);
43
+ });
44
+ test('an additional advisory on the accepted package is blocked', () => {
45
+ const input = fixture(); input.audit.vulnerabilities['sprintf-js'].via.push({ url: 'https://github.com/advisories/GHSA-new', severity: 'high' });
46
+ assert.equal(evaluateScope(input).pass, false);
47
+ });
48
+ test('adding an unrelated advisory to both policy and audit cannot broaden the exception', () => {
49
+ const input = fixture();
50
+ const row = { name: 'anotherPackage', severity: 'moderate', via: [{ url: 'https://github.com/advisories/GHSA-new', severity: 'moderate' }], nodes: ['node_modules/anotherPackage'] };
51
+ input.policy.scopes.core.knownAuditRows.anotherPackage = structuredClone(row);
52
+ input.audit.vulnerabilities.anotherPackage = row;
53
+ input.audit.metadata.vulnerabilities.moderate++;
54
+ input.audit.metadata.vulnerabilities.total++;
55
+ assert.equal(evaluateScope(input).pass, false);
56
+ });
57
+ test('changing or appending an advisory in both policy and audit is blocked', () => {
58
+ const input = fixture();
59
+ for (const rows of [input.policy.scopes.core.knownAuditRows, input.audit.vulnerabilities]) {
60
+ rows['sprintf-js'].via[0].url = 'https://github.com/advisories/GHSA-new';
61
+ }
62
+ assert.equal(evaluateScope(input).pass, false);
63
+ const next = fixture();
64
+ for (const rows of [next.policy.scopes.core.knownAuditRows, next.audit.vulnerabilities]) {
65
+ rows['sprintf-js'].via.push({ url: 'https://github.com/advisories/GHSA-new', severity: 'moderate' });
66
+ }
67
+ assert.equal(evaluateScope(next).pass, false);
68
+ });
69
+ test('rewriting the reviewed dependency chain in both policy and audit is blocked', () => {
70
+ const input = fixture();
71
+ for (const rows of [input.policy.scopes.core.knownAuditRows, input.audit.vulnerabilities]) {
72
+ rows.argparse.via = ['anotherPackage'];
73
+ rows['sprintf-js'].effects = ['anotherPackage'];
74
+ }
75
+ assert.equal(evaluateScope(input).pass, false);
76
+ });
77
+ test('removing a reviewed policy row cannot redefine the approved exception', () => {
78
+ const input = fixture();
79
+ delete input.policy.scopes.core.knownAuditRows.argparse;
80
+ delete input.audit.vulnerabilities.argparse;
81
+ input.audit.metadata.vulnerabilities.moderate--;
82
+ input.audit.metadata.vulnerabilities.total--;
83
+ assert.equal(evaluateScope(input).pass, false);
84
+ });
85
+ test('a changed audit node or suggested fix cannot silently broaden the exception', () => {
86
+ const input = fixture(); input.audit.vulnerabilities['sprintf-js'].nodes.push('node_modules/new/node_modules/sprintf-js');
87
+ assert.equal(evaluateScope(input).pass, false);
88
+ const next = fixture(); next.audit.vulnerabilities['sprintf-js'].fixAvailable = true;
89
+ assert.equal(evaluateScope(next).pass, false);
90
+ });
91
+ test('a changed dependency version or additional installed copy is blocked', () => {
92
+ const input = fixture(); input.lock.packages['node_modules/mammoth'].version = '1.13.0';
93
+ assert.equal(evaluateScope(input).pass, false);
94
+ const next = fixture(); next.lock.packages['node_modules/new/node_modules/sprintf-js'] = { version: '1.0.3' };
95
+ assert.equal(evaluateScope(next).pass, false);
96
+ });
97
+ test('a new package consuming the same vulnerable copy is blocked', () => {
98
+ const input = fixture(); input.lock.packages['node_modules/new-consumer'] = { version: '1.0.0', dependencies: { 'sprintf-js': '~1.0.2' } };
99
+ assert.equal(evaluateScope(input).pass, false);
100
+ });
101
+ test('new CLI usage and modified reviewed library usage are blocked', () => {
102
+ const input = fixture(); input.usage['src/new-cli.ts'] = 'unreviewed';
103
+ assert.equal(evaluateScope(input).pass, false);
104
+ const next = fixture(); next.usage['src/adapters/llm/file.ts'] = 'modified';
105
+ assert.equal(evaluateScope(next).pass, false);
106
+ });
107
+ test('filesystem inventory detects a new source CLI and package script CLI', () => {
108
+ const root = mkdtempSync(join(tmpdir(), 'dependency-audit-usage-'));
109
+ try {
110
+ mkdirSync(join(root, 'src'));
111
+ writeFileSync(join(root, 'src/new-cli.ts'), "spawn('mammoth', ['input.docx']);\n");
112
+ writeFileSync(join(root, 'package.json'), JSON.stringify({ scripts: { convert: 'mammoth input.docx' } }));
113
+ const usage = collectUsage(root, 'core');
114
+ assert.ok(usage['src/new-cli.ts']);
115
+ assert.ok(usage['package.json#scripts.convert']);
116
+ const input = fixture(); input.usage = usage;
117
+ assert.equal(evaluateScope(input).pass, false);
118
+ } finally { rmSync(root, { recursive: true, force: true }); }
119
+ });
120
+ test('failed audit payload and misleading aggregate counts fail closed', () => {
121
+ const input = fixture(); input.audit.error = { code: 'EACCESS' };
122
+ assert.equal(evaluateScope(input).pass, false);
123
+ const next = fixture(); next.audit.metadata.vulnerabilities.total = 0;
124
+ assert.equal(evaluateScope(next).pass, false);
125
+ });
@@ -275,7 +275,7 @@ write_env() {
275
275
  TOOL_SECRET="${DEMO_TOOL_SECRET:-$(secret)}"
276
276
  CLIENT_TOKEN="${DEMO_CLIENT_TOKEN:-$(secret)}"
277
277
  IMAGE_TAG="${BAILING_IMAGE_TAG:-$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$APP_DIR/package.json" | head -1)}"
278
- [ -n "$IMAGE_TAG" ] || IMAGE_TAG="0.9.0"
278
+ [ -n "$IMAGE_TAG" ] || IMAGE_TAG="0.9.1"
279
279
  IMAGE_REGISTRY="${BAILING_IMAGE_REGISTRY:-$DEFAULT_IMAGE_REGISTRY}"
280
280
  IMAGE_NAMESPACE="${BAILING_IMAGE_NAMESPACE:-$DEFAULT_IMAGE_NAMESPACE}"
281
281
  cat > "$ENV_FILE" <<EOF
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/env python3
2
+ """Validate the pinned scanner's JSON; successful collection is not compliance."""
3
+
4
+ import collections
5
+ import json
6
+ import os
7
+ import pathlib
8
+ import re
9
+ import sys
10
+
11
+ CATALOG = "osps-baseline-2026-08"
12
+ RESULTS = ("Passed", "Failed", "Needs Review", "Not Applicable", "Not Run", "Unknown")
13
+
14
+
15
+ def require(condition, message):
16
+ if not condition:
17
+ raise ValueError(message)
18
+
19
+
20
+ def inspect_results(document):
21
+ require(isinstance(document, dict), "result must be a JSON object")
22
+ require(document.get("service-name") == "pvtr", "unexpected scanner service")
23
+ require(document.get("plugin-name") == "github-repo", "unexpected scanner plugin")
24
+ require(document.get("plugin-uri") == "https://github.com/ossf/pvtr-github-repo-scanner",
25
+ "unexpected scanner source")
26
+ suites = document.get("evaluation-suites")
27
+ require(isinstance(suites, list) and len(suites) == 1, "expected one evaluation suite")
28
+ suite = suites[0]
29
+ require(isinstance(suite, dict), "suite must be an object")
30
+ require(suite.get("catalog-id") == CATALOG, "unexpected assessment catalog")
31
+ require(suite.get("name") == f"pvtr_{CATALOG}", "unexpected assessment suite")
32
+ require(suite.get("corrupted-state") is False, "assessment is incomplete or corrupted")
33
+ require(suite.get("result") in RESULTS, "invalid suite result")
34
+ evaluation_log = suite.get("control-evaluations")
35
+ require(isinstance(evaluation_log, dict), "missing structured control evaluations")
36
+ require(evaluation_log.get("metadata", {}).get("type") == "EvaluationLog",
37
+ "unexpected evaluation artifact type")
38
+ controls = evaluation_log.get("evaluations")
39
+ require(isinstance(controls, list) and controls, "no repository control results")
40
+ control_ids, requirement_ids, requirements = set(), set(), []
41
+ for control in controls:
42
+ require(isinstance(control, dict), "control must be an object")
43
+ ref = control.get("control", {})
44
+ control_id = ref.get("entry-id", "")
45
+ require(ref.get("reference-id") == CATALOG and
46
+ isinstance(control_id, str) and re.fullmatch(r"OSPS-[A-Z]{2}-\d{2}", control_id),
47
+ "invalid control reference")
48
+ require(control_id not in control_ids, "duplicate control result")
49
+ control_ids.add(control_id)
50
+ require(control.get("result") in RESULTS, "invalid control result")
51
+ logs = control.get("assessment-logs")
52
+ require(isinstance(logs, list) and logs, "control has no requirement results")
53
+ for log in logs:
54
+ require(isinstance(log, dict), "requirement must be an object")
55
+ ref = log.get("requirement", {})
56
+ requirement_id = ref.get("entry-id", "")
57
+ require(ref.get("reference-id") == CATALOG and isinstance(requirement_id, str) and
58
+ re.fullmatch(re.escape(control_id) + r"\.\d{2}", requirement_id),
59
+ "invalid requirement reference")
60
+ require(requirement_id not in requirement_ids, "duplicate requirement result")
61
+ requirement_ids.add(requirement_id)
62
+ require(log.get("result") in RESULTS, "invalid requirement result")
63
+ steps = log.get("steps-executed", 0)
64
+ require(type(steps) is int and steps >= 0, "invalid executed-step count")
65
+ if log["result"] not in ("Not Run", "Unknown"):
66
+ require(steps > 0, "requirement result has no executed assessment steps")
67
+ requirements.append(log)
68
+ executed = [log for log in requirements if log.get("steps-executed", 0) > 0
69
+ and log["result"] != "Not Run"]
70
+ require(executed, "no executed repository assessments")
71
+ # This requires observed repository data, not only GitHub-enforced defaults.
72
+ require(any(log["requirement"]["entry-id"] == "OSPS-QA-01.01" and
73
+ log["result"] == "Passed" for log in executed),
74
+ "scanner did not confirm the public repository was read")
75
+ return controls, requirements, executed
76
+
77
+
78
+ def summary(controls, requirements, executed):
79
+ lines = ["## OSPS Baseline collection", "", f"Catalog: `{CATALOG}` · Maturity Level 1", "",
80
+ "| Result | Controls | Requirements |", "|:--|--:|--:|"]
81
+ control_counts = collections.Counter(control["result"] for control in controls)
82
+ requirement_counts = collections.Counter(log["result"] for log in requirements)
83
+ lines += [f"| {result} | {control_counts[result]} | {requirement_counts[result]} |"
84
+ for result in RESULTS]
85
+ lines += ["", f"Validated {len(controls)} controls and {len(requirements)} requirements; "
86
+ f"{len(executed)} requirements have executed results.", "",
87
+ "Collection succeeded. This does not mean all controls passed. "
88
+ "Needs Review, Unknown and Not Run remain unresolved; the scanner's "
89
+ "'Possible' log count is not a pass count."]
90
+ findings = [log for log in requirements if log["result"] in ("Failed", "Needs Review", "Unknown")]
91
+ if findings:
92
+ lines += ["", "### Findings requiring follow-up", "", "| Requirement | Result |",
93
+ "|:--|:--|"]
94
+ lines += [f"| {log['requirement']['entry-id']} | {log['result']} |" for log in findings]
95
+ return "\n".join(lines) + "\n"
96
+
97
+
98
+ def main():
99
+ if len(sys.argv) != 2:
100
+ raise ValueError("usage: osps-results.py PATH_TO_PVTR_JSON")
101
+ document = json.loads(pathlib.Path(sys.argv[1]).read_text(encoding="utf-8"))
102
+ report = summary(*inspect_results(document))
103
+ print(report, end="")
104
+ if path := os.environ.get("GITHUB_STEP_SUMMARY"):
105
+ with pathlib.Path(path).open("a", encoding="utf-8") as stream:
106
+ stream.write(report)
107
+
108
+
109
+ if __name__ == "__main__":
110
+ try:
111
+ main()
112
+ except (OSError, ValueError, TypeError, AttributeError, KeyError) as error:
113
+ print(f"OSPS result validation failed: {error}", file=sys.stderr)
114
+ sys.exit(1)
@@ -9,7 +9,7 @@ REGISTRY="${BAILING_IMAGE_REGISTRY:-$DEFAULT_REGISTRY}"
9
9
  NAMESPACE="${BAILING_IMAGE_NAMESPACE:-$DEFAULT_NAMESPACE}"
10
10
  PACKAGE_VERSION="$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' package.json | head -1)"
11
11
  TAG="${BAILING_IMAGE_TAG:-$PACKAGE_VERSION}"
12
- [ -n "$TAG" ] || TAG="0.9.0"
12
+ [ -n "$TAG" ] || TAG="0.9.1"
13
13
  NODE_IMAGE="${BAILING_NODE_IMAGE:-node:22-bookworm-slim}"
14
14
  PLATFORM="${BAILING_IMAGE_PLATFORM:-linux/amd64}"
15
15
  PUSH="${BAILING_PUSH_IMAGES:-0}"
@@ -40,6 +40,7 @@ const requiredRepoFiles = [
40
40
  'docs/RELEASE_NOTES_v0.7.0.md',
41
41
  'docs/RELEASE_NOTES_v0.8.0.md',
42
42
  'docs/RELEASE_NOTES_v0.9.0.md',
43
+ 'docs/RELEASE_NOTES_v0.9.1.md',
43
44
  'docs/RELEASE_NOTES_v0.6.1.md',
44
45
  'docs/RELEASE_NOTES_v0.6.0.md',
45
46
  'docs/CHANGELOG.md',
@@ -132,6 +132,7 @@ const requiredFiles = [
132
132
  'docs/RELEASE_NOTES_v0.7.0.md',
133
133
  'docs/RELEASE_NOTES_v0.8.0.md',
134
134
  'docs/RELEASE_NOTES_v0.9.0.md',
135
+ 'docs/RELEASE_NOTES_v0.9.1.md',
135
136
  'docs/RELEASE_NOTES_v0.6.1.md',
136
137
  'docs/RELEASE_NOTES_v0.6.0.md',
137
138
  'docs/CHANGELOG.md',
@@ -0,0 +1,192 @@
1
+ {
2
+ "version": 1,
3
+ "owner": "Jingchuan Nie",
4
+ "advisory": "https://github.com/advisories/GHSA-hp3w-g68c-fv3c",
5
+ "approvedFrom": "2026-10-10T00:00:00Z",
6
+ "expiresAt": "2026-11-09T00:00:00Z",
7
+ "reason": "No patched sprintf-js release is available; retain reviewed library-only DOCX usage. Do not apply the suggested major downgrade to mammoth 0.3.29.",
8
+ "scopes": {
9
+ "core": {
10
+ "lockPath": "package-lock.json",
11
+ "knownAuditRows": {
12
+ "argparse": {
13
+ "name": "argparse",
14
+ "severity": "moderate",
15
+ "isDirect": false,
16
+ "via": [
17
+ "sprintf-js"
18
+ ],
19
+ "effects": [
20
+ "mammoth"
21
+ ],
22
+ "range": "1.0.0 - 1.0.10",
23
+ "nodes": [
24
+ "node_modules/argparse"
25
+ ],
26
+ "fixAvailable": {
27
+ "name": "mammoth",
28
+ "version": "0.3.29",
29
+ "isSemVerMajor": true
30
+ }
31
+ },
32
+ "mammoth": {
33
+ "name": "mammoth",
34
+ "severity": "moderate",
35
+ "isDirect": true,
36
+ "via": [
37
+ "argparse"
38
+ ],
39
+ "effects": [],
40
+ "range": ">=0.3.30",
41
+ "nodes": [
42
+ "node_modules/mammoth"
43
+ ],
44
+ "fixAvailable": {
45
+ "name": "mammoth",
46
+ "version": "0.3.29",
47
+ "isSemVerMajor": true
48
+ }
49
+ },
50
+ "sprintf-js": {
51
+ "name": "sprintf-js",
52
+ "severity": "moderate",
53
+ "isDirect": false,
54
+ "via": [
55
+ {
56
+ "source": 1241202,
57
+ "name": "sprintf-js",
58
+ "dependency": "sprintf-js",
59
+ "title": "sprintf-js vulnerable to denial of service through unbounded precision specifiers",
60
+ "url": "https://github.com/advisories/GHSA-hp3w-g68c-fv3c",
61
+ "severity": "moderate",
62
+ "cwe": [
63
+ "CWE-1284"
64
+ ],
65
+ "cvss": {
66
+ "score": 5.3,
67
+ "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
68
+ },
69
+ "range": "<=1.1.3"
70
+ }
71
+ ],
72
+ "effects": [
73
+ "argparse"
74
+ ],
75
+ "range": "*",
76
+ "nodes": [
77
+ "node_modules/sprintf-js"
78
+ ],
79
+ "fixAvailable": {
80
+ "name": "mammoth",
81
+ "version": "0.3.29",
82
+ "isSemVerMajor": true
83
+ }
84
+ }
85
+ },
86
+ "packageVersions": {
87
+ "node_modules/argparse": "1.0.10",
88
+ "node_modules/mammoth": "1.12.0",
89
+ "node_modules/sprintf-js": "1.0.3"
90
+ },
91
+ "dependencyReferences": [
92
+ "<root>|dependencies|mammoth|^1.12.0",
93
+ "node_modules/argparse|dependencies|sprintf-js|~1.0.2",
94
+ "node_modules/mammoth|dependencies|argparse|~1.0.3"
95
+ ],
96
+ "reviewedUsageFiles": {
97
+ "src/adapters/llm/file.ts": "0c101ab6d18ac544285e3f0c9efdf0584d8833327625ff88a42fc51af9097f7a"
98
+ }
99
+ },
100
+ "web-admin": {
101
+ "lockPath": "web-admin/package-lock.json",
102
+ "knownAuditRows": {
103
+ "argparse": {
104
+ "name": "argparse",
105
+ "severity": "moderate",
106
+ "isDirect": false,
107
+ "via": [
108
+ "sprintf-js"
109
+ ],
110
+ "effects": [
111
+ "mammoth"
112
+ ],
113
+ "range": "1.0.0 - 1.0.10",
114
+ "nodes": [
115
+ "node_modules/argparse"
116
+ ],
117
+ "fixAvailable": {
118
+ "name": "mammoth",
119
+ "version": "0.3.29",
120
+ "isSemVerMajor": true
121
+ }
122
+ },
123
+ "mammoth": {
124
+ "name": "mammoth",
125
+ "severity": "moderate",
126
+ "isDirect": true,
127
+ "via": [
128
+ "argparse"
129
+ ],
130
+ "effects": [],
131
+ "range": ">=0.3.30",
132
+ "nodes": [
133
+ "node_modules/mammoth"
134
+ ],
135
+ "fixAvailable": {
136
+ "name": "mammoth",
137
+ "version": "0.3.29",
138
+ "isSemVerMajor": true
139
+ }
140
+ },
141
+ "sprintf-js": {
142
+ "name": "sprintf-js",
143
+ "severity": "moderate",
144
+ "isDirect": false,
145
+ "via": [
146
+ {
147
+ "source": 1241202,
148
+ "name": "sprintf-js",
149
+ "dependency": "sprintf-js",
150
+ "title": "sprintf-js vulnerable to denial of service through unbounded precision specifiers",
151
+ "url": "https://github.com/advisories/GHSA-hp3w-g68c-fv3c",
152
+ "severity": "moderate",
153
+ "cwe": [
154
+ "CWE-1284"
155
+ ],
156
+ "cvss": {
157
+ "score": 5.3,
158
+ "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
159
+ },
160
+ "range": "<=1.1.3"
161
+ }
162
+ ],
163
+ "effects": [
164
+ "argparse"
165
+ ],
166
+ "range": "*",
167
+ "nodes": [
168
+ "node_modules/sprintf-js"
169
+ ],
170
+ "fixAvailable": {
171
+ "name": "mammoth",
172
+ "version": "0.3.29",
173
+ "isSemVerMajor": true
174
+ }
175
+ }
176
+ },
177
+ "packageVersions": {
178
+ "node_modules/argparse": "1.0.10",
179
+ "node_modules/mammoth": "1.12.0",
180
+ "node_modules/sprintf-js": "1.0.3"
181
+ },
182
+ "dependencyReferences": [
183
+ "<root>|dependencies|mammoth|^1.12.0",
184
+ "node_modules/argparse|dependencies|sprintf-js|~1.0.2",
185
+ "node_modules/mammoth|dependencies|argparse|~1.0.3"
186
+ ],
187
+ "reviewedUsageFiles": {
188
+ "web-admin/src/pages/Kb.vue": "272fc1c16649e9e31d0f50c28d6d5e7ff7122f26ecf6d40f7f7f064d696979bd"
189
+ }
190
+ }
191
+ }
192
+ }