CVE-2025-2877: Unmasked Dict Pformat Log

A dictionary is formatted using `pformat` and logged within an exception handler. If the dictionary contains sensitive data such as credentials or tokens, it must be explicitly masked before formatting to prevent information disclosure in application logs.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2025-2877-unmasked-dict-pformat-log --engine opengrep

Description

A dictionary is formatted using `pformat` and logged within an exception handler. If the dictionary contains sensitive data such as credentials or tokens, it must be explicitly masked before formatting to prevent information disclosure in application logs.