Skip to content

fix(deps): unblock Dependabot and bump moment to 2.31.0 - #1138

Merged
susnux merged 3 commits into
mainfrom
fix/dependabot-peer-deps
Oct 11, 2026
Merged

susnux merged 3 commits into
mainfrom
fix/dependabot-peer-deps

Conversation

@GVodyanov

Copy link
Copy Markdown
Contributor

Problem

Every Dependabot npm update has been failing since ~February, so no
security PRs have been opened (82 open alerts, including a direct
moment path-traversal advisory, GHSA-4p3w-j4w9-5jqw).

Cause: @nextcloud/eslint-config@^9.0.0-rc.2 and @nextcloud/vite-config@^2.3.5
now resolve to versions whose peers are ESLint 10 / Vite 7, while we pin
ESLint 9 / Vite 6. Installing from the lockfile works, but any
re-resolution (what Dependabot does) fails with ERESOLVE.

Changes

  • Bump ESLint to 10, Vite to 7, and the matching Nextcloud configs
  • Move devEngines to Node 24 / npm 11 (same as nextcloud-router);
    required because rollup-plugin-node-externals 9 uses RegExp.escape
  • Regenerate package-lock.json (hence the large diff)
  • Bump moment to ^2.31.0 (security fix)

No changes to library source code.

Verification (Node 24.9 / npm 11.6)

  • Fresh npm install resolves without errors
  • npm run build, npm run lint, npm test (9/9), npm run ts:check pass
  • npm audit --omit=dev: 0 vulnerabilities (was: moment + DOMPurify)
  • Remaining dev-only findings (vitest 3, vite-config 2.x toolchain) can
    be handled by Dependabot once this lands

Follow-up

Assisted-by: ClaudeCode:claude-opus-5-5

@GVodyanov GVodyanov added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability 3. to review AI assisted This PR contains AI-assisted commits labels Oct 11, 2026
@GVodyanov
GVodyanov requested a review from susnux October 11, 2026 20:33
Grigory Vodyanov added 3 commits October 11, 2026 22:39
The caret ranges for `@nextcloud/eslint-config` and `@nextcloud/vite-config`
now resolve to versions requiring ESLint 10 and Vite 7, while the project
still pinned ESLint 9 and Vite 6. A plain `npm ci` works from the lockfile,
but any re-resolution fails with ERESOLVE, which breaks all Dependabot
npm updates.

- eslint ^9.31.0 -> ^10.12.0
- @nextcloud/eslint-config ^9.0.0-rc.2 -> ^9.0.1
- vite ^6.3.0 -> ^7.3.7
- @nextcloud/vite-config ^2.3.5 -> ^2.5.4
- devEngines: Node 24 / npm 11 (rollup-plugin-node-externals 9 uses
  `RegExp.escape`, which requires Node 24)
- regenerate package-lock.json and sort package.json as required by the
  new ESLint config

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Grigory Vodyanov <grigory.vodyanov@nextcloud.com>
Fixes a path traversal via crafted non-string locale names
(GHSA-4p3w-j4w9-5jqw / CVE-2026-17495).

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Grigory Vodyanov <grigory.vodyanov@nextcloud.com>
The workflow only read `engines` and fell back to npm ^10, which now
conflicts with `devEngines` requiring npm ^11. Use the same
parse-package-engines action as nextcloud-router.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Grigory Vodyanov <grigory.vodyanov@nextcloud.com>
@GVodyanov
GVodyanov force-pushed the fix/dependabot-peer-deps branch from b1dec00 to 7cfdafa Compare October 11, 2026 20:40
@susnux
susnux merged commit 4c19723 into main Oct 11, 2026
12 checks passed
@susnux
susnux deleted the fix/dependabot-peer-deps branch October 11, 2026 20:41
@susnux

susnux commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

(should not be a problem as apps can just installer more recent subdependencies themself)

@GVodyanov

Copy link
Copy Markdown
Contributor Author

@susnux
image

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

Labels

3. to review AI assisted This PR contains AI-assisted commits dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants