Improper Output Neutralization for Logs Affecting log4net package, versions [,3.5.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.82% (57th 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 Output Neutralization for Logs vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-LOG4NET-20552488
  • published7 Oct 2026
  • disclosed6 Oct 2026
  • creditUnknown

Introduced: 6 Oct 2026

NewCVE-2026-105242  (opens in a new tab)
CWE-117  (opens in a new tab)

How to fix?

Upgrade log4net to version 3.5.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs in the %aspnet-request pattern converter, which reads HttpRequest.Params and so triggers ASP.NET request validation on the query string, form, and cookies at first access, raising an HttpRequestValidationException inside the layout. An attacker can suppress the log record of their own request entirely, since the appender discards the event when the layout throws, by sending a request carrying content that request validation rejects, such as <script>. This affects only ASP.NET applications on .NET Framework whose layout uses %aspnet-request.

CVSS Base Scores

version 4.0
version 3.1