Skip to content

Upgrade fast-json-patch to patched version via override#9045

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/refactor-json-patch-vulnerability
Draft

Upgrade fast-json-patch to patched version via override#9045
Copilot wants to merge 2 commits intomasterfrom
copilot/refactor-json-patch-vulnerability

Conversation

Copy link
Contributor

Copilot AI commented Jan 27, 2026

The project pulled in vulnerable fast-json-patch (prototype pollution ≤3.1.0) transitively via ajv-cli. This refactor forces the patched 3.1.1 release to close the exposure.

How the feature works? / How did you fix the issue?

  • Dependency override: Added a root npm override to pin fast-json-patch to 3.1.1, covering the ajv-cli transitive chain.
  • Lock refresh: Regenerated package-lock.json to lock the new version and record the override.

Example override:

{
  "overrides": {
    "nth-check": "^2.1.1",
    "fast-json-patch": "3.1.1"
  }
}

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request
Original prompt

This section details on the original issue you should resolve

<issue_title>Refactor: Starcounter-Jack JSON-Patch Prototype Pollution vulnerability</issue_title>
<issue_description>A vulnerability has been found in Starcounter-Jack JSON-Patch up to 3.1.0 and classified as problematic. This vulnerability affects unknown code. The manipulation leads to improperly controlled modification of object prototype attributes ('prototype pollution'). The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 3.1.1 can address this issue. The name of the patch is 7ad6af41eabb2d799f698740a91284d762c955c9. It is recommended to upgrade the affected component. VDB-216778 is the identifier assigned to this vulnerability.

Solution: Update fast-json-patch library to latest version without overrides, update parent dependency
</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 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.

Copilot AI changed the title [WIP] Fix Starcounter-Jack JSON-Patch prototype pollution vulnerability Upgrade fast-json-patch to patched version via override Jan 27, 2026
Copilot AI requested a review from AlexeyGirin January 27, 2026 09:37
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.

Refactor: Starcounter-Jack JSON-Patch Prototype Pollution vulnerability

2 participants