com.mikesamuel:json-sanitizer@1.1 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the com.mikesamuel:json-sanitizer package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Arbitrary Code Injection

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.

How to fix Arbitrary Code Injection?

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

[,1.2.2)
  • M
Denial of Service (DoS)

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

Affected versions of this package are vulnerable to Denial of Service (DoS). Affected versions can output invalid JSON or throw an undeclared exception for crafted input. This may lead to denial of service if the application is not prepared to handle these situations.

How to fix Denial of Service (DoS)?

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

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

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

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the html parser. <!--, --> and <script are not escaped properly.

How to fix Cross-site Scripting (XSS)?

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

[,1.2.1)