Skip to content

← Public intelligence

npm package

jsonpath

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

2 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.2npmAmendedPublished

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

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

    Affected
    • npm jsonpath <= 1.2.1
    Fixed in
    1.3.0· Vendor fix available
    Issue
    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…

    Recommended action: Upgrade to 1.3.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. Medium, CVSS 6.6npmAmendedPublished

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

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

    Affected
    • npm jsonpath < 1.2.0
    Fixed in
    1.2.0· Vendor fix available
    Issue
    The value function in jsonpath 1.1.1 lib/index.js is vulnerable to Prototype Pollution.

    Recommended action: Upgrade to 1.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →