build(deps): pin patched transitive dependency versions#406
Conversation
Remediate remaining lockfile-resolvable alerts by pinning patched transitives in sdks and updating Rust lockfile crates. Updated: flatted@^3 -> 3.4.2, minimatch@^3 -> 3.1.5, minimatch@^5 -> 5.1.8, minimatch@^9 -> 9.0.7, aws-lc-rs -> 1.16.2, aws-lc-sys -> 0.39.0, rustls-webpki@0.103.10. Remaining unpatchable alert: bigint-buffer (#31), advisory reports no patched version (first_patched_version: none / patched_versions: <0.0.0).
📊 TypeScript Coverage ReportCoverage: 33.9% View detailed reportCoverage artifacts have been uploaded to this workflow run. |
Greptile SummaryThis PR remediates multiple Dependabot security alerts by pinning vulnerable transitive dependencies across both the Node ( Confidence Score: 5/5Safe to merge — all changes are lockfile and override pins targeting known CVEs with no functional code modifications. All three changed files are dependency lockfiles or override configs. The approach (pnpm overrides + cargo update --precise) is the correct and idiomatic method for pinning transitive dependencies. The test plan is thorough (pnpm install, pnpm audit, cargo check, cargo tree). No production logic is modified and no P1/P0 issues were found. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Dependabot Alerts] --> B{Ecosystem}
B --> C[npm / pnpm]
B --> D[Rust / Cargo]
C --> C1["sdks/package.json\npnpm.overrides added"]
C1 --> C2["flatted ^3 → 3.4.2\nminimatch ^3 → 3.1.5\nminimatch ^5 → 5.1.8\nminimatch ^9 → 9.0.7"]
C2 --> C3["sdks/pnpm-lock.yaml\nregenerated"]
C3 --> C4["Alerts #67-75, #80, #84\nRemediated ✓"]
D --> D1["cargo update --precise"]
D1 --> D2["aws-lc-rs 1.16.0 → 1.16.2\naws-lc-sys 0.37.1 → 0.39.0\nrustls-webpki 0.103.4 → 0.103.10"]
D2 --> D3["Cargo.lock updated"]
D3 --> D4["Alerts #81-83, #85-86, #88\nRemediated ✓"]
E["bigint-buffer #31\npatched_versions: <0.0.0"] --> F["Unpatchable — no fix available\nRemains unresolved"]
Reviews (1): Last reviewed commit: "build(deps): pin patched transitive depe..." | Re-trigger Greptile |
Summary
sdks/pnpm-lock.yamlandCargo.lock.pnpm.overridespins insdks/package.jsonfor vulnerable transitives:flatted@^3->3.4.2minimatch@^3->3.1.5minimatch@^5->5.1.8minimatch@^9->9.0.7aws-lc-rs1.16.0 -> 1.16.2aws-lc-sys0.37.1 -> 0.39.0rustls-webpki0.103.4 -> 0.103.10Targeted Alerts
#67 #68 #69 #70 #71 #72 #73 #74 #75(minimatch, npm,sdks/pnpm-lock.yaml)#80 #84(flatted, npm,sdks/pnpm-lock.yaml)#81 #82 #83 #85 #86(aws-lc-sys, rust,Cargo.lock)#88(rustls-webpki, rust,Cargo.lock)#31(bigint-buffer, npm,examples/x402/demo/api/pnpm-lock.yaml) —first_patched_version: none/ npm auditpatched_versions: <0.0.0.Test Plan
pnpm install --lockfile-only(insdks/) -> successrg -n "minimatch@3\\.1\\.2|minimatch@5\\.1\\.6|minimatch@9\\.0\\.5|flatted@3\\.3\\.3" sdks/pnpm-lock.yaml-> no matchesrg -n "minimatch@3\\.1\\.5|minimatch@5\\.1\\.8|minimatch@9\\.0\\.7|flatted@3\\.4\\.2" sdks/pnpm-lock.yaml-> matches foundpnpm audit --json(insdks/) -> exit0, vulnerabilities{high: 0, moderate: 0, low: 0, critical: 0}cargo update -p aws-lc-rs --precise 1.16.2-> updatesaws-lc-systo0.39.0cargo update -p rustls-webpki@0.103.4 --precise 0.103.10-> successcargo tree -i aws-lc-sys --workspace-> showsaws-lc-sys v0.39.0cargo tree -i rustls-webpki@0.103.10 --workspace-> showsrustls-webpki v0.103.10cargo check --workspace-> successpnpm audit --json(inexamples/x402/demo/api) ->bigint-bufferadvisory withpatched_versions: <0.0.0Remaining Unresolved Alerts
#31 bigint-bufferis currently unpatchable based on advisory metadata (no patched release).📊 Unit Test Coverage
Unit Test Coverage: 84.0%
View Detailed Coverage Report