jsonata@1.5.1

JSON query and transformation language

  • latest version

    2.2.2

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    14 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the jsonata package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Regular Expression Denial of Service (ReDoS)

    jsonata is a JSON query and transformation language

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the $toMillis function. An attacker can cause resource exhaustion by providing specially crafted inputs that trigger excessive backtracking in the ISO-8601 validation regular expression.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade jsonata to version 2.2.0 or higher.

    <2.2.0
    • M
    Prototype Pollution

    jsonata is a JSON query and transformation language

    Affected versions of this package are vulnerable to Prototype Pollution via several functions, including createFrame() and bind(). An attacker can modify object prototype attributes directly. In an additional vector, the attacker can pollute hasOwnProperty itself, in some instances that use it as a prototype pollution prevention mechanism already.

    How to fix Prototype Pollution?

    Upgrade jsonata to version 2.2.1 or higher.

    <2.2.1
    • H
    Prototype Pollution

    jsonata is a JSON query and transformation language

    Affected versions of this package are vulnerable to Prototype Pollution due to the use of the transform operator to override properties on the Object constructor and prototype. An attack can lead to denial of service, remote code execution, or other unexpected behavior in applications that evaluate user-provided expressions by crafting malicious expressions.

    How to fix Prototype Pollution?

    Upgrade jsonata to version 1.8.7, 2.0.4 or higher.

    >=1.4.0 <1.8.7>=2.0.0 <2.0.4