CVE-2026-22041: Loggingredactor Loggingredactor Converts Non-string Types To Vulnerability

LOW
Advisory Identifier: GHSA-rvjx-cfjh-5mc9
CWE-704
Published
Advisory Summary

CVE-2026-22041 is a LOW loggingredactor converts non-string types to vulnerability (CWE-704: Incorrect Type Conversion or Cast) affecting Loggingredactor libraries in the PyPI ecosystem. The issue involves loggingredactor converts non-string types to string types in logs. Remediation is available by upgrading affected packages to version 0.0.6.

CVE-2026-22041 at a Glance

CVE Identifier CVE-2026-22041
GHSA Identifier GHSA-rvjx-cfjh-5mc9
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-704: Incorrect Type Conversion or Cast
Affected Product Loggingredactor
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-22041

To remediate this vulnerability, upgrade all affected Loggingredactor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

loggingredactor fixed: 0.0.6
pip install loggingredactor>=0.0.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show loggingredactor

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-22041, inspect your installed packages using pip:

pip show loggingredactor

Analyze the terminal output to locate any version of Loggingredactor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.6), your application is affected.

Note: The pip show loggingredactor command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-704: Incorrect Type Conversion or Cast, where the product does not correctly convert an object, resource, or structure from one type to a different type. In Loggingredactor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Non-string types are converted into string types, leading to type errors in %d conversions. ### Patches The problem has been patched in version 0.0.6. ### Workarounds None without patching. ### Resources Issue report: https://github.com/armurox/loggingredactor/issues/7 Release: https://github.com/armurox/loggingredactor/releases/tag/0.0.6

CVE-2026-22041 Affected Loggingredactor Versions

1 component(s)
Fixed Versions:
0.0.6
Product / Package Ecosystem Affected Versions Fixed Version
loggingredactor
PyPI
< 0.0.6
0.0.6

References

Frequently Asked Questions

What is CVE-2026-22041?
CVE-2026-22041 is a security vulnerability in Loggingredactor involving loggingredactor converts non-string types to string types in logs under CWE-704: Incorrect Type Conversion or Cast.
Which Loggingredactor versions are affected?
Affected versions include releases prior to 0.0.6 across affected packages: loggingredactor.
What version fixes CVE-2026-22041?
Upgrading to 0.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is loggingredactor affected?
Yes, loggingredactor is affected in releases prior to 0.0.6. Upgrade your dependency to 0.0.6 or later.
What CWE is associated with CVE-2026-22041?
CVE-2026-22041 is classified under CWE-704: Incorrect Type Conversion or Cast (The product does not correctly convert an object, resource, or structure from one type to a different type.).
How can I check PyPI dependencies for CVE-2026-22041?
Run the dependency tree command: 'pip show loggingredactor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rvjx-cfjh-5mc9",
  "modified" : "2026-01-08T21:19:18Z",
  "published" : "2026-01-07T19:28:46Z",
  "aliases" : [ "CVE-2026-22041" ],
  "summary" : "loggingredactor converts non-string types to string types in logs",
  "details" : "### Impact\nNon-string types are converted into string types, leading to type errors in %d conversions.\n\n### Patches\nThe problem has been patched in version 0.0.6.\n\n### Workarounds\nNone without patching.\n\n### Resources\nIssue report: https://github.com/armurox/loggingredactor/issues/7\nRelease: https://github.com/armurox/loggingredactor/releases/tag/0.0.6",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "loggingredactor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/armurox/loggingredactor/security/advisories/GHSA-rvjx-cfjh-5mc9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22041"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/armurox/loggingredactor/issues/7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/armurox/loggingredactor"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/armurox/loggingredactor/releases/tag/0.0.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-704" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-07T19:28:46Z",
    "nvd_published_at" : "2026-01-08T15:15:45Z"
  }
}