org.mvnpm:jsondiffpatch@0.7.2

  • latest version

    0.7.7

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:jsondiffpatch 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
    • L
    Cross-site Scripting (XSS)

    org.mvnpm:jsondiffpatch is a JSON diff & patch (object and array diff, text diff, multiple output formats)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the formatters.html.format() and formatters.annotated.format() functions, which do not HTML-escape the array-move destination index before embedding it in generated HTML. An attacker who controls a delta passed to either formatter can inject arbitrary markup that executes as script in the application's origin when the output is rendered.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:jsondiffpatch to version 0.7.7 or higher.

    [,0.7.7)
    • M
    Cross-site Scripting (XSS)

    org.mvnpm:jsondiffpatch is a JSON diff & patch (object and array diff, text diff, multiple output formats)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the annotated formatter due to improper sanitization of JSON values and property names. If an application compares untrusted JSON/object data and renders annotated formatter output in the DOM, attacker-controlled HTML can be interpreted by the browser, resulting in XSS.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:jsondiffpatch to version 0.7.6 or higher.

    [,0.7.6)
    • H
    Prototype Pollution

    org.mvnpm:jsondiffpatch is a JSON diff & patch (object and array diff, text diff, multiple output formats)

    Affected versions of this package are vulnerable to Prototype Pollution via the jsondiffpatch.patch() and jsondiffpatch/formatters/jsonpatch.patch() APIs. An attacker can perform prototype pollution by supplying crafted delta or JSON Patch documents, as attacker-controlled property names and path segments are used to traverse and modify objects without restricting access to special properties like __proto__ or constructor.prototype, allowing modification of Object.prototype.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:jsondiffpatch to version 0.7.6 or higher.

    [,0.7.6)