Improper Encoding or Escaping of Output Affecting org.apache.logging.log4j:log4j-core package, versions [2.0-alpha1, 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.15% (36th 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-15967769
  • published10 Apr 2026
  • disclosed10 Apr 2026
  • creditSamy Medjahed, Eliott Laurie, jabaltarik1

Introduced: 10 Apr 2026

NewCVE-2026-34480  (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

org.apache.logging.log4j:log4j-core is a logging library for Java.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the XmlLayout plugin. An attacker can cause log events to be silently lost or malformed by injecting XML 1.0 forbidden characters into log messages or MDC values. This may result in malformed XML output, which can cause downstream log-processing systems to drop affected records or prevent log events from being delivered to their intended destinations.

CVSS Base Scores

version 4.0
version 3.1