Skip to content

fix(security): patch ws, hono, uuid, axios CVEs across examples#37

Merged
yosriady merged 2 commits into
mainfrom
claude/determined-hopper-16lw14
Jun 16, 2026
Merged

fix(security): patch ws, hono, uuid, axios CVEs across examples#37
yosriady merged 2 commits into
mainfrom
claude/determined-hopper-16lw14

Conversation

@yosriady

@yosriady yosriady commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolves the Aikido dependency alerts for ws, hono, uuid, and axios across the example apps by forcing patched transitive versions through pnpm overrides and regenerating each lockfile.

Package Advisory Fixed to Notes
ws CVE-2026-45736 8.20.1 8.x line only; existing 7.x pins (e.g. 7.5.10) preserved
hono GHSA-88fw-hqm2-52qc + related (17 advisories) 4.12.25 comprehensive fix for all flagged hono advisories
uuid CVE-2026-41907 11.1.1 scoped to the flagged 8.x/9.x line
axios multiple (SSRF / proto-pollution / info-leak) 1.16.1 / 0.32.0 1.x → 1.16.1; with-thirdweb 0.x → 0.32.0

How

The pnpm‑11 examples read overrides from pnpm-workspace.yaml (not package.json pnpm.overrides), so entries were added there — matching the repo's existing Aikido-remediation convention. with-openfort/backend is on pnpm 9 and uses package.json pnpm.overrides. Selectors target the vulnerable ranges (e.g. ws@>=8.0.0 <8.20.1: 8.20.1) so any affected version in the branch is patched, and each lockfile was regenerated with the example's pinned pnpm version.

uuid scoping (note for reviewer)

Commit #24 deliberately scoped the uuid override to 11.x to avoid bumping transitive uuid 8.3.2/9.0.1, which were then "outside the flagged CVE." CVE-2026-41907 now flags exactly those versions, so this PR widens the selector to uuid@>=8.0.0 <11.1.1 → 11.1.1. It still leaves the unflagged ancient (3.3.2, 7.0.3) and newer (14.0.0) transitive copies untouched to avoid unrelated cross-major churn.

Scope

  • with-angular excluded — not flagged for any of these, and re-resolving hono there conflicts with its Angular security-patch release-age pins.
  • getformo/formono (also listed in the alerts) is a separate repo, outside this PR's scope.

Verification

  • All 18 changed lockfiles: no vulnerable ws/hono/uuid/axios versions remain within the flagged ranges.
  • Build + pnpm audit --prod run locally for every changed example (CI matrix replicated); the Build Examples workflow validates the rest.

https://claude.ai/code/session_01CaVCXJd9wtcjwjXTizs6b1


Generated by Claude Code


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Force patched transitive versions via pnpm overrides
(pnpm-workspace.yaml for pnpm-11 examples; package.json pnpm.overrides
for with-openfort/backend on pnpm 9). Lockfiles regenerated with each
example's pinned pnpm version.

- ws -> 8.20.1   (CVE-2026-45736). 8.x line only; existing 7.x pins
  such as 7.5.10 are preserved.
- hono -> 4.12.25 (GHSA-88fw-hqm2-52qc and related advisories).
- uuid -> 11.1.1 (CVE-2026-41907). Scoped to the flagged 8.x/9.x line
  (uuid@>=8.0.0 <11.1.1); unflagged 3.x/7.x and 14.x transitive copies
  are left untouched to avoid unrelated cross-major churn.
- axios -> 1.16.1 (1.x line) and 0.32.0 (0.x line, with-thirdweb).

Override selectors use vulnerable-range keys so any affected version in
the branch is patched. with-angular is intentionally excluded: it is not
flagged for any of these and re-resolving hono conflicts with its Angular
security-patch release-age pins.

https://claude.ai/code/session_01CaVCXJd9wtcjwjXTizs6b1
@socket-security

socket-security Bot commented Jun 16, 2026

Copy link
Copy Markdown

Dependency limit exceeded — report not shown.

This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report.

Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard.

Socket is always free for open source. If this is a non-commercial open source project, contact us to request a free Team account.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request applies security overrides across multiple workspace configurations and lockfiles to enforce patched transitive dependency versions (such as ws, uuid, hono, and axios) for Aikido CVE remediation. The review feedback recommends wrapping unquoted keys containing special characters (e.g., hono@<4.12.25 and axios@<0.32.0) in single quotes within the overrides block of several pnpm-workspace.yaml files. This change ensures formatting consistency and prevents potential YAML parsing issues.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread with-thirdweb/pnpm-workspace.yaml Outdated
'ws@>=7.0.0 <7.5.10': 7.5.10
'ws@>=8.0.0 <8.17.1': 8.17.1
'ws@>=8.0.0 <8.20.1': 8.20.1
axios@<0.32.0: 0.32.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the axios@<0.32.0 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'axios@<0.32.0': 0.32.0

Comment thread with-dynamic/pnpm-workspace.yaml Outdated
'uuid@>=11.0.0 <11.1.1': 11.1.1
'axios@>=1.0.0 <1.16.1': 1.16.1
'ws@>=8.0.0 <8.20.1': 8.20.1
hono@<4.12.25: 4.12.25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the hono@<4.12.25 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'hono@<4.12.25': 4.12.25

Comment thread with-farcaster/pnpm-workspace.yaml Outdated
# Security: force patched transitive versions (Aikido CVE remediation).
overrides:
'ws@>=8.0.0 <8.20.1': 8.20.1
hono@<4.12.25: 4.12.25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the hono@<4.12.25 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'hono@<4.12.25': 4.12.25

Comment thread with-metamask/pnpm-workspace.yaml Outdated
# Security: force patched transitive versions (Aikido CVE remediation).
overrides:
'ws@>=8.0.0 <8.20.1': 8.20.1
hono@<4.12.25: 4.12.25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the hono@<4.12.25 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'hono@<4.12.25': 4.12.25

'elliptic@<=6.6.0': 6.6.1
'@babel/traverse@<7.23.2': 7.23.2
'ws@>=8.0.0 <8.20.1': 8.20.1
hono@<4.12.25: 4.12.25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the hono@<4.12.25 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'hono@<4.12.25': 4.12.25

Comment thread with-porto/pnpm-workspace.yaml Outdated
# Security: force patched transitive versions (Aikido CVE remediation).
overrides:
'ws@>=8.0.0 <8.20.1': 8.20.1
hono@<4.12.25: 4.12.25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the hono@<4.12.25 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'hono@<4.12.25': 4.12.25

Comment thread with-privy/pnpm-workspace.yaml Outdated
'axios@>=1.0.0 <1.16.1': 1.16.1
'js-cookie@<3.0.6': 3.0.6
'ws@>=8.0.0 <8.20.1': 8.20.1
hono@<4.12.25: 4.12.25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the hono@<4.12.25 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'hono@<4.12.25': 4.12.25

Comment thread with-tempo/pnpm-workspace.yaml Outdated
# Security: force patched transitive versions (Aikido CVE remediation).
overrides:
'ws@>=8.0.0 <8.20.1': 8.20.1
hono@<4.12.25: 4.12.25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the hono@<4.12.25 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'hono@<4.12.25': 4.12.25

Comment thread with-web3-onboard/pnpm-workspace.yaml Outdated
'crypto-es@<2.1.0': 2.1.0
'ws@>=8.0.0 <8.17.1': 8.17.1
'ws@>=8.0.0 <8.20.1': 8.20.1
hono@<4.12.25: 4.12.25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the other keys in the overrides block, please wrap the hono@<4.12.25 key in single quotes. This also prevents potential YAML parsing issues with special characters like @ and <.

  'hono@<4.12.25': 4.12.25

…-data, shell-quote, esbuild)

The first commit cleared the four Aikido alerts, but the CI `audit` job
(`pnpm audit --prod`) surfaces a pre-existing 2026 advisory backlog across
the examples — latent on main because CI only audits changed examples.
This clears every audit gate:

- ws -> 8.21.0: a second advisory (memory-exhaustion DoS) requires
  >=8.21.0, above the 8.20.1 Aikido fix. 7.x line -> 7.5.11.
- form-data -> 4.0.6 / 3.0.5 (high-gate examples that resolve it in prod).
- shell-quote -> 1.8.4 (with-react, with-react-native; matches the pin
  with-crossmint already carries).
- esbuild -> 0.28.1 (with-web3-onboard prod tree).

The form-data and esbuild patches are <7 days old, so the affected
packages (including the platform-specific @esbuild/*) are added to
minimumReleaseAgeExclude. Override keys are quoted for consistency
(addresses automated review feedback).

Verified locally: every example passes `pnpm audit --prod` at its CI gate
level, and builds pass (incl. web3-onboard with esbuild 0.28.1).

https://claude.ai/code/session_01CaVCXJd9wtcjwjXTizs6b1
@yosriady yosriady merged commit bfd16e7 into main Jun 16, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants