Arbitrary Code Injection Affecting com.mikesamuel:json-sanitizer package, versions [,1.2.2)


0.0
high
  • Attack Complexity

    High

  • Confidentiality

    High

  • Integrity

    High

  • Availability

    High

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • snyk-id

    SNYK-JAVA-COMMIKESAMUEL-1059419

  • published

    14 Jan 2021

  • disclosed

    14 Jan 2021

  • credit

    Fabian Meumertzheim of Code Intelligence

How to fix?

Upgrade com.mikesamuel:json-sanitizer to version 1.2.2 or higher.

Overview

com.mikesamuel:json-sanitizer is a package that converts JSON-like content to a valid JSON.

Affected versions of this package are vulnerable to Arbitrary Code Injection. Affected versions may emit closing SCRIPT tags and CDATA section delimiters for crafted input. This allows an attacker to inject arbitrary HTML or XML into embedding documents.