Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

chore(deps): resolve remaining Dependabot alerts (round 2)#14

Merged
roland (hroland) merged 3 commits into
masterfrom
cursor/2026-06-08-dependabot-patching
Jun 8, 2026
Merged

chore(deps): resolve remaining Dependabot alerts (round 2)#14
roland (hroland) merged 3 commits into
masterfrom
cursor/2026-06-08-dependabot-patching

Conversation

@hroland

@hroland roland (hroland) commented Jun 8, 2026

Copy link
Copy Markdown

Summary

Follow-up to the merged cursor/2026-06-06-dependabot-patching round. Resolves the remaining actionable Dependabot alerts by bumping transitive packages to their patched versions via yarn resolutions. No source code changes — purely lockfile/manifest, behavior-preserving. All affected packages are dev/build tooling and are not part of the published dist/.

Alert → resolution

Severity Package Vulnerable Patched How
medium http-proxy-middleware 2.0.7 2.0.9 resolution bump (covers the 2.0.8 + 2.0.9 advisories)
high loader-utils 2.0.3 2.0.4 resolution bump
medium bn.js 4.11.9 (via asn1.js@^4.0.0) 4.12.3 scoped resolution **/asn1.js/bn.js
high semver 5.7.1 (via read-pkg → normalize-package-data@2) 5.7.2 scoped resolution **/read-pkg/normalize-package-data/semver

Why scoped resolutions for bn.js and semver

A blanket bn.js/semver resolution would force unrelated majors down and break consumers:

  • bn.js@^5.2.1 (browserify-rsa/-sign) must stay on 5.2.3 — left untouched.
  • semver@^6 (6.3.1) and semver@^7 (7.8.2) consumers must stay on their majors — left untouched.

Only the specific vulnerable instances are pinned via path-scoped globs. Verified in yarn.lock that 6.x/7.x semver and bn.js 5.x are unchanged.

Residual alerts (no upstream fix available)

Severity Package Status
high ip No patched version (pinned 1.1.9, latest). Dev/build tooling only, not in dist.
high parse-git-config No patched version (pinned 3.0.0). Build tooling (standard-version), not in dist.
low elliptic No patched version (pinned 6.6.1, latest). Build polyfill, not in dist.
medium request Deprecated, no fix (pinned 2.88.2). Transitive dev tooling, not in dist.

These cannot be remediated until upstream ships fixes; they are confined to dev/build dependencies and never shipped to consumers.

Compatibility analysis

  • http-proxy-middleware 2.0.7 → 2.0.9 is a patch within 2.0.x; the proxy API (createProxyMiddleware, Options) is unchanged. Note the 2.0.x copy exists only to satisfy the lockfile (the module's own dependencies use http-proxy-middleware@^3.0.5), so this bump has zero runtime impact on the published module.
  • loader-utils, bn.js, semver bumps are patch-level within their respective majors — API compatible.

Test plan / verification (vs untouched origin/master)

  • yarn install — clean, lockfile saved.
  • yarn lintpasses.
  • yarn build — pre-existing TS failure in src/index.ts (createProxyMiddleware is called with the v2 two-arg signature while the direct http-proxy-middleware@^3.0.5 dep exposes the v3 single-arg types). Reproduces identically on base — not introduced by this PR. The index.js artifact still emits; only the .d.ts step exits 1.
  • yarn jest — fails with Cannot find module '@babel/plugin-transform-runtime' (required by the @nuxt/test-utils jest preset but absent from the committed lockfile). Reproduces byte-for-byte on base — pre-existing environment issue, not introduced by this PR.

Both pre-existing failures are unrelated to dependency security and out of scope for this round per the minimal/behavior-preserving constraint.

Made with Cursor

Summary by CodeRabbit

  • Chores
    • Updated transitive dependency overrides to newer versions for improved compatibility and stability.
  • Bug Fixes
    • Updated proxy middleware integration to match the newer proxy library API, resolving proxy route handling inconsistencies and improving request forwarding reliability.

Bump transitive packages to patched versions via yarn resolutions:
- http-proxy-middleware 2.0.7 -> 2.0.9 (CVEs in lockfile copy)
- loader-utils 2.0.3 -> 2.0.4
- bn.js ^4.0.0 (asn1.js) -> 4.12.3 (scoped; leaves bn.js 5.x intact)
- semver 5.7.1 (read-pkg/normalize-package-data) -> 5.7.2 (scoped; leaves 6.x/7.x intact)

All affected packages are dev/build tooling, not in published dist.
Behavior-preserving: no source changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@hroland
roland (hroland) requested a review from a team as a code owner June 8, 2026 01:01
@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 115f1878-c123-4516-b4ff-ffc0153688d7

📥 Commits

Reviewing files that changed from the base of the PR and between 99645c1 and ea850f3.

📒 Files selected for processing (1)
  • src/index.ts

Walkthrough

Pins several transitive dependencies in package.json resolutions and updates src/index.ts to call createProxyMiddleware with a single merged options object, setting pathFilter from proxyEntry.context.

Changes

Resolutions and proxy adapter

Layer / File(s) Summary
Resolutions updates
package.json
Adds forced resolutions entries for **/asn1.js/bn.js and **/read-pkg/normalize-package-data/semver, and updates resolutions overrides for http-proxy-middleware and loader-utils to pinned versions.
Proxy middleware options adapter
src/index.ts
Replaces createProxyMiddleware usage to pass a single options object by merging proxyEntry.options and setting pathFilter to proxyEntry.context when registering server middleware.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • extracard/nuxt-proxy-module#11: Both PRs modify package.json resolutions to pin the same transitive dependencies, particularly http-proxy-middleware and loader-utils.

Poem

🐰 I hopped through package trees with glee,
Pinned versions snug as nests on a tree,
Then shaped the proxy's single call,
Merged options tidy, neat for all,
🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: resolving Dependabot security alerts through dependency version bumps in package.json resolutions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/2026-06-08-dependabot-patching

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Line 45: package.json currently lists two conflicting entries for
http-proxy-middleware (a resolutions pin "http-proxy-middleware": "2.0.9" and a
direct dependency "http-proxy-middleware": "^3.0.5") which causes both 2.0.9 and
3.0.5 to be installed; fix by either removing the resolutions entry if you
actually need the direct ^3.0.5, or by changing the direct dependency
"http-proxy-middleware" (the package.json key) to the exact version "2.0.9" so
the resolution and the direct dep match and only one version is installed, then
run yarn install and verify with yarn why http-proxy-middleware and inspecting
yarn.lock that only 2.0.9 remains; also investigate why the 2.0.9 pin was
originally added (search commit/PR notes or run yarn why to find which package
required 2.x) and document/remove the pin if it’s unnecessary.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 45ca9dc0-15bf-4360-a234-68f7fc802a09

📥 Commits

Reviewing files that changed from the base of the PR and between 0df68bc and 9425859.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (1)
  • package.json

Comment thread package.json Outdated
@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 5 file(s) based on 1 unresolved review comment.

Files modified:

  • dist/index.d.ts
  • dist/index.js
  • package.json
  • src/index.ts
  • yarn.lock

Commit: 99645c1c63086c62447dc231329006f21781895d

The changes have been pushed to the cursor/2026-06-08-dependabot-patching branch.

Time taken: 5m 25s

Fixed 5 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/index.ts (1)

1-44: ⚠️ Potential issue | 🟡 Minor

Fix PR description inconsistency (http-proxy-middleware version + source-change scope)

yarn.lock resolves http-proxy-middleware to v3.0.5 (http-proxy-middleware@^3.0.5version "3.0.5"); there are no http-proxy-middleware v2.x entries. The 2.0.7 / 2.0.9 versions that appear in yarn.lock belong to other packages (e.g., conventional-changelog-*, proxy-addr), not http-proxy-middleware.

Meanwhile, src/index.ts includes v3-style usage (createProxyMiddleware(middlewareOptions) and pathFilter passed via options), so the PR objective of “no source code changes; only lockfile/manifest edits” and the stated http-proxy-middleware bump 2.0.7 → 2.0.9 don’t match what’s present in the repo—please update the PR description (or document the actual dependency that was bumped and why source changes were required).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/index.ts` around lines 1 - 44, The PR description is inconsistent with
the code: src/index.ts already uses http-proxy-middleware v3 APIs
(createProxyMiddleware and pathFilter in middleware options) while the PR text
claims a 2.0.7→2.0.9 bump and “no source changes”; update the PR description to
accurately state which package and version were changed (or that yarn.lock
already resolved http-proxy-middleware@3.0.5), note that source changes were
required to use v3-style API (refer to createProxyMiddleware, pathFilter,
proxyModule and getProxyEntries/HttpProxyOptions), and clarify why the
lockfile/manifest edits and code adjustments were made so the PR message matches
the actual changes.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/index.ts`:
- Around line 30-34: PR description incorrectly claims a v2 API change and a
2.0.7→2.0.9 patch bump with no source changes; update the PR summary to reflect
that this repo uses http-proxy-middleware v3 (see package.json/yarn.lock) and
that src/index.ts intentionally uses the v3 pattern
createProxyMiddleware(middlewareOptions) with pathFilter set from
proxyEntry.context (see middlewareOptions, pathFilter, proxyEntry.context,
createProxyMiddleware). Remove the incorrect statement about
v2/legacyCreateProxyMiddleware and adjust the changelog/PR title to describe the
actual change: wiring context → pathFilter in v3 rather than a no-op patch bump.

---

Outside diff comments:
In `@src/index.ts`:
- Around line 1-44: The PR description is inconsistent with the code:
src/index.ts already uses http-proxy-middleware v3 APIs (createProxyMiddleware
and pathFilter in middleware options) while the PR text claims a 2.0.7→2.0.9
bump and “no source changes”; update the PR description to accurately state
which package and version were changed (or that yarn.lock already resolved
http-proxy-middleware@3.0.5), note that source changes were required to use
v3-style API (refer to createProxyMiddleware, pathFilter, proxyModule and
getProxyEntries/HttpProxyOptions), and clarify why the lockfile/manifest edits
and code adjustments were made so the PR message matches the actual changes.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f11aff0c-385b-44b4-843f-bd24aaceafe2

📥 Commits

Reviewing files that changed from the base of the PR and between 9425859 and 99645c1.

⛔ Files ignored due to path filters (3)
  • dist/index.d.ts is excluded by !**/dist/**
  • dist/index.js is excluded by !**/dist/**
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (2)
  • package.json
  • src/index.ts
💤 Files with no reviewable changes (1)
  • package.json

Comment thread src/index.ts Outdated
@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 1 unresolved review comment.

Files modified:

  • src/index.ts

Commit: ea850f3f6d59fe67b99e072c274fc6befb08f68f

The changes have been pushed to the cursor/2026-06-08-dependabot-patching branch.

Time taken: 4m 50s

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
@hroland
roland (hroland) merged commit 432b0b3 into master Jun 8, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant