Improper Encoding or Escaping of Output Affecting org.apache.logging.log4j:log4j-layout-template-json package, versions [2.14.0, 2.25.4)[3.0.0-alpha1,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (18th 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 Improper Encoding or Escaping of Output vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHELOGGINGLOG4J-15967756
  • published10 Apr 2026
  • disclosed10 Apr 2026
  • creditSamy Medjahed, Eliott Laurie

Introduced: 10 Apr 2026

CVE-2026-34481  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output when JsonTemplateLayout logs a MapMessage. An attacker can cause downstream log processing systems to reject or fail to index affected records by supplying non-finite floating-point values (such as NaN, Infinity, or -Infinity) in a MapMessage.

CVSS Base Scores

version 4.0
version 3.1