Incorrect Type Conversion or Cast Affecting loggingredactor package, versions [,0.0.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (13th 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 IDSNYK-PYTHON-LOGGINGREDACTOR-14897559
  • published8 Jan 2026
  • disclosed7 Jan 2026
  • creditMuhammad Tahir

Introduced: 7 Jan 2026

CVE-2026-22041  (opens in a new tab)
CWE-704  (opens in a new tab)

How to fix?

Upgrade loggingredactor to version 0.0.6 or higher.

Overview

loggingredactor is a Redact data in logs based on regex filters and keys

Affected versions of this package are vulnerable to Incorrect Type Conversion or Cast via the RedactingFilter.redact method which converts all datatypes to string. An attacker can cause type errors and disrupt expected log formatting by passing non-string types that are automatically converted to strings during log handling.

CVSS Base Scores

version 4.0
version 3.1