Skip to content

chore: fix remaining npm audit findings with overrides#630

Open
mesutoezdil wants to merge 3 commits into
Project-HAMi:masterfrom
mesutoezdil:chore/npm-audit-remaining
Open

chore: fix remaining npm audit findings with overrides#630
mesutoezdil wants to merge 3 commits into
Project-HAMi:masterfrom
mesutoezdil:chore/npm-audit-remaining

Conversation

@mesutoezdil

@mesutoezdil mesutoezdil commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What

Closes the audit findings that plain npm audit fix (#556) cannot reach, via npm overrides scoped to the parents that need them, pinned to exact versions:

  • markdownlint-cli -> js-yaml 4.3.0 (high, GHSA-52cp-r559-cp3m, GHSA-h67p-54hq-rp68), markdown-it 14.3.0 (moderate, GHSA-6v5v-wf23-fmfq) and run-con 1.3.2 (1.3.3 pulls ini@7, which requires Node 22+ while CI runs Node 20)
  • copy-webpack-plugin and css-minimizer-webpack-plugin -> serialize-javascript 7.0.7 (high, RCE and DoS advisories)
  • sockjs -> uuid 11.1.1 (moderate, GHSA-w5hq-g745-h8pq, via webpack-dev-server); deliberately keyed by sockjs rather than nested under webpack-dev-server, so that any future dependency pulling in sockjs also gets the patched uuid instead of reintroducing the vulnerable range

Scoping keeps unrelated subtrees on their own versions (for example mermaid keeps its own uuid). markdownlint-cli itself stays at 0.48.0 because 0.49.x declares engines.node >=22.

After this, npm audit reports 0 vulnerabilities and no package in the tree requires Node above 20.

Testing

  • npm run lint:md passes with the overridden js-yaml, markdown-it and run-con
  • npm run build:fast passes
  • docusaurus start boots and serves HTTP 200 (covers the uuid override in the sockjs dev-server path)

Depends on #556 (branched on top of it, both touch package-lock.json).

Part of #628

Refreshed against latest master to cover advisories published
through Jul 21. Resolves 20 of 47 npm audit findings including
both critical ones. Remaining findings need breaking upgrades
in the Docusaurus toolchain.

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
Copilot AI review requested due to automatic review settings July 22, 2026 12:01
@netlify

netlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

Deploy Preview for project-hami ready!

Name Link
🔨 Latest commit 8d6c00a
🔍 Latest deploy log https://app.netlify.com/projects/project-hami/deploys/6a639917faa8710008590f5a
😎 Deploy Preview https://deploy-preview-630--project-hami.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hami-robot

hami-robot Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mesutoezdil
Once this PR has been reviewed and has the lgtm label, please assign archlitchi for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot
hami-robot Bot requested review from rootsongjc and windsonsea July 22, 2026 12:01
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@mesutoezdil, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f40d6d11-17c3-4657-880f-e859177b2706

📥 Commits

Reviewing files that changed from the base of the PR and between bf4e9cf and 8d6c00a.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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

Pull request overview

This PR aims to eliminate remaining npm audit findings that cannot be resolved via npm audit fix alone by updating a dev tool (markdownlint-cli) and introducing npm overrides for vulnerable transitive dependencies in the Docusaurus/webpack toolchain.

Changes:

  • Bump markdownlint-cli from ^0.48.0 to ^0.49.1.
  • Add npm overrides to force patched versions of serialize-javascript and uuid.
  • Refresh package-lock.json accordingly (including patch bumps across the Docusaurus/webpack dependency graph).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Updates markdownlint-cli and adds security-focused npm overrides.
package-lock.json Locks updated dependency graph reflecting the new markdownlint-cli and override resolutions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json Outdated
Copilot AI review requested due to automatic review settings July 22, 2026 12:27
@mesutoezdil
mesutoezdil force-pushed the chore/npm-audit-remaining branch from 354a3e6 to b4ac3a7 Compare July 22, 2026 12:27

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

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

Comment thread package.json
Copilot AI review requested due to automatic review settings July 22, 2026 12:33
@mesutoezdil
mesutoezdil force-pushed the chore/npm-audit-remaining branch from b4ac3a7 to 7b391d8 Compare July 22, 2026 12:33

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

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

Comment thread package.json
Copilot AI review requested due to automatic review settings July 22, 2026 12:48
@mesutoezdil
mesutoezdil force-pushed the chore/npm-audit-remaining branch from 7b391d8 to eef9988 Compare July 22, 2026 12:48

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

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

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

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

Comment thread package.json
Add npm overrides scoped to the parents that need them, pinned to
exact versions: js-yaml, markdown-it and run-con under
markdownlint-cli, serialize-javascript under copy-webpack-plugin
and css-minimizer-webpack-plugin, and uuid under sockjs. Scoping
keeps unrelated subtrees on their own versions. markdownlint-cli
stays at 0.48.0 and run-con at 1.3.2 because their newer releases
pull deps requiring Node 22 while CI runs Node 20. npm audit now
reports 0 vulnerabilities.

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
Copilot AI review requested due to automatic review settings July 22, 2026 14:00
@mesutoezdil
mesutoezdil force-pushed the chore/npm-audit-remaining branch from 3317689 to 7d87fc2 Compare July 22, 2026 14:00

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

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

package.json:74

  • The lockfile now contains dependencies that declare Node >=20.18.1 (e.g., @easyops-cn/docusaurus-search-local's cheerio and undici). To avoid installs/builds on earlier Node 20 minors that may not be supported, consider declaring the minimum Node version in package.json. Also, these overrides are currently unversioned (apply to any future versions of the same packages); scoping the override keys to the exact package versions present in the lockfile reduces the chance of unintentionally pinning future upgrades to these transitive versions.
  },
  "overrides": {
    "markdownlint-cli": {
      "js-yaml": "4.3.0",
      "markdown-it": "14.3.0",
      "run-con": "1.3.2"

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants