Skip to content

build(deps): update dependency jsonpath to v1.3.0 [security]#344

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-jsonpath-vulnerability
Open

build(deps): update dependency jsonpath to v1.3.0 [security]#344
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-jsonpath-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Feb 5, 2026

This PR contains the following updates:

Package Change Age Confidence
jsonpath 1.1.11.3.0 age confidence

JSONPath vulnerable to Prototype Pollution due to insufficient input validation of object keys in lib/index.js

CVE-2025-61140 / GHSA-6c59-mwgh-r2x6

More information

Details

The value function in jsonpath 1.1.1 lib/index.js is vulnerable to Prototype Pollution.

Severity

  • CVSS Score: 6.6 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


jsonpath has Arbitrary Code Injection via Unsafe Evaluation of JSON Path Expressions

CVE-2026-1615 / GHSA-87r5-mp6g-5w5j

More information

Details

Impact

Arbitrary Code Injection (Remote Code Execution & XSS):

A critical security vulnerability affects all versions of the jsonpath package. The library relies on the static-eval module to evaluate JSON Path expressions but fails to properly sanitize or sandbox the input.

This allows an attacker to inject arbitrary JavaScript code into the JSON Path expression. When the library evaluates this expression, the malicious code is executed.

  • Node.js Environments: This leads to Remote Code Execution (RCE), allowing an attacker to compromise the server.
  • Browser Environments: This leads to Cross-Site Scripting (XSS), allowing an attacker to hijack user sessions or exfiltrate data.

Affected Methods:

The vulnerability triggers when untrusted data is passed to any method that evaluates a path, including:

  • jsonpath.query
  • jsonpath.nodes
  • jsonpath.paths
  • jsonpath.value
  • jsonpath.parent
  • jsonpath.apply
Patches

No Patch Available:

Currently, all versions of jsonpath are vulnerable. There is no known patched version of this package that resolves the issue while retaining the current architecture.

Recommendation:

Developers are strongly advised to migrate to a secure alternative (such as jsonpath-plus or similar libraries that do not use eval/static-eval) or strictly validate all JSON Path inputs against a known allowlist.

Workarounds
  • Strict Input Validation: Ensure that no user-supplied data is ever passed directly to jsonpath functions.
  • Sanitization: If user input is unavoidable, implement a strict parser to reject any JSON Path expressions containing executable JavaScript syntax (e.g., parentheses (), script expressions script:, or function calls).
Resources

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

dchester/jsonpath (jsonpath)

v1.3.0

Compare Source

v1.2.1

Compare Source

v1.2.0

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the security label Feb 5, 2026
@renovate renovate Bot requested a review from a team February 5, 2026 16:18
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.56%. Comparing base (3a37686) to head (bbf4a6e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #344   +/-   ##
=======================================
  Coverage   97.56%   97.56%           
=======================================
  Files           6        6           
  Lines         246      246           
=======================================
  Hits          240      240           
  Misses          6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate Bot changed the title build(deps): update dependency jsonpath to v1.2.0 [security] build(deps): update dependency jsonpath to v1.2.1 [security] Feb 12, 2026
@renovate renovate Bot force-pushed the renovate/npm-jsonpath-vulnerability branch 2 times, most recently from 6c17e01 to 1bf6dfb Compare February 18, 2026 00:08
@renovate renovate Bot changed the title build(deps): update dependency jsonpath to v1.2.1 [security] build(deps): update dependency jsonpath to v1.2.0 [security] Feb 18, 2026
@renovate renovate Bot force-pushed the renovate/npm-jsonpath-vulnerability branch from 1bf6dfb to 0c02028 Compare March 5, 2026 16:34
@renovate renovate Bot changed the title build(deps): update dependency jsonpath to v1.2.0 [security] build(deps): update dependency jsonpath to v1.3.0 [security] Mar 19, 2026
@renovate renovate Bot force-pushed the renovate/npm-jsonpath-vulnerability branch from 0c02028 to 6a4650d Compare March 19, 2026 18:47
@renovate renovate Bot changed the title build(deps): update dependency jsonpath to v1.3.0 [security] build(deps): update dependency jsonpath to v1.3.0 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate renovate Bot deleted the renovate/npm-jsonpath-vulnerability branch March 27, 2026 02:52
@renovate renovate Bot changed the title build(deps): update dependency jsonpath to v1.3.0 [security] - autoclosed build(deps): update dependency jsonpath to v1.3.0 [security] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate renovate Bot force-pushed the renovate/npm-jsonpath-vulnerability branch 2 times, most recently from 6a4650d to 107ce65 Compare March 30, 2026 19:03
@renovate renovate Bot changed the title build(deps): update dependency jsonpath to v1.3.0 [security] build(deps): update dependency jsonpath to v1.3.0 [security] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate renovate Bot changed the title build(deps): update dependency jsonpath to v1.3.0 [security] - autoclosed build(deps): update dependency jsonpath to v1.3.0 [security] Apr 27, 2026
@renovate renovate Bot reopened this Apr 27, 2026
@renovate renovate Bot force-pushed the renovate/npm-jsonpath-vulnerability branch 2 times, most recently from 107ce65 to bbf4a6e Compare April 27, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants