Skip to content

chore(deps): refresh lockfile to resolve js-yaml and brace-expansion advisories - #161

Merged
morepriyam merged 1 commit into
mainfrom
chore/security-lockfile-refresh
Aug 12, 2026
Merged

morepriyam merged 1 commit into
mainfrom
chore/security-lockfile-refresh

Conversation

@morepriyam

Copy link
Copy Markdown
Collaborator

Summary

Refreshes package-lock.json to resolve 4 of the 8 open Dependabot security alerts by picking up patched versions that are already permitted by the semver ranges Expo's own packages (and our devDependencies) declare. No package.json changes, no Expo/framework version bumps, no overrides/resolutions added.

Fixes

Not fixed here (tracked separately, need upstream action)

  • feat: persist recorder camera preferences across launches #17 / Chore/brand assets #16 (image-size ICNS/JXL/HEIF DoS) — no patched version exists upstream. image-size's repo is archived, and even the latest release (2.0.2) is still within the vulnerable range per the advisories. It's pulled in transitively via metro (Expo's bundler) — even the newest metro@0.87.0 still depends on image-size@^1.0.2. This needs a fix/replacement from the Metro team; nothing we change locally can resolve it right now.
  • feat(dev): realistic dev-seed fixtures (Git LFS) + generator #2 (uuid missing bounds check in v3/v5/v6 with buf) — the xcode npm package (used internally by @expo/config-plugins to edit .pbxproj files) pins uuid@^7.0.3 and hasn't bumped it even in its latest release (3.0.1). Verified it only calls uuid.v4() with no output buffer, so this specific vulnerable code path (v3()/v5()/v6() with a caller-supplied buffer) isn't actually reachable in our usage — low practical risk while we wait on upstream.
  • feat: foundation — Home/Drafts, SQLite storage, draft-backed recorder #1 (esbuild dev-server DoS) — comes from drizzle-kit's deprecated @esbuild-kit/esm-loader dependency, unrelated to Expo/Metro's dev server (which already uses a patched esbuild). Dev-only; @esbuild-kit only uses esbuild's transform API, not the vulnerable serve() API, so exploitability is effectively nil.

Validation

  • npm ci — reinstalled clean from the updated lockfile, no resolution conflicts
  • npx jest — 126 passed, 16 skipped (pre-existing skips), 0 failures
  • npx eslint . — identical problem count before/after (4281; all pre-existing, unrelated to react-native-video-trim git submodule not being checked out in this environment)
  • npm audit — high/moderate count dropped after the update, confirming the 4 alerts are resolved

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

…advisories

Bumps transitive dependency resolutions already permitted by existing
semver ranges declared by Expo's own packages and devDependencies:

- js-yaml 3.15.0 -> 3.15.1 (babel-plugin-istanbul, dev-only)
- js-yaml 4.3.0 -> 4.3.1 (@expo/xcpretty, eslint's @eslint/eslintrc)
- brace-expansion 5.0.7 -> 5.0.9 (minimatch used by @expo/cli,
  @expo/config, @expo/config-plugins, @expo/fingerprint,
  @expo/metro-config)
- brace-expansion 1.1.16 -> 1.1.18 (eslint's minimatch@3)

No package.json ranges were changed and no Expo/framework versions
were bumped or overridden - these are patch-level fixes already
allowed by the existing dependency graph.

Closes dependabot alerts #14, #13, #11, #8.

Note: the following dependabot alerts remain open and are not
fixable via a lockfile refresh:
- #17, #16 (image-size DoS): no patched version exists upstream;
  image-size is archived and pulled in transitively via metro, even
  on the latest metro/expo releases. Needs an upstream fix in Metro.
- #2 (uuid missing bounds check): the xcode package (used by
  @expo/config-plugins) pins uuid@^7.0.3 and has not bumped it in
  its latest release. Not practically exploitable here since xcode
  only calls uuid.v4() with no output buffer (the affected code path
  is v3()/v5()/v6() with a caller-supplied buffer).
- #1 (esbuild dev server): comes from drizzle-kit's deprecated
  @esbuild-kit/esm-loader dependency, unrelated to Expo/Metro's dev
  server (already patched). Dev-only, low real-world risk since
  @esbuild-kit only uses esbuild's transform API, not serve().

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@morepriyam
morepriyam requested a lite review from Copilot August 12, 2026 01:42

Copilot AI 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.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@morepriyam
morepriyam merged commit 1f942b9 into main Aug 12, 2026
@morepriyam
morepriyam deleted the chore/security-lockfile-refresh branch August 12, 2026 01:45
morepriyam added a commit that referenced this pull request Aug 12, 2026
chore(deps): refresh lockfile to resolve js-yaml and brace-expansion advisories
@morepriyam morepriyam moved this to Done in Scrum Team Jerry Aug 14, 2026
@morepriyam morepriyam self-assigned this Aug 14, 2026
@github-project-automation github-project-automation Bot moved this from Ready to Done in Scrum Team Jerry Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants