CVE-2026-138379 in Flare Redactinfo

Summary

by MITRE • 11/29/2026

flare-redact before 1.13.1 contains a redaction bypass vulnerability that leaks secrets because the redact() object walker masks sensitive keys only when values are strings. Numbers, objects, arrays and binary data under keys such as password, cvv, pin, cookie or authorization pass through unchanged, exposing secrets in clear text to logger, Sentry, gateway and Fluent Bit sinks.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/29/2026

The vulnerability identified in flare-redact prior to version 1.13.1 represents a critical flaw in the library's logic for sanitizing sensitive data within JavaScript objects. This redaction bypass occurs because the core implementation of the redact function relies on an overly simplistic type-checking mechanism that only applies masking operations when the value associated with a key is strictly identified as a string. Consequently, any secret stored under monitored keys such as password, cvv, pin, cookie, or authorization headers fails to be masked if its data type deviates from a standard string representation. This design oversight allows attackers or malicious actors to bypass security controls by simply encoding sensitive information in alternative formats that the library does not recognize as requiring redaction.

From a technical perspective, this flaw enables the leakage of credentials and other high-value secrets through multiple common logging and monitoring sinks including logger instances, Sentry error tracking services, API gateways, and Fluent Bit log aggregators. When an application passes an object containing these sensitive fields to flare-redact for sanitization before transmission or storage, the library leaves numeric values like credit card numbers represented as integers, complex nested objects containing authentication tokens, arrays of session identifiers, and binary data streams completely unaltered. This means that even if a developer explicitly configures redaction rules for specific keys, those protections are rendered ineffective against non-string payloads, leading to direct exposure of plaintext secrets in log files or error reports accessible to unauthorized parties.

The operational impact of this vulnerability is severe as it undermines the fundamental purpose of using data masking libraries in security-sensitive environments. Organizations relying on flare-redact to comply with regulatory requirements such as PCI-DSS for payment card information or GDPR for personal data may find their compliance posture compromised because sensitive fields are still visible in plain text within system logs and monitoring dashboards. Attackers who gain access to these logging infrastructure components can extract valid credentials, financial details, or session tokens without needing to exploit additional vulnerabilities in the application logic itself. This creates a persistent risk of account takeover, unauthorized transactions, and further lateral movement within compromised networks based solely on improperly sanitized log data.

This issue aligns with CWE-209 which describes the generation of an error message that includes sensitive information about the environment or internal state, as well as CWE-798 regarding the use of hard-coded credentials if those secrets are exposed via logs. In terms of MITRE ATT&CK frameworks, this vulnerability facilitates T1530 Data from Local System and potentially aids in T1078 Valid Accounts by exposing authentication materials through log aggregation systems which are often less secured than primary application endpoints. The attack vector is primarily passive where an adversary simply monitors logging outputs rather than actively exploiting a code execution flaw, making detection difficult without specialized data loss prevention tools that inspect content types beyond simple string matching.

To mitigate this vulnerability, organizations must immediately upgrade to flare-redact version 1.13.1 or later which addresses the type-checking logic to handle all relevant data structures including numbers, objects, arrays, and binary buffers. Until an update is applied, developers should implement additional manual sanitization layers that explicitly convert sensitive fields to strings before passing them through redaction functions or apply regex-based masking at the application level for known secret keys regardless of their underlying type. It is also critical to audit existing log configurations to ensure no previously leaked secrets remain in historical logs and to restrict access permissions on logging infrastructure such as Fluent Bit and Sentry dashboards to minimize the blast radius if exposure has already occurred. Regular security reviews should include testing redaction libraries with diverse data types to prevent similar bypasses involving other non-string formats like booleans or null values that might also be overlooked by simplistic implementations.

Responsible

VulnCheck

Reservation

11/29/2026

Disclosure

11/29/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!