Skip to content

chore(deps): clear qs, node-forge and fixture-app security alerts - #4173

Merged
thymikee merged 1 commit into
mainfrom
security/2026-11-02-deps
Nov 2, 2026
Merged

thymikee merged 1 commit into
mainfrom
security/2026-11-02-deps

Conversation

@thymikee

@thymikee thymikee commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Raises pnpm overrides so no lockfile resolves a version with an open Dependabot alert. Four files: two pnpm-workspace.yaml overrides blocks and their lockfiles. No source, package.json, or CHANGELOG change. Every package is dev-only or in the fixture app; none ships in the published package.

Cleared:

Deliberately left:

Validation

Head 7109ae5ed1, base a42bc35282. check:affected --run passed: 41 checks run, 0 failures, exactCommit=true. Device and integration lanes were skipped, not run. pnpm lint, pnpm build, pnpm format and the fixture pnpm typecheck pass. Repo CI does not build examples/test-app, so its typecheck plus a live createFingerprintAsync run, which walks files through glob 14 and minimatch 11, are the fixture evidence.

The only lockfile additions beyond these packages are @isaacs/nonrecursive-glob-match@1.0.3 (minimatch 11's new dependency) and path-scurry@3.0.0 (glob 14's). Each is a required consequence. pnpm has no minimumReleaseAge configured, and Renovate's 7-day rule sets minimumReleaseAge: null for vulnerability alerts.

pnpm why — root
$ pnpm why qs --depth 2
qs@6.17.1
└─┬ typed-rest-client@2.3.1
  └── @stryker-mutator/core@10.0.0

Found 1 version of qs
$ pnpm why minimatch --depth 3
minimatch@11.0.1
├─┬ @eslint/config-array@0.23.5
│ └─┬ eslint@10.9.1
│   ├── @eslint-community/eslint-utils@4.10.1
│   ├── @nkzw/eslint-plugin@2.0.0
│   ├── @typescript-eslint/utils@8.68.0 [deduped]
│   └── eslint-plugin-perfectionist@5.10.1 [deduped]
├─┬ @stryker-mutator/core@10.0.0
│ ├─┬ @stryker-mutator/vitest-runner@10.0.0
│ │ └── agent-device@0.21.36-dev (devDependencies)
│ └── agent-device@0.21.36-dev (devDependencies)
├─┬ @typescript-eslint/typescript-estree@8.68.0
│ └── @typescript-eslint/utils@8.68.0 [deduped]
└── eslint@10.9.1 [deduped]

Found 1 version of minimatch
pnpm why — examples/test-app
$ pnpm why node-forge --depth 1
node-forge@1.4.2
├── @expo/cli@58.0.3
└── @expo/code-signing-certificates@0.0.6

Found 1 version of node-forge
$ pnpm why decode-uri-component --depth 3
decode-uri-component@0.5.1
└─┬ query-string@7.1.3
  └─┬ expo-router@58.0.4
    ├── @expo/cli@58.0.3
    ├── @expo/router-server@58.0.2 [deduped]
    └── agent-device-test-app@1.0.0 (dependencies)

Found 1 version of decode-uri-component
$ pnpm why minimatch --depth 2
minimatch@11.0.1
├─┬ @expo/fingerprint@0.19.4
│ └── agent-device-test-app@1.0.0 (devDependencies)
└─┬ @expo/fingerprint@0.21.1
  └── expo@58.0.0-preview.3

minimatch@11.0.3
└─┬ glob@14.0.2
  ├── @expo/cli@58.0.3
  ├── @expo/config@58.0.0
  ├── @expo/config-plugins@58.0.2
  ├── @expo/fingerprint@0.19.4
  ├── @expo/fingerprint@0.21.1
  └── @expo/metro-config@58.0.3 [deduped]

Found 2 versions of minimatch
$ pnpm why glob --depth 1
glob@14.0.2
├── @expo/cli@58.0.3
├── @expo/config@58.0.0
├── @expo/config-plugins@58.0.2
├── @expo/fingerprint@0.19.4
├── @expo/fingerprint@0.21.1
└── @expo/metro-config@58.0.3 [deduped]

Found 1 version of glob

View guided diff Turn on auto-fix

Raise the qs override to 6.16.1 for GHSA-6pq8-jhm2-2vcw. The caret resolves to
6.17.1, above the patched floor.

Add a minimatch@10 override for GHSA-g3hv-75wg-m249. 10.2.6 is the last 10.x
release, so the patched 11.0.1 crosses the major. Consumers use the function
call, the constructor, match() and hasMagic(), and all three survived. Checked
@eslint/config-array matching and a project fingerprint run.

In examples/test-app, add node-forge@1 at ^1.4.1 and raise
decode-uri-component to ^0.5.1. Override glob@13 with 14.0.2, which drops the
AbortSignal cancellation bypass. The node-forge update also rejects the nested
DigestAlgorithm forgery that older alerts still list as unpatched.
@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agent-device-website Ready Ready Preview Nov 2, 2026 12:46pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 4 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 5.69 MB 5.66 MB -22.7 kB
Package (unpacked) 5.69 MB 5.66 MB -22.7 kB
Package (download) 1.73 MB 1.72 MB -7.9 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 38.3 ms 38.4 ms +0.1 ms
CLI --help 81.3 ms 78.4 ms -2.8 ms

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel

Verdict: approve

No findings.

Not in the reviewers' prompt (2 files)
  • examples/test-app/pnpm-lock.yaml: generated or a lockfile, so its lines were left out
  • pnpm-lock.yaml: generated or a lockfile, so its lines were left out

Reply under an inline comment with @apex-sentinel-staging note ... or @apex-sentinel-staging pivot ... to re-check that finding.
Comment @apex-sentinel-staging review on this conversation to run a full review.

@thymikee

thymikee commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

The changes look good at 7109ae5. Not blocking: the comment at https://github.com/callstack/agent-device/blob/7109ae5/pnpm-workspace.yaml#L15 calls the minimatch override an exact pin that keeps other majors untouched, but the lock has no other minimatch major. When eslint, typescript-estree and stryker declare minimatch ^11, the override becomes a no-op and the comment goes stale, so you could note that as the point to drop it, or leave it.

The Apple Smoke Tests job (run 41447365914) is still in progress, while the Linux and Android Smoke Tests jobs passed. The diff changes no source, no package.json and no published package dependency, so a failure there would most likely be a host or simulator flake. No conflicts. Before merge, the Apple Smoke Tests job needs to finish green.

I did not run pnpm install, the fixture typecheck, createFingerprintAsync, or the eslint and stryker consumers on minimatch 11 and glob 14, so API compatibility rests on the export surface and your report. I also did not execute the node-forge DigestInfo check for #135, and I did not read the Smoke Tests log.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 2, 2026
@thymikee
thymikee merged commit f3ff6d0 into main Nov 2, 2026
23 of 25 checks passed
@thymikee
thymikee deleted the security/2026-11-02-deps branch November 2, 2026 13:56
@thymikee

thymikee commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

Closing the loop on the two red Apple / Smoke Tests attempts at 7109ae5e before this merged. The lane failure is proven unrelated to this diff:

  • Two attempts, two different scenarios, same binaries. Attempt 1 (125283689398) failed smoke:capture-close: record stop invoked the on-host video-validator Swift compile, which exited 1 with empty stdout/stderr against its 30 s budget (packages/capture-kit/src/recording/video.ts). Attempt 2 (125303573643) failed a different scenario, smoke:automation-input, at click id="open-automation-lab" with selector_not_found — while smoke:capture-close passed that run. Same for the other direction: automation-input passed attempt 1.
  • Same test payload as main. Both attempts and the passing main run at this PR's base (56091566, run 41440339428) restored the identical fixture app (fingerprint.d6b4c1f5e022e54074df584e332d1e0f100c7a0f, Fixture app source: artifact) and the identical prebuilt native runner cache key.
  • The one app-affecting bump cannot reach the failure. decode-uri-component@0.5.1 (via query-string/expo-router) is the only bumped package embedded in the repacked JS bundle (node-forge, glob, minimatch, qs are all absent from the exported bundle, and dist/ references neither qs nor minimatch). A differential fuzz of 0.5.0 vs 0.5.1 over 210k inputs shows output changes only for malformed percent sequences (misaligned %FE%FF/%FF%FE BOM pairs, truncated %C2, stray % before a valid escape). Every URL and app-event payload the smoke scenarios produce is well-formed encodeURIComponent output; the router parse path is parse(url, {decode:false}). The scenario failed on a native testID click before any route parsing.
  • Lane-wide instability today. An unrelated branch (maint/3922, run 41418563993) failed a third different scenario, smoke:form-input, on the same workflow today, while the other two Smoke Tests matrices for this PR passed both times.

Post-merge, main at f3ff6d04 passed CI, Coverage, Integration Tests, Repo Guards & Compatibility, Docs and the Test App Build Cache; the Apple/Android/Linux pushes were superseded and cancelled by concurrency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant