Skip to content

chore(root): remediate Dependabot vulnerabilities (#7327) - #7338

Merged
mdmohsin7 merged 1 commit into
mainfrom
rex/root-deps
May 17, 2026
Merged

mdmohsin7 merged 1 commit into
mainfrom
rex/root-deps

Conversation

@mdmohsin7

Copy link
Copy Markdown
Member

Part of #7327 (web Tier 1, service-by-service).

Result

npm audit: 24 → 0 (was 1 critical / 18 high / 3 moderate / 2 low).

Changes (root package.json + package-lock.json only)

  • Non-breaking npm audit fix (2 passes): in-range bumps (expo-file-system 18.0.12→18.1.11, ioredis 5.6.1→5.10.1 — both ^ range)
  • overrides for the 13 residuals (all npm-reported non-breaking; buried under expo-file-system's expo-CLI tooling tree, which root never executes): @xmldom/xmldom ^0.9.8, tar ^7.5.11, postcss ^8.5.10. This cascade-cleared the @expo/* parent advisories (flagged only for bundling vulnerable xmldom/tar).

Validation

Root has no build/test scripts (utility dep-holder: ioredis / expo-file-system / dotenv-cli). Verified via clean npm ci from committed lockfile: tree resolves, direct deps intact within semver range, npm audit → 0. npm ls UNMET-OPTIONAL entries are expo-app peers, unmet by design (root is not an Expo app) and pre-existing on main.

🤖 Generated with Claude Code

@mdmohsin7
mdmohsin7 marked this pull request as ready for review May 17, 2026 17:04
@greptile-apps

greptile-apps Bot commented May 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR remediates 24 npm audit vulnerabilities in the root package.json by bumping expo-file-system and ioredis within their existing ^ ranges and adding an overrides block to force patched versions of @xmldom/xmldom, tar, and postcss for transitive dependents that couldn't be updated automatically.

  • package.json: Adds three overrides entries (@xmldom/xmldom ^0.9.8, tar ^7.5.11, postcss ^8.5.10) to resolve residual advisories buried in the expo-file-system CLI tooling tree; the root has no build or test scripts so these overrides have no runtime impact.
  • package-lock.json: Regenerated after two npm audit fix passes; contains a stray name change from "omi" to "rex+root-deps" that appears to be a worktree-name artifact from the generation environment and should be corrected before merge.

Confidence Score: 4/5

Safe to merge after correcting the lockfile name field; the dependency bumps and overrides are well-scoped to a utility package holder with no build or runtime execution at root.

The lockfile's top-level name was inadvertently changed from "omi" to "rex+root-deps" — a worktree-name leak from the generation environment. It doesn't break npm install or resolution, but it's an incorrect metadata change that will create noise in every future lockfile diff and audit trail, and it should be reverted before this lands on main.

package-lock.json — the name field at line 2 needs to be reverted to "omi".

Important Files Changed

Filename Overview
package.json Adds an overrides block pinning @xmldom/xmldom, tar, and postcss to patched semver ranges to resolve 13 residual Dependabot advisories that npm audit fix couldn't clear automatically.
package-lock.json Lockfile regenerated after two passes of npm audit fix; the top-level name field was inadvertently changed from "omi" to "rex+root-deps", likely a worktree-name artifact. All other changes are version bumps for peer/transitive deps consistent with the security fixes.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[root package.json] --> B[Direct Dependencies]
    A --> C[overrides block]
    B --> D[expo-file-system 18.1.11]
    B --> E[ioredis 5.10.1]
    B --> F[dotenv-cli 8.x]
    D --> G[Expo CLI tooling tree]
    G --> H[xmldom - vulnerable]
    G --> I[tar - vulnerable]
    G --> J[postcss - vulnerable]
    C -->|forces xmldom 0.9.8| H
    C -->|forces tar 7.5.11| I
    C -->|forces postcss 8.5.10| J
    H --> K[npm audit - 0 findings]
    I --> K
    J --> K
Loading

Reviews (1): Last reviewed commit: "chore(root): remediate Dependabot vulner..." | Re-trigger Greptile

Comment thread package-lock.json Outdated
@@ -1,5 +1,5 @@
{
"name": "omi",
"name": "rex+root-deps",

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.

P1 The lockfile name field was changed from "omi" to "rex+root-deps", which appears to be an artifact of the lockfile being regenerated inside a Claude Code worktree (the worktree name leaked into the lockfile). This field should remain "omi" to match the original project identity; while it doesn't affect npm install resolution, it creates confusing metadata and will show up as an unexpected diff for any future lockfile audits.

Suggested change
"name": "rex+root-deps",
"name": "omi",

npm audit 24 → 0 (was 1 critical / 18 high / 3 moderate / 2 low).
- non-breaking `npm audit fix` (2 passes): in-range transitive bumps
  (expo-file-system 18.0.12→18.1.11, ioredis 5.6.1→5.10.1, both ^range)
- overrides for the 13 residuals (all npm-reported non-breaking, buried
  under expo-file-system's expo-CLI tooling tree which root never runs):
    @xmldom/xmldom ^0.9.8, tar ^7.5.11, postcss ^8.5.10
  This cascade-cleared the @expo/* parent advisories (they were flagged
  only for bundling the vulnerable xmldom/tar).

Validated: npm install resolves clean; direct deps intact within semver
range; audit 0. No build/test scripts on root (utility dep holder).
UNMET OPTIONAL deps shown by `npm ls` are expo-app peers, unmet by
design (root is not an Expo app) and pre-existing.
@mdmohsin7

Copy link
Copy Markdown
Member Author

Addressed the P1: package-lock.json top-level name reverted rex+root-deps → omi (root package.json has no name field, so regenerating the lockfile inside a worktree made npm default to the worktree dir name — a one-line metadata fix, no resolution/tree impact). Re-verified after the change: clean npm ci, direct deps in-range, npm audit 0. Force-pushed (now at 347cd07a4).

@mdmohsin7
mdmohsin7 merged commit be8bf4b into main May 17, 2026
2 checks passed
@mdmohsin7
mdmohsin7 deleted the rex/root-deps branch May 17, 2026 17:16
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.

1 participant