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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (71st percentile)

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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMMIKESAMUEL-1059419
  • published14 Jan 2021
  • disclosed14 Jan 2021
  • creditFabian Meumertzheim of Code Intelligence

Introduced: 14 Jan 2021

CVE-2021-23899  (opens in a new tab)
CWE-94  (opens in a new tab)

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.

CVSS Scores

version 3.1