Skip to content

Fix npm vulnerabilities: replace jsonpath, override ajv/minimatch#7377

Merged
DennisOSRM merged 2 commits intocopilot/add-overrides-to-package-jsonfrom
copilot/fix-npm-vulnerabilities
Feb 20, 2026
Merged

Fix npm vulnerabilities: replace jsonpath, override ajv/minimatch#7377
DennisOSRM merged 2 commits intocopilot/add-overrides-to-package-jsonfrom
copilot/fix-npm-vulnerabilities

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 20, 2026

npm audit reported 6 vulnerabilities (1 moderate, 5 high) in transitive and direct dependencies.

Changes

  • Replace jsonpathjsonpath-plus: jsonpath has an unfixed arbitrary code injection vulnerability (via unsafe eval). Swapped to jsonpath-plus@^10.4.0, updating the call site in scripts/osrm-runner.js:

    // before
    jp.query(json, filter)
    // after
    JSONPath({path: filter, json: json})
  • Add ajv override (>=6.14.0): Forces patched version for transitive deps affected by a ReDoS in ajv < 6.14.0.

  • Add minimatch override (>=10.2.1): Forces patched version through the faucet → tape → dotignore → minimatch chain, which pinned a vulnerable minimatch < 10.2.1.

Original prompt

Reference: https://github.com/Project-OSRM/osrm-backend/actions/runs/22243414409/job/64352141303#step:5:1

npm says:

6 vulnerabilities (1 moderate, 5 high)

figure out how to fix


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…/minimatch overrides

Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
@DennisOSRM DennisOSRM marked this pull request as ready for review February 20, 2026 22:25
Copilot AI changed the title [WIP] Fix npm vulnerabilities in project dependencies Fix npm vulnerabilities: replace jsonpath, override ajv/minimatch Feb 20, 2026
Copilot AI requested a review from DennisOSRM February 20, 2026 22:26
@DennisOSRM DennisOSRM merged commit 2e5c40e into copilot/add-overrides-to-package-json Feb 20, 2026
@DennisOSRM DennisOSRM deleted the copilot/fix-npm-vulnerabilities branch February 20, 2026 22:27
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.

2 participants